-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (35 loc) · 1.24 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
dist: trusty
sudo: false
language: rust
cache:
directories:
- $HOME/.cache/
- $HOME/.cargo/
- $TRAVIS_BUILD_DIR/target
before_cache:
- find $TRAVIS_BUILD_DIR/target/debug -maxdepth 1 -type f -delete
matrix:
include:
- os: linux
rust: nightly-2017-08-09
env: COMPILER=g++-4.8 CXX=g++-4.8
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-4.8', 'zlib1g-dev', 'libbz2-dev', 'libsnappy-dev', 'curl', 'libdw-dev', 'libelf-dev', 'elfutils', 'binutils-dev', 'libcurl4-openssl-dev', 'libiberty-dev']
- os: osx
rust: nightly-2017-08-09
env: SKIP_FORMAT_CHECK=true
install:
- export LOCAL_DIR=$HOME/.cache/
- export PATH=$PATH:$LOCAL_DIR/bin:$HOME/.cargo/bin
- export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$LOCAL_DIR/lib
- export LIBRARY_PATH=${LIBRARY_PATH}:$LOCAL_DIR/lib
- export DYLD_LIBRARY_PATH=${DY_LIBRARY_PATH}:$LOCAL_DIR/lib
- export CXXFLAGS=-I$LOCAL_DIR/include
- travis_wait 30 make -f travis-build/Makefile prepare_${TRAVIS_OS_NAME}
script:
- make -f travis-build/Makefile test_${TRAVIS_OS_NAME}
after_success:
# TODO add following into build progress after failed cases are resolved.
- make -f travis-build/Makefile cover_${TRAVIS_OS_NAME}