Skip to content

Commit f6db7a5

Browse files
committed
Add travis config file
1 parent 5e147ba commit f6db7a5

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.travis.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
language: python
2+
os:
3+
- linux
4+
- osx
5+
env:
6+
matrix:
7+
- PYTHON_VERSION=3.4
8+
- PYTHON_VERSION=3.5
9+
- PYTHON_VERSION=3.6
10+
- PYTHON_VERSION=3.7
11+
before_install:
12+
- if [[ $TRAVIS_OS_NAME == linux ]]; then sudo apt-get update; fi
13+
- if [[ $TRAVIS_OS_NAME == linux ]]; then wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh; fi
14+
- if [[ $TRAVIS_OS_NAME == osx ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh; fi
15+
- bash miniconda.sh -b -p $HOME/miniconda
16+
- export PATH="$HOME/miniconda/bin:$PATH"
17+
- hash -r
18+
- conda config --set always_yes yes --set changeps1 no
19+
- conda update -q conda
20+
- conda info -a
21+
- conda create -q -n test-environment python=$PYTHON_VERSION ipywidgets nodejs
22+
- source activate test-environment
23+
- conda install -c conda-forge flake8
24+
- if [[ $TRAVIS_OS_NAME == linux ]]; then conda install -c conda-forge jupyterlab; fi
25+
install:
26+
- pip install -e .
27+
- if [[ $TRAVIS_OS_NAME == linux && $PYTHON_VERSION != 2.7 ]]; then jupyter labextension install .; fi
28+
script:
29+
- flake8 ipycanvas

0 commit comments

Comments
 (0)