forked from ScintillatorSynth/Scintillator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
78 lines (70 loc) · 1.85 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
72
73
74
75
76
77
language: cpp
matrix:
include:
- os: linux
dist: bionic
compiler: clang
env:
- CC=clang-8 CXX=clang++-8
- DO_COVERAGE=true
- os: linux
dist: bionic
env:
- DO_COVERAGE=false
- os: osx
osx_image: xcode11
env:
- DO_COVERAGE=false
cache: ccache
before_install:
- $TRAVIS_BUILD_DIR/.travis/before-install-$TRAVIS_OS_NAME.sh
before_script:
- $TRAVIS_BUILD_DIR/.travis/before-script-$TRAVIS_OS_NAME.sh
script:
- $TRAVIS_BUILD_DIR/.travis/script-$TRAVIS_OS_NAME.sh
before_deploy:
- $TRAVIS_BUILD_DIR/.travis/before-deploy-$TRAVIS_OS_NAME.sh
deploy:
# coverage reports and documentation
- provider: s3
access_key_id: $AWS_KEY
secret_access_key: $AWS_SECRET
bucket: scintillator-synth-coverage
local-dir: $HOME/artifacts
upload-dir: artifacts/$TRAVIS_COMMIT
verbose: true
edge: true
cleanup: false
acl: public_read
on:
condition: $DO_COVERAGE = true
branch: master
# build artifacts for non-tagged builds
- provider: s3
access_key_id: $AWS_KEY
secret_access_key: $AWS_SECRET
bucket: scintillator-synth-coverage
local-dir: $HOME/builds
upload-dir: builds
verbose: true
edge: true
cleanup: false
acl: public_read
on:
condition: $DO_COVERAGE = false
branch: master
# releases for tagged builds
- provider: s3
access_key_id: $AWS_KEY
secret_access_key: $AWS_SECRET
bucket: scintillator-synth-coverage
local-dir: $HOME/releases
upload-dir: releases
verbose: true
edge: true
cleanup: false
acl: public_read
on:
tags: true
condition: $DO_COVERAGE = false
all_branches: true