forked from morganstanley/hobbes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
59 lines (56 loc) · 1.63 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
language: cpp
env:
global:
- DEPS=""
matrix:
include:
- os: osx
compiler: clang
osx_image: xcode8.3
env:
- DEPS="${DEPS} readline llvm@4"
- LLVM_DIR=/usr/local/opt/llvm@4/lib/cmake/llvm/
- ARGS=-V
- os: linux
compiler: g++
root: required
dist: trusty
group: deprecated-2017Q4
services:
- docker
env:
- DIST=xenial
- DEPS="llvm-3.7-dev cmake libedit-dev g++ libncurses5-dev zlib1g-dev libreadline-dev python2.7"
- ARGS=-V
- os: linux
compiler: g++
root: required
dist: trusty
group: deprecated-2017Q4
services:
- docker
env:
- DIST=xenial
- DEPS="llvm-4.0-dev cmake libedit-dev g++ libncurses5-dev zlib1g-dev libreadline-dev python2.7"
- ARGS=-V
- os: linux
compiler: g++
root: required
dist: trusty
group: deprecated-2017Q4
services:
- docker
env:
- DIST=xenial
- DEPS="llvm-6.0-dev cmake libedit-dev g++ libncurses5-dev zlib1g-dev libreadline-dev python2.7"
- ARGS=-V
install:
- if [ $TRAVIS_OS_NAME = osx ]; then brew update && brew install -v ${DEPS} && find /usr/local/opt/llvm@4/ | grep cmake; fi
- if [ $TRAVIS_OS_NAME = linux ]; then cd docker/build && docker build . -f ./${DIST}.Dockerfile -t hobbes:build --build-arg DEPS; cd -; fi
script:
- if [ $TRAVIS_OS_NAME = osx ]; then mkdir build && cd build/ && cmake .. && make && make test; fi
- if [ $TRAVIS_OS_NAME = linux ]; then docker run -it -v ${PWD}:/src hobbes:build; fi
branches:
only:
- master
- travis