forked from Derecho-Project/derecho
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (51 loc) · 1.94 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
language: cpp
os: linux
dist: bionic
sudo: required
before_install:
- ifconfig
- sudo apt-get install librdmacm-dev
- sudo apt-get install libibverbs-dev
# - wget http://mirrors.kernel.org/ubuntu/pool/universe/s/spdlog/libspdlog-dev_1.3.1-1_amd64.deb
- wget http://old-releases.ubuntu.com/ubuntu/pool/universe/s/spdlog/libspdlog-dev_1.3.1-1_amd64.deb
- sudo apt install ./libspdlog-dev_1.3.1-1_amd64.deb
- if [ -n "$GCC_VERSION" ]; then export CXX="g++-${GCC_VERSION}" CC="gcc-${GCC_VERSION}"; fi
- if [ -n "$CLANG_VERSION" ]; then export CXX="clang++-${CLANG_VERSION}" CC="clang-${CLANG_VERSION}"; fi
- which $CXX
- which $CC
- $CXX --version
- cmake --version
install:
- chmod +x scripts/prerequisites/*.sh
- sudo env "PATH=$PATH" scripts/prerequisites/install-libfabric.sh
- sudo env "PATH=$PATH" scripts/prerequisites/install-mutils.sh
- sudo env "PATH=$PATH" scripts/prerequisites/install-mutils-containers.sh
- sudo env "PATH=$PATH" scripts/prerequisites/install-mutils-tasks.sh
matrix:
include:
# build with gcc7 on 4 build types
- env: BUILD_TYPE=Release GCC_VERSION=7
addons: &gcc7
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- gcc-7
- env: BUILD_TYPE=Debug GCC_VERSION=7
addons: *gcc7
- env: BUILD_TYPE=RELWITHDEBINFO GCC_VERSION=7
addons: *gcc7
script:
# build Derecho
- mkdir build-${BUILD_TYPE}
- cd build-${BUILD_TYPE}
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
- make -j `lscpu | grep "^CPU(" | awk '{print $2}'`
- sudo make install
# no performance tests any more.
# we now use regression test for QA.
## performance tests
# - DERECHO_CONF_FILE=../scripts/travis-ci/derecho0.cfg src/applications/tests/performance_tests/bandwidth_test 2 2 1000 0 & DERECHO_CONF_FILE=../scripts/travis-ci/derecho1.cfg src/applications/tests/performance_tests/bandwidth_test 2 2 1000 0
# - cat data_derecho_bw
#