forked from morganstanley/hobbes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (40 loc) · 1.08 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
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/
- ARGS=-V
- 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/
- ARGS=-V
- os: linux
compiler: g++
root: required
dist: trusty
group: deprecated-2017Q4
services:
- docker
env:
- DIST=xenial
- ARGS=-V
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