forked from diffpy/diffpy.pdfmorph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (47 loc) · 1.31 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
language: generic
sudo: false
cache:
directories:
- $HOME/.cache/pip
- $HOME/.cache/matplotlib
env:
- MY_PYTHON_VERSION=2.7
- MY_PYTHON_VERSION=3.5
- MY_PYTHON_VERSION=3.6
- MY_PYTHON_VERSION=3.7
before_install:
- "export MPLBACKEND=agg"
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p ~/mc
- export PATH=~/mc/bin:$PATH
- conda config --add channels conda-forge
- conda config --set always_yes yes --set changeps1 no --set quiet true
- conda update conda --yes
install:
- export GIT_FULL_HASH=`git rev-parse HEAD`
- conda create --yes -n testenv python=$MY_PYTHON_VERSION
- source activate testenv
- conda install --yes --file requirements/build.txt
- conda install pip
- pip install -r requirements/pip.txt
- pip install --no-deps .
- git clean -xfd
script:
- set -e
- conda install --yes --file requirements/run.txt
- conda install --yes --file requirements/test.txt
- coverage run run_tests.py
- coverage report -m
- codecov
# - |
# if [ $MY_PYTHON_VERSION = "3.6" ]; then
# conda install --yes --file requirements/docs.txt
# cd doc
# make html
# cd ..
# doctr deploy . --built-docs ./docs/_build/html;
# fi
after_script:
- set +e
- flake8 diffpy