-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
45 lines (45 loc) · 1.33 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
language: python
cache:
directories:
- $HOME/.cache/bower
- $HOME/.cache/pip
notifications:
email: false
python:
- 3.5
- 2.7
sudo: false
install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then wget https://repo.continuum.io/miniconda/Miniconda-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 update -q conda
- conda info -a
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib
cython h5py jupyter nose
- source activate test-environment
- pip install jupyter numpy matplotlib nose vapory chemlab==1.0b1
- pip install .
- npm install -g nightwatch
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
- jupyter notebook --port=8889 &
- sleep 3
script:
- nightwatch
- nosetests -a '!povray' tests
deploy:
provider: pypi
user: gabriele.lanaro
distributions: "sdist bdist_wheel"
password:
secure: civsioJrm0U1/isDG0pxWuxAgj/UDsbrUv+36iAua7ua9G9+9FN8Xw9bCr0ehCoGu9c3IC6er0F/8fti0ds3PT+1qLuMGzfv11cyvuV5gXMukK8hBmYzQY9I9C81vrWK7eWjnjcHH87uSYzOpPvE2SdVvcSSzcwdWXMKm6z/Jbc=
on:
tags: true
repo: gabrielelanaro/chemview