forked from morganstanley/hobbes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (37 loc) · 1.03 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
language: cpp
env:
global:
- DEPS=""
matrix:
include:
- os: osx
compiler: clang
osx_image: xcode8.3
env:
- DEPS="${DEPS} [email protected]"
- LLVM_DIR=/usr/local/opt/[email protected]/lib/llvm-3.7/share/llvm/cmake/
- os: osx
compiler: clang
osx_image: xcode8
env:
- DEPS="${DEPS} [email protected]"
- LLVM_DIR=/usr/local/opt/[email protected]/lib/llvm-3.7/share/llvm/cmake/
- os: linux
compiler: g++
root: required
dist: trusty
group: deprecated-2017Q4
services:
- docker
env:
- DIST=xenial
install:
- if [ $TRAVIS_OS_NAME = osx ]; then brew update && brew install ${DEPS}; 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