forked from shotgunsoftware/tk-multi-publish2
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
33 lines (30 loc) · 1.58 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
language: python
python:
- "2.7"
env:
- SHOTGUN_EXTERNAL_REPOS_ROOT=/tmp
# command to install dependencies
# Ideally we would be pip installing tk-core, but we need the testing framework from core,
# so we will clone the repo install to a known location and run the tests there.
install:
- git clone --depth 1 --branch master https://github.com/shotgunsoftware/tk-core /tmp/tk-core
- git clone --depth 1 --branch master https://github.com/shotgunsoftware/tk-framework-qtwidgets /tmp/tk-framework-qtwidgets
- git clone --depth 1 --branch master https://github.com/shotgunsoftware/tk-framework-shotgunutils /tmp/tk-framework-shotgunutils
- git clone --depth 1 --branch master https://github.com/shotgunsoftware/tk-shell /tmp/tk-shell
# Install CI dependencies
- pip install -r /tmp/tk-core/tests/ci_requirements.txt
# install pyside - from https://stackoverflow.com/questions/24489588
- sudo apt-get install libqt4-dev
- pip install PySide --no-index --find-links https://parkin.github.io/python-wheelhouse/;
# Travis CI servers use virtualenvs, so we need to finish the install by the following
- python ~/virtualenv/python${TRAVIS_PYTHON_VERSION}/bin/pyside_postinstall.py -install
# Now we need to start the X server...
# Taken from: https://github.com/colmap/colmap/commit/606d3cd09931d78a3272f99b5e7a2cb6894e243e
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
# Finally, tell Qt to run offscreen.
- export QT_QPA_PLATFORM=offscreen
# command to run tests
script: tests/run_tests.sh --with-coverage
after_success: coveralls