-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
41 lines (40 loc) · 891 Bytes
/
.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
sudo: required
services:
- docker
language: cpp
compiler: gcc
osx_image: xcode10.1
cache:
directories:
- $HOME/.hunter
- $HOME/.ccache
install:
- if [ $TRAVIS_OS_NAME == osx ]; then
brew update;
brew install openssl cmake ccache;
export PATH="/usr/local/opt/ccache/libexec:$PATH";
fi
script:
- if [ $TRAVIS_OS_NAME == osx ]; then
mkdir build;
cd build;
cmake ..;
make;
make test;
fi
- if [ $TRAVIS_OS_NAME == linux ]; then
env;
mv -v ${PWD} ${HOME}/src;
docker run -v ${HOME}:/root
-e TRAVIS_JOB_ID="${TRAVIS_JOB_ID}"
-e TRAVIS_BRANCH="${TRAVIS_BRANCH}"
--privileged -it lockblox/orthodox;
fi
branches:
only:
- master
notification:
email: true
os:
- linux
- osx