Skip to content

Commit 0a49b0f

Browse files
committed
Add travis config
[skip appveyor]
1 parent 1d102d6 commit 0a49b0f

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.travis.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
language: generic
2+
os: osx
3+
4+
env:
5+
global:
6+
# Branch (or any remote ref, i.e. pull/10/head) to fetch
7+
- BUILD_BRANCH=master
8+
# Commit tag/ref to checkout
9+
- BUILD_COMMIT=HEAD
10+
11+
cache:
12+
ccache: true
13+
directories:
14+
- ~/Library/Caches/pip
15+
# cache used by build-macos-app.sh
16+
- ~/.cache/pkgs
17+
18+
before_install:
19+
- git clone -q --depth 20 https://github.com/biolab/orange3.git
20+
- cd orange3
21+
- git fetch origin $BUILD_BRANCH
22+
- git checkout $BUILD_COMMIT
23+
24+
install:
25+
- if [[ -d /Applications/Orange3.app ]]; then rm -rf /Applications/Orange3.app; fi
26+
# TODO: If this is a tagged commit, then it would be preferable to use
27+
# the (to be) published whl files (i.e. from the staging index so the
28+
# wheels, installers, .. can go live at the same time)
29+
- ./scripts/macos/build-macos-app.sh --pip-arg={-r,scripts/macos/requirements.txt,./} /Applications/Orange3.app
30+
- ./scripts/macos/create-dmg-installer.sh --app /Applications/Orange3.app dist/Orange3.dmg
31+
# reversed("LMAY KCUF")
32+
- "VERSION=$(/Applications/Orange3.app/Contents/MacOS/pip show orange3 | grep -E '^Version: ' | cut -d ' ' -f 2)"
33+
- mv dist/Orange3.dmg dist/Orange3-$VERSION.dmg
34+
- cd ..
35+
36+
script:
37+
# run the tests in the application's environment, but move it to a different
38+
# location first
39+
- mkdir -p ~/Applications
40+
- mv -f /Applications/Orange3.app ~/Applications/
41+
- ~/Applications/Orange3.app/Contents/MacOS/python --version
42+
- ~/Applications/Orange3.app/Contents/MacOS/pip --version
43+
- ~/Applications/Orange3.app/Contents/MacOS/pip freeze
44+
45+
# Don't even ask
46+
- export ORANGE_DEPRECATIONS_ERROR=1
47+
- export PYTHONWARNINGS=module
48+
- ~/Applications/Orange3.app/Contents/MacOS/python -m unittest Orange.tests Orange.widgets.tests
49+
50+
after_success:
51+
- if [ ! $TRAVIS_TAG ]; then curl -fS --upload-file orange3/dist/Orange3-*.dmg https://transfer.sh/; fi
52+
53+
deploy:
54+
provider: releases
55+
api_key:
56+
secure: itI2Xr5qAqQy0PQqk2fN/d+lCg1JFvmDTEJQOOt8Lc+Kjwh+IipYzmMgEFqN93/jcSE/Tbrlcd1r45YaY0Mui6lpo7kUzsGR190VIKFX1yakhVEbVV0a31X4NNzuIO/O2A/7IHvKu18GpCUNwTEVmmpEevEBNvKOP/oZy8Ksy3vJaZQOnyc1G11MxbvxEuW4zWQgC3TRUCE0PSIVz8v6f3njF4lFOPIlaypDysJ6BLR+isHxV2WBK53mQ77U/AizOSID4O9Pr9G776snxDHbb4FeWTjWZtG1KaL9arNOAR3E6NKRguqT8QSTU3dqo03qNAwXORlyc+HU8R85CzZcXT3cZnIfbCc5AvwjwouOk2e2mdKxhez845N1f74HqjaVmN/jK23TTJcVVI+l6w3ikghQBMZYt9trtfOIYH+6SGe9gh4IPi3vn4WSoqwt/1UriDsBy50f7Fqt3cPJ+4Tp9Yt3weCrQSBzGEQO2yA1hMzdLTUdMJcjIMu/J46QvFDJvFzEk4r3HpdK1rQE4mjzZufg/zBO8I3wJGx+jZmEI000wXS3duUoW+1u23SIosCw4pQRpkSjb0hzhG+4b5acwEYoeoN3JmjY4finLAhW0opOc8GVpu+SzHYd9TJ1bAsGB2IWeAgYw0VChmPBiIa06I8XbSEYfib3tBJAu43hNe0=
57+
file: orange3/dist/Orange3-*.dmg
58+
file_glob: true
59+
skip_cleanup: true
60+
on:
61+
tags: true
62+
repo: ales-erjavec/orange3-installers

0 commit comments

Comments
 (0)