forked from mull-project/mull
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (22 loc) · 1000 Bytes
/
.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
language: cpp
compiler: clang
sudo: required
os:
- linux
- osx
dist: xenial
env:
- LLVM_VERSION=3.9
- LLVM_VERSION=4.0
- LLVM_VERSION=5.0
- LLVM_VERSION=6.0
- LLVM_VERSION=7.0
- LLVM_VERSION=8.0
before_install:
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then sudo easy_install pip && sudo pip install ansible; fi
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then sudo pip install ansible; fi
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt-get update; fi
# Build steps
script:
- if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then cd infrastructure && ansible-playbook macos-playbook.yaml -e llvm_version=$LLVM_VERSION.0 -e source_dir=$PWD/.. -e gitref=$TRAVIS_COMMIT -e host=localhost -e skip_package=true --verbose; fi
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then cd infrastructure && ansible-playbook ubuntu-playbook.yaml -e llvm_version=$LLVM_VERSION.0 -e source_dir=$PWD/.. -e gitref=$TRAVIS_COMMIT -e host=localhost --verbose; fi