/
.travis.yml
41 lines (32 loc) · 1.39 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
sudo: false
language: cpp
os:
- osx
compiler:
- clang
# - gcc
# Only build the master branch, otherwise once the release is added, Github
# creates a tag which triggers another identical build.
branches:
only:
- master
before_install:
- brew update
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
- brew unlink boost
script:
- brew install --verbose --build-bottle boost --c++11
- brew bottle boost
before_deploy:
- export RELEASE_FILES=$(ls *.bottle.tar.gz)
- "echo 'Deploying files to Github: '$RELEASE_FILES"
deploy:
provider: releases
api_key:
secure: GSb690wD+BgeoaY91gy8OPjepDmKlHtVuNr3cxgmx0znSZrECfoYGenjBE5nvjWQUD2LnHFfH32RR5Ni8L84mGf3AC82vXxNQO3MgCp/omO8bHFQofYc9jtdILn2zkRS/Tdz3Mqn9wtSSWfwaOgLOAXJSPyFBkYX6LSOuny7v1IddsUaz5mXaq0JPYAtbQ26rzZ0gXs66TMxd59dR5N9UXVRJ4u4JlH9rxTQkLy5ENYJDh2b0VRuOqYBWNDapBGWlWOCB/9S1xKzzRgjaGLUZpGnbXFTawYTpKCw7SB222wOg/8vapAxz5y6PG/Q2tL5rDgqBEWNoAh0jk9FETIim+RaRmr5UIbzN5IvZkhiNbWDyhh5pbUYhQlt4D14OYwjRV9RD3oxX6MBKOI4UtlNdSfrd8ZY+jcJ2Id2pm9ECg2ZwmkOHBgCCFw9e0WPBQxDhdJpxhIqZDdkNK1rVQP92SWdgf++Mts1mF47rNOfOg7QpFfZc6vFHreSc2/2ME50+XgLHvwmTcaR2ThkY9lrgJClwvLwn2PJDmZA41zwcdWt+5Ry3w8jtDMyt9uUu7qB8pKAQ+eTTw32qXx0KnGtr6flWoYL8mDFgN0BNWI9fjtvBCGf7pLx50iEmIiYpTGOgOIZjk1bPadyuehumcRM7sOAjdv/SRsUdfCVWHWE8X0=
file: "${RELEASE_FILES}"
skip_cleanup: true
on:
repo: Malvineous/travis-homebrew-bottle
overwrite: true