-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (47 loc) · 1.06 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
language: cpp
dist: xenial
compiler: clang
addons:
apt:
sources:
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty main'
key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
- ubuntu-toolchain-r-test
packages:
- cmake
- make
- libstdc++-8-dev
- clang-9
- llvm-9-dev
- llvm-9-tools
- libboost-dev
- libgtest-dev
before_script:
- export CC=clang-9
- export CXX=clang++-9
# libgtest-dev require compilation
- mkdir gtest-build
- cd gtest-build
- cmake /usr/src/gtest/
- make
- sudo cp *.a /usr/local/lib
- cd ..
# Download, build, install required dependencies (not included as submodules)
- cd dep
# WebAssembly/wabt
- git clone https://github.com/WebAssembly/wabt.git
- cd wabt
- git submodule update --init --recursive
- mkdir build
- cd build
- cmake ..
- make
- sudo make install
- cd ../..
# Done with dependencies
- cd ..
# Generate build script for wembed
- mkdir build
- cd build
- cmake ..
script: make && make test ARGS="-V"