forked from morganstanley/hobbes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
53 lines (50 loc) · 1.29 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
language: cpp
env:
global:
- DEPS=""
matrix:
include:
- os: osx
compiler: clang
osx_image: xcode8.3
env:
- DEPS="${DEPS} llvm@4"
- LLVM_DIR=/usr/local/opt/llvm@4/lib/cmake/llvm/
- ARGS=-V
# - os: osx
# compiler: clang
# osx_image: xcode8
# env:
# - DEPS="${DEPS} 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
- ARGS=-V
- os: linux
compiler: g++
root: required
dist: trusty
group: deprecated-2017Q4
services:
- docker
env:
- DIST=xllvm4
- 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; 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