-
Notifications
You must be signed in to change notification settings - Fork 120
/
.travis.yml
60 lines (46 loc) · 1.47 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
os:
- osx
osx_image: xcode8
language: generic
# Use new container-based Travis infrastructure.
sudo: false
# Cache pip packages. `cache: pip` does not work with custom install steps.
cache:
directories:
- $HOME/Library/Caches/pip
- $HOME/.pip-accel
install:
# Install wheel, upgrade pip to use wheel-cache
- pip install -U pip wheel
# Download-progress bars break Travis's log view. Disable them by piping output
# through another program (if output is not a tty, no progress bars)
# Install dependencies.
- pip install -r requirements.txt | cat
# Install dependencies for tests.
- pip install -r tests/requirements.txt | cat
- pip install git+http://github.com/pyinstaller/pyinstaller@5f91905
# Install qt4 from third-party source
# https://github.com/cartr/homebrew-qt4
- brew update
- brew tap cartr/qt4
- brew tap-pin cartr/qt4
- brew install cartr/qt4/qt
- brew install [email protected] [email protected]
# where are libs?
- python -c 'from PySide.QtCore import QCoreApplication;app = QCoreApplication([]);print([str(p) for p in app.libraryPaths()])'
# - brew install pyside pyside-tools
# Install mcedit.
- python setup.py develop
script:
- if [ "${TRAVIS_TAG}x" = "x" ]; then return 0; fi
- export MCEDIT_BUILD_VERSION=${TRAVIS_TAG}
- pyinstaller mcedit2.spec
# Deploy to GitHub Releases
deploy:
provider: releases
api_key: $GITHUB_AUTH_TOKEN
file: dist/mcedit2-*.zip
file_glob: true
skip_cleanup: true
on:
tags: true