-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
43 lines (37 loc) · 1.25 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
language: python
sudo: true
branches:
only:
- master
python:
# We don't actually use the Travis Python, but this keeps it organized.
- "2.7"
- "3.5"
- "3.6"
install:
- sudo apt-get update
- sudo apt-get install -y libfreetype6-dev libfontconfig1-dev
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels conda-forge
- conda info -a
- conda create -n nb_anacondacloud python=$TRAVIS_PYTHON_VERSION
- conda install -y -n nb_anacondacloud -c conda-forge --file requirements.txt
- source activate nb_anacondacloud
- npm install
script:
- pip install -e .
- jupyter nbextension install nb_anacondacloud --py --sys-prefix --symlink
- jupyter nbextension enable nb_anacondacloud --py --sys-prefix
- jupyter serverextension enable nb_anacondacloud --py --sys-prefix
- npm run test
after_success:
- conda install python-coveralls
- coveralls