forked from ipython-contrib/jupyter_contrib_nbextensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
90 lines (90 loc) · 3.05 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
86
87
88
89
90
# http://travis-ci.org/#!/ipython-contrib/jupyter_contrib_nbextensions
language: python
dist: xenial
sudo: false
addons:
apt_packages:
- pandoc # for preprocessor tests
- inkscape # for preprocessor tests
# sauce_connect is used for connecting to saucelabs for js testing. Currently
# we don't use saucelabs, as this only works when env vars are set for sauce
# un & pw, which can't be made available securely in pull request builds. As
# a result, we must do any js testng locally with a headless browser.
# sauce_connect: true
matrix:
fast_finish: true
# Use the built-in venv for linux builds
# 3.5 as it isn't installed by default. Let tox handle other versions.
include:
# packaging sanity check
- os: linux
python: '3.8'
env: TOXENV=check
# python linting
- os: linux
python: '3.8'
env: TOXENV=lint
# check docs build correctly
- os: linux
python: '3.8'
env: TOXENV=docs_build
# check docs links
- os: linux
python: '3.8'
env: TOXENV=docs_linkcheck
# check that conda build/install works
- os: linux
python: '3.8'
env: TOXENV=condarecipe
# linux, various python and notebook versions
- os: linux
python: '3.8'
env: TOXENV=py38-notebook60
- os: linux
python: '3.8'
env: TOXENV=py38-notebook
- os: linux
python: '3.8'
env: TOXENV=appveyorartifacts
allow_failures:
- env: TOXENV=appveyorartifacts
- env: TOXENV=docs_linkcheck
- env: TOXENV=lint
env:
global:
- LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
- SEGFAULT_SIGNALS=all
before_install:
- uname -a
- id -un
- id -Gn
# stuff for conda recipe
- 'if [[ ${TOXENV} == "condarecipe" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then bash miniconda.sh -b -p $HOME/miniconda; fi'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then export PATH="$HOME/miniconda/bin:$PATH"; fi'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then hash -r; fi'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then conda config --set always_yes yes --set changeps1 no; fi'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then conda info -a; fi # Useful for debugging any issues with conda'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then conda install conda-build; fi'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then conda config --append channels conda-forge; fi # add conda-forge channel at lower priority than defaults'
- 'if [[ ${TOXENV} == "condarecipe" ]]; then git fetch --unshallow; fi'
install:
- pip install tox
- virtualenv --version
script:
- tox -v -e ${TOXENV}
after_script:
# test if TOXENV not in set
# see http://unix.stackexchange.com/a/111518
- 'if ! [[ ${TOXENV} =~ ^(appveyorartifacts|check|condarecipe|docs|lint)$ ]]; then tox -e coveralls,codecov; fi'
after_failure:
- more .tox/log/* | cat
- more .tox/*/log/* | cat
after_success:
before_cache:
- rm -rf $HOME/.cache/pip/log
cache:
directories:
- $HOME/.cache/pip
notifications:
email: false