-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
63 lines (63 loc) · 1.53 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
language: c++
sudo: required
dist: trusty
matrix:
include:
- os: linux
compiler:
- clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-4.0
packages:
- clang-4.0
env:
- MATRIX_EVAL="CC=clang-4.0 && CXX=clang++-4.0"
- DO_DEPLOY="n"
- os: linux
compiler:
- clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- clang-5.0
env:
- MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
- DO_DEPLOY="n"
- os: linux
compiler:
- clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty
packages:
- clang-6.0
env:
- MATRIX_EVAL="CC=clang-6.0 && CXX=clang++-6.0"
- DO_DEPLOY="n" # TODO: set this to "y" to enable deploys
before_install:
- eval $MATRIX_EVAL
script:
- mkdir build
- cd build
- cmake .. -DCMAKE_CXX_FLAGS='-Wall -Wextra -Wpedantic -std=c++1z'
- make -j8
- cd ..
- for file in tests/cpp/*;do clang++ -c -emit-llvm -o $file.bc $file;opt -O3 $file.bc > $file.opt.bc;llvm-dis $file.opt.bc;done
# deploy stuff
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
repo: icecream95/icecream95.github.io
target_branch: scratch-llvm
on:
branch: master
condition: $DO_DEPLOY = "y"