-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
71 lines (61 loc) · 1.66 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
language: cpp
sudo: true
script: cmake
dist: xenial
cache:
directories:
- $HOME/Library/Caches/Homebrew
services:
- docker
env:
global:
- RC_PARAMS="verbose_progress=1 verbose_shrinking=1 max_discard_ratio=100"
matrix:
include:
- os: linux
env: COMPILER='clang++' BUILD_TYPE='Release'
- os: linux
env: COMPILER='clang++' BUILD_TYPE='Debug' PACKAGE=false
- os: osx
env: COMPILER='clang++' BUILD_TYPE='Release'
- os: osx
env: COMPILER='clang++' BUILD_TYPE='Debug' PACKAGE=false
- os: linux
env: CROSS=-cross BASE_IMAGE=raspberry-pi DEBIAN_VERSION=stretch COMPILER='clang++-4.0' BUILD_TYPE='Release' ENABLE_TEST=OFF
- os: linux
env: CROSS=-cross BASE_IMAGE=raspberrypi3 DEBIAN_VERSION=stretch COMPILER='clang++-4.0' BUILD_TYPE='Release' ENABLE_TEST=OFF
before_cache:
- |
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
brew cleanup
fi
install:
- cd ${TRAVIS_BUILD_DIR}
- source ci/scripts/${TRAVIS_OS_NAME}${CROSS}/install.sh
script:
- cd ${TRAVIS_BUILD_DIR}
- source ci/scripts/${TRAVIS_OS_NAME}${CROSS}/script.sh
after_success:
- cd ${TRAVIS_BUILD_DIR}
- source ci/scripts/${TRAVIS_OS_NAME}${CROSS}/after_success.sh
before_deploy:
- cd ${TRAVIS_BUILD_DIR}
- sed -e "s/@VERSION@/$(./version.sh)/g" ci/bintray.in > bintray.json
deploy:
- provider: bintray
file: "bintray.json"
user: "coord-e"
key: $BINTRAY_API_KEY
skip_cleanup: true
on:
condition: "$BUILD_TYPE = Release"
all_branches: true
condition: "$TRAVIS_BRANCH =~ ^develop|master$"
- provider: releases
api_key: $GITHUB_OAUTH_TOKEN
skip_cleanup: true
file_glob: true
file: 'build/dist/*'
on:
condition: "$BUILD_TYPE = Release"
tags: true