-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
.travis.yml
45 lines (39 loc) · 1.54 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
# https://travis-ci.org/spyder-ide/spyder
language: python
dist: trusty
sudo: false
matrix:
fast_finish: true
include:
- python: "3.6"
env: USE_PYQT=pyqt5 USE_CONDA=yes PYTHON_VERSION=3.6
os: osx
language: generic
- python: "2.7"
env: USE_PYQT=pyqt5 USE_CONDA=yes
os: linux
- python: "3.5"
env: USE_PYQT=pyqt5 USE_CONDA=yes
os: linux
- python: "3.6"
env: USE_PYQT=pyqt5 USE_CONDA=yes
os: linux
- python: "3.6"
env: USE_PYQT=pyqt5 USE_CONDA=no
os: linux
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh -e /etc/init.d/xvfb start; fi
# Avoid annoying focus problems when running tests
# See discussion in e.g. https://github.com/spyder-ide/spyder/pull/6132
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y matchbox-window-manager; fi
install:
- ./continuous_integration/travis/install.sh;
- ./continuous_integration/travis/install-qt.sh;
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then DISPLAY=:99 matchbox-window-manager& fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sleep 5; fi
script:
- ./continuous_integration/travis/runtests.sh || ./continuous_integration/travis/runtests.sh || ./continuous_integration/travis/runtests.sh;
after_success:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export PATH="$HOME/miniconda/bin:$PATH" && source activate test && coveralls; fi