-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.travis.yml
37 lines (33 loc) · 1.09 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
language: cpp
branches:
only:
- master
matrix:
include:
- os: osx
osx_image: xcode9
compiler:
- clang
before_install:
- ./ci/install_deps_macos.sh
cache:
directories:
- $HOME/Library/Caches/Homebrew
script:
- ./ci/clang-format.sh
- tools/build.py Debug
- tools/build.py Release
- tools/unit_test.py
- os: linux
sudo: required
services:
- docker
dist: trusty
before_install:
- docker build -t mengde docker
script:
# clang format is disabled for ubuntu due to version issue
# - ./ci/clang-format.sh
- docker run --rm -it -v $(pwd):/root/mengde -w /root/mengde mengde tools/build.py Debug
- docker run --rm -it -v $(pwd):/root/mengde -w /root/mengde mengde tools/build.py Release
- docker run --rm -it -v $(pwd):/root/mengde -w /root/mengde mengde tools/unit_test.py