Skip to content

Commit 9d5c0bf

Browse files
committed
Build bottles with travis ci
1 parent 6984fb2 commit 9d5c0bf

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.travis.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
env:
2+
global:
3+
- FREECAD_RELEASE="0.17"
4+
- FREECAD_BREW_RELEASE="FreeCAD 0.17 brews"
5+
- OSX_PORTS_CACHE=${OSX_PORTS_CACHE:-FreeCAD/FreeCAD-ports-cache}
6+
7+
os: osx
8+
9+
language: cpp
10+
11+
osx_image: xcode7.3
12+
13+
before_install:
14+
- brew update >/dev/null && brew install jq
15+
- brew tap FreeCAD/freecad
16+
- eval "$(curl -fsSL "https://raw.githubusercontent.com/${OSX_PORTS_CACHE}/v${FREECAD_RELEASE}/travis-helpers.sh")"
17+
- cacheContext=$(create_helper_context repo=${TRAVIS_REPO_SLUG} auth_token=${GH_TOKEN} release="${FREECAD_BREW_RELEASE}")
18+
19+
install:
20+
- brew install --verbose --build-bottle shiboken && brew bottle shiboken
21+
- brew install --verbose --build-bottle pyside && brew bottle pyside
22+
- brew install --verbose --build-bottle pyside-tools && brew bottle pyside-tools
23+
script:
24+
- |
25+
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
26+
bottle=$(ls shiboken*.tar.gz)
27+
gitHub_deploy_asset_to_release_named $cacheContext $bottle "${FREECAD_BREW_RELEASE}" replace
28+
bottle=$(ls pyside-2*.tar.gz)
29+
gitHub_deploy_asset_to_release_named $cacheContext $bottle "${FREECAD_BREW_RELEASE}" replace
30+
bottle=$(ls pyside-tools*.tar.gz)
31+
gitHub_deploy_asset_to_release_named $cacheContext $bottle "${FREECAD_BREW_RELEASE}" replace
32+
fi

0 commit comments

Comments
 (0)