forked from ddovod/jet-live
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
75 lines (68 loc) · 2.07 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
language: cpp
matrix:
include:
- name: "Linux clang"
os: linux
compiler: clang
dist: xenial
env:
- CC=clang-7
- CXX=clang++-7
- CC_FOR_BUILD=clang-7
- CXX_FOR_BUILD=clang++-7
- LD=lld-7
before_script:
- curl https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
- echo "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main" | sudo tee -a /etc/apt/sources.list
- sudo apt-get update -qq
- sudo apt-get install clang-7 lld-7 -y
script:
- sudo mv /usr/bin/ld /usr/bin/ld.old && sudo ln -s /usr/bin/lld-7 /usr/bin/ld
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DJET_LIVE_BUILD_TESTS=ON ..
- make -j4
- ../tools/tests/test_runner.py -b . -d tests -s ../tests
- name: "Linux gcc"
os: linux
dist: xenial
compiler: gcc-8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-8
- g++-8
env:
- CC=gcc-8
- CXX=g++-8
- CC_FOR_BUILD=gcc-8
- CXX_FOR_BUILD=g++-8
- LD=ld
script:
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DJET_LIVE_BUILD_TESTS=ON ..
- make -j4
- ../tools/tests/test_runner.py -b . -d tests -s ../tests
- name: "macOS make"
os: osx
osx_image: xcode11.2
compiler: clang
script:
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DJET_LIVE_BUILD_TESTS=ON ..
- make -j4
- ../tools/tests/test_runner.py -b . -d tests -s ../tests
- name: "macOS xcodebuild"
os: osx
osx_image: xcode11.2
compiler: clang
env:
- BUILD_TOOL=xcodebuild
before_script:
- gem install xcpretty
script:
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DJET_LIVE_BUILD_TESTS=ON -G Xcode ..
- xcodebuild -alltargets -quiet
- ../tools/tests/test_runner.py -b . -d tests/Debug -s ../tests