forked from microsoft/bond
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (42 loc) · 1.83 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
44
dist: trusty
# trusty requires virtualization, which is set by 'sudo: required'
sudo: required
os:
- linux
cache:
timeout: 1000
directories:
- cs/packages
- $HOME/.ccache
- $HOME/.stack
services:
- docker
env:
- FLAVOR="cs"
- FLAVOR="cpp-core" BOOST="1.66.0" COMPILER="gcc"
- FLAVOR="cpp-core" BOOST="1.66.0" COMPILER="clang"
- FLAVOR="cpp-core" BOOST="1.65.1" COMPILER="clang"
- FLAVOR="cpp-core" BOOST="1.64.0" COMPILER="clang"
- FLAVOR="cpp-core" BOOST="1.63.0" COMPILER="clang"
- FLAVOR="cpp-core" BOOST="1.62.0" COMPILER="clang"
- FLAVOR="cpp-core" BOOST="1.61.0" COMPILER="clang"
- FLAVOR="cpp-core" BOOST="1.60.0" COMPILER="clang"
- FLAVOR="cpp-core" BOOST="1.59.0" COMPILER="clang"
- FLAVOR="cpp-core" BOOST="1.58.0" COMPILER="clang"
- FLAVOR="cpp-comm" BOOST="1.63.0" COMPILER="clang"
- FLAVOR="cpp-grpc" BOOST="1.66.0" COMPILER="gcc"
- FLAVOR="cpp-grpc" BOOST="1.65.1" COMPILER="clang"
- FLAVOR="cpp-grpc" BOOST="1.64.0" COMPILER="clang"
- FLAVOR="cpp-grpc" BOOST="1.63.0" COMPILER="clang"
- FLAVOR="hs"
- FLAVOR="java"
before_install:
- CI_BUILD_IMAGE=bondciimages.azurecr.io/ubuntu-1604:build-8695914
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then echo "Hardware:"; grep model\ name /proc/cpuinfo | uniq -c; free -m; fi
- travis_retry docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" bondciimages.azurecr.io
- time travis_retry docker pull $CI_BUILD_IMAGE
- docker images # Dump the image ID
script:
- docker run -v $HOME/.ccache:/root/.ccache -v $HOME/.stack:/root/.stack -v `pwd`:/root/bond $CI_BUILD_IMAGE $HOME $FLAVOR $BOOST $COMPILER
# docker runs as root and may leave files in the following directories that are not readable by the travis user
- sudo chown -R travis:travis $HOME/.ccache $HOME/.stack `pwd`