-
Notifications
You must be signed in to change notification settings - Fork 38
/
.travis.yml
66 lines (58 loc) · 2.21 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
63
64
65
# *************************************
# .travis.yml - Travis CI configuration
# *************************************
#
# Otherwise, we get errors. See https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments.
sudo: required
addons:
apt:
sources:
- sourceline: "deb http://us.archive.ubuntu.com/ubuntu/ xenial main universe"
packages:
- xvfb
# See https://docs.travis-ci.com/user/multi-os/.
os: linux
# See https://docs.travis-ci.com/user/languages/python.
language: python
# We only support Python 3.
python:
- 3.5
- 3.6
# See https://docs.travis-ci.com/user/customizing-the-build/#Build-Matrix. This
# manually includes additional OS X tests to the matrix of Linux tests defined
# above.
matrix:
include:
- os: osx
# Since Travis's OS X doesn't natively support Python, use some workarounds.
language: generic
env: INSTALL_TYPE=macpython VERSION=3.5.2 VENV=venv
- os: osx
language: generic
env: INSTALL_TYPE=macpython VERSION=3.6.1 VENV=venv
# Travis complains if tests are run during install, or if installation is done
# during script (the tests). So, break the script into two pieces.
install:
# OS X setup depends on scripts in qutepart, so clone it first.
- git clone https://github.com/andreikop/qutepart.git
# Install Python for OS X, since it's not provided by the Travis environment.
# It must be ``source``\ ed, so that the following commands run in the Python
# virtual environment this creates.
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source qutepart/tests/ci/osx_install.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then tests/ci/osx_install.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then qutepart/tests/ci/linux_install.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then tests/ci/linux_install.sh; fi
- python -m pip install -e .
before_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh -e /etc/init.d/xvfb start; sleep 3; fi
script:
# Source virtualenv on OS X
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then source terryfy/test_tools.sh; fi
# Set display on Linux
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; fi
- cd tests
- python run_all.py
cache:
directories:
- /downloads
apt: true