-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
42 lines (37 loc) · 1 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
# Inspired by https://github.com/jimporter/mettle/blob/master/.travis.yml
language: cpp
sudo: false
env:
global:
- COMPILER=clang++
- COMMONFLAGS="-Wall -Wextra -pedantic -Werror -I/usr/local/opt/llvm/include"
- LDFLAGS="-L/usr/local/opt/llvm/lib, -Wl,-rpath,/usr/local/opt/llvm/lib"
compiler:
- clang
# TODO: Add GCC7.0 target.
os:
- osx
before_script:
- |
brew update
brew install llvm
brew install ninja
brew install python
pip install lxml
- pip install bfg9000
- |
${COMPILER} --version
git clone https://github.com/jimporter/mettle/
cd mettle
scripts/vendorize_bencode.py
CXX="/usr/local/opt/llvm/bin/${COMPILER}" CPPFLAGS="${COMMONFLAGS}" LDFLAGS="${LDFLAGS}" 9k build/
cd build/
ninja install
cd ${TRAVIS_BUILD_DIR}
rvm get stable # See travis-ci/travis-ci#6307
script:
- |
set -e
CXX="/usr/local/opt/llvm/bin/${COMPILER}" CPPFLAGS="${COMMONFLAGS}" LDFLAGS="${LDFLAGS}" 9k build/ --backend=ninja
cd build
ninja test