-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.travis.yml
85 lines (69 loc) · 2.26 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# vim ft=yaml
# Notes below compliments of the scikit-image team:
# - Use http://yaml-online-parser.appspot.com/ to make sure the yaml
# file is valid. http://lint.travis-ci.org/ is recommended
# elsewhere but does not give helpful error reports.
# - Make sure all of your "-" lines start on the same column
# - Use bash scripts for `before_install` and `script` or any part
# that has conditional statements
# - Make sure they are "executable" (chmod +x)
# - Use the following header:
# ```
# #!/usr/bin/env bash
# set -ex
# ```
# - Use the `retry` bash function from `before_install.sh` before a
# command to have it try 3 times before failing.
# - Use `pip install --retries N` for retrying package downloads.
# - Use the `section` function to start a folded section of the
# script. Section names must have underscores or dots instead of
# spaces and must be accompanied by a corresponding `section_end`
# call.
# - Feel free to cancel a build rather than waiting for it to go to
# completion if you have made a change to that branch.
# - A VM with 64bit Ubuntu 12.04 is a huge help for debugging.
language: python
dist: xenial
sudo: required
cache:
# See http://docs.travis-ci.com/user/caching/#pip-cache
directories:
- $HOME/.cache/pip
- $HOME/.cache/sphinx
- $HOME/.ccache
- $HOME/.local
- node_modules
addons:
apt:
packages:
- ccache
- wget
- nodejs
- supervisor
- unzip
- libnss3
- libgconf-2-4
postgresql: "9.6"
firefox: latest
services:
- xvfb
matrix:
include:
- python: 3.6
env:
- TEST_TARGET=test
before_install:
- ccache -s
- export PATH=/usr/lib/ccache:${PATH}
- which python; python --version
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B05F25D762E3157
- source .travis/travis_funcs.sh
- export PYTHONPATH=$PYTHONPATH:$(pwd)
install:
# Workaround for invalid GPG keys for MongoDB, CouchDB, and git-lfs
- sudo rm -f /etc/apt/sources.list.d/mongodb*
- sudo rm -f /etc/apt/sources.list.d/couchdb*
- sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 762E3157
- .travis/travis_install.sh
script: .travis/travis_script.sh