-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
62 lines (62 loc) · 1.87 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
language: python
matrix:
include:
# Use the built in venv for linux builds
- os: linux
sudo: required
python: 3.5
cache: pip
dist: trusty
sudo: false
env:
# Required to disable QXcbConnection errors/warnings
- QT_QPA_PLATFORM=offscreen
# Use generic language for osx
- os: osx
language: generic
cache: pip
before_install:
- brew update
# Install Python 3.5.2 only
# Normal brew install gets 3.6.x which is incompatible
- brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/ec545d45d4512ace3570782283df4ecda6bb0044/Formula/python3.rb
- virtualenv venv -p python3
- source venv/bin/activate
- which pip
- pip install six wheel nose
before_deploy:
- chmod +x ./pkg/macOS/build_app.sh
- ./pkg/macOS/build_app.sh
env:
global:
- PYTHONPATH="$TRAVIS_BUILD_DIR/src;$TRAVIS_BUILD_DIR/test"
# Perform the manual steps on osx to install python3 and activate venv
install:
# install dependencies
- pip install -r requirements.txt
# Test dev version of PyInstaller
- pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip
# install testing tools
- pip install coverage coveralls pep8
script:
# PEP8 Style Checks
- pep8 --show-source src/ test/
# Run tests and collect coverage information
- nosetests --with-coverage --cover-package=src --cover-html
# Run PyInstaller build
- pyinstaller specs/launcher.spec --name launcher --onefile --log-level=DEBUG
after_success:
coveralls
deploy:
- provider: script
script: curl -i -X POST $DEPLOY_BASE_URL/$TRAVIS_BRANCH/$TRAVIS_OS_NAME?token=$TOKEN
skip_cleanup: true
on:
branch:
- config
- master
- provider: script
script: ./scripts/deploy.sh
skip_cleanup: true
on:
branch: master