-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
101 lines (92 loc) · 3.26 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
language: cpp
_aliases:
before_script_common: &before_script_common
- curl https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
- echo "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-7 main" | sudo tee -a /etc/apt/sources.list
- sudo apt-get update -qq
- sudo apt-get install clang-8 lld-8 binutils-dev libboost-all-dev -y
- sudo mv /usr/bin/ld /usr/bin/ld.old && sudo ln -s /usr/bin/lld-8 /usr/bin/ld
env_common: &env_common
- CC=clang-8
- CXX=clang++-8
- CC_FOR_BUILD=clang-8
- CXX_FOR_BUILD=clang++-8
- LD=lld-8
matrix:
include:
- name: "Compilation"
os: linux
compiler: clang
dist: bionic
env: *env_common
before_script: *before_script_common
script:
- sudo mv /usr/bin/ld /usr/bin/ld.old && sudo ln -s /usr/bin/lld-8 /usr/bin/ld
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Debug ..
- make -j4
- name: "clang-format"
os: linux
compiler: clang
dist: bionic
env: *env_common
before_script: *before_script_common
script:
- ./tools/format/run-clang-format.py -r src example tests
- name: "clang-tidy"
os: linux
compiler: clang
dist: bionic
env: *env_common
before_script: *before_script_common
script:
- sudo ln -s /usr/bin/clang-tidy-8 /usr/bin/clang-tidy
- sudo ln -s /usr/bin/clang-apply-replacements-8 /usr/bin/clang-apply-replacements
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Debug ..
- cd ..
- ./tools/tidy/tidy.py -c build/compile_commands.json -d src
- name: "Tests ASAN"
os: linux
compiler: clang
dist: bionic
env: *env_common
before_script: *before_script_common
script:
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DKVS_TESTS_ASAN=ON ..
- make -j4
- ./tests/kvs-tests
- name: "Tests TSAN"
os: linux
compiler: clang
dist: bionic
env: *env_common
before_script: *before_script_common
script:
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DKVS_TESTS_TSAN=ON ..
- make -j4
- ./tests/kvs-tests
- name: "Load test utility ASAN"
os: linux
compiler: clang
dist: bionic
env: *env_common
before_script: *before_script_common
script:
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DKVS_TESTS_ASAN=ON ..
- make -j4
- ./load_test/kvs-load-test --cacheSize=33554432 --recordSize=1024 --maxNodes=20 --reads=1000 --writes=70 --deletes=70 --mounts=1 --unmounts=1 --krqs=1 --testTime=5000 --window=1000 --keyLength=8 --rndSeed=0 --dataSize=100 --threads=4
- name: "Load test utility TSAN"
os: linux
compiler: clang
dist: bionic
env: *env_common
before_script: *before_script_common
script:
- mkdir build && cd build
- cmake -DCMAKE_BUILD_TYPE=Debug -DKVS_TESTS_TSAN=ON ..
- make -j4
- ./load_test/kvs-load-test --cacheSize=33554432 --recordSize=1024 --maxNodes=20 --reads=1000 --writes=70 --deletes=70 --mounts=1 --unmounts=1 --krqs=1 --testTime=5000 --window=1000 --keyLength=8 --rndSeed=0 --dataSize=100 --threads=4