-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
45 lines (38 loc) · 1.09 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
language: cpp
sudo: required
matrix:
include:
- compiler: clang
os: osx
- compiler: g++
os: linux
env: CMAKE_PREFER_SHARED_LIBRARIES=true
- compiler: g++
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- binutils-dev
- build-essential
- cmake
- gcc-5
- g++-5
- libcrypto++-dev
- libpthread-stubs0-dev
before_install:
- echo $LANG
- echo $LC_ALL
- if [ $TRAVIS_OS_NAME == linux ]; then
sudo apt-get install protobuf-compiler libprotobuf-dev libpam-dev;
sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-5 /usr/bin/gcc;
sudo unlink /usr/bin/g++ && sudo ln -s /usr/bin/g++-5 /usr/bin/g++;
fi
- if [ $TRAVIS_OS_NAME == osx ]; then brew update && brew reinstall protobuf cmake; fi
- if [ $TRAVIS_OS_NAME == linux ]; then sudo ./test/create_linux_user.sh tmptyptop hello_pass; fi
- if [ $TRAVIS_OS_NAME == osx ]; then sudo ./test/create_mac_user.sh tmptyptop hello_pass; fi
before_script:
- bash .build.sh
script:
- ./build/test/tests -d yes --rng-seed 254