-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (45 loc) · 1.44 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
sudo: false
language: generic
env:
global:
- PKG_NAME="odbo"
- DB_CONNECTION_STRING="mysql://root:@127.0.0.1:3306"
install:
- wget --no-verbose -O anaconda.sh https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh;
- bash anaconda.sh -b -p $HOME/anaconda
- export PATH="$HOME/anaconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels ostrokach
- conda config --add channels kimlab
- conda config --add channels defaults
- conda config --add channels conda-forge
- conda config --add channels bioconda
- conda config --add channels omnia
- conda info -a
- conda update -q conda
- conda install -q --yes conda-build anaconda-client git-lfs
- git lfs pull
- conda build devtools/conda-recipe/
script:
- conda create -n _test $PKG_NAME --use-local
- source activate _test
- pip install flake8 pytest pytest-runner pytest-cov pytest-logging
- flake8
- py.test
- source deactivate
after_success:
- echo "Success!"
- pip install codecov
- codecov
- |
if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" == "false" ] ; then
devtools/travis-ci/build-docs.sh;
anaconda -t $ANACONDA_TOKEN upload /home/travis/anaconda/conda-bld/linux-64/*.tar.bz2;
python setup.py build sdist bdist_wheel;
twine upload dist/* -u ostrokach -p $PYPI_PASSWORD;
fi
after_failure:
- echo "Failure!"
after_script:
- echo "X_X"