-
Notifications
You must be signed in to change notification settings - Fork 26
/
.travis.yml
78 lines (71 loc) · 2.54 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
language: python
python:
- '2.7'
- '3.5'
sudo: false
before_install:
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ];
then wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
else wget http://repo.continuum.io/miniconda/Miniconda3-3.4.2-Linux-x86_64.sh -O miniconda.sh;
fi
- chmod +x miniconda.sh
- "./miniconda.sh -b"
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ];
then export PATH=~/miniconda2/bin/:$PATH;
else export PATH=~/miniconda3/bin/:$PATH;
fi
- conda update --yes conda
- export COVERALLS_SERVICE_NAME=travis-ci
- export COVERALLS_REPO_TOKEN=Pk8rldcpUmf4b8ITeoa7XBYHiAc3LNXlc
install:
- conda create -n testenv --yes python=$TRAVIS_PYTHON_VERSION
- source activate testenv
- conda install --yes --file conda_requirements.txt
- pip install -r requirements.txt
- pip install coverage
- pip install coveralls
before_script:
- git config --global user.email "[email protected]"
- git config --global user.name "olgabot"
- git config --global push.default simple
- export REPO_URL_GITHUB="https://[email protected]/$GH_REPO.git"
- ". ./.travis/setup.sh"
- echo $DEPLOY_HTML_DIR
script:
- make coverage
# For running flake8 - only with py2 -
- if [[ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]]; then make lint ; fi
# For building the docs - only with py2 -
- MASTER=master
- if [[ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]] || [[ $TRAVIS_BRANCH == v*.*.* ]] ;
then export DEPLOY_HTML_DIR=docs ; fi
- if [[ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]] || [[ $TRAVIS_BRANCH == "$MASTER" ]] ;
then export DEPLOY_HTML_DIR=docs-dev ; fi
# - if [[ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]] || [[ $TRAVIS_BRANCH == v*.*.* ]] || [[ $TRAVIS_BRANCH == "$MASTER" ]] ;
# then sudo apt-get install pandoc;
# conda install --yes --file doc/conda_requirements.txt ;
# pip install -r doc/requirements.txt;
# pip install . ;
# cd doc ;
# make setup_gh_pages ;
# make generate ;
# make deploy ;
# fi
after_script:
- coveralls
notifications:
slack:
rooms:
- yeolab:HxLwrd5FGhZQ8SyBD9Fvh3dn#flotilla
env:
global:
- GH_REPO="YeoLab/flotilla"
- secure: N8LIn+ZtvaL+j9uHJFRtTWHbJtLk47r+7PUaSPapmpRPkqD4zClwC1+xVrfRXYiTWLVmCMfbcOAjQmZR8OjL8TKD4yGPzXAS5yb9QUhlMBf2is7CECIZQcQ/kht4KGKF72QoRY4r/Eh4NKhayBUWwZmHXd5zIKn8C/irvr+6LBI=
deploy:
provider: pypi
user: obot
password:
secure: YVGmMuvzAcgEZqk1ezIl6yMwPW4DZ0euHbifyHfz1FQHGlAxHJa8CMfzVfkbkR820xTapidkZkBlBAY1zOyJ346M/rID0T5WvBM68qbeYvyp24IR7p4gEnlcBvljs+Ce9/egzIs/XxceYnJekJ2iyWmTaTxb2v8Efqp1UNEaaIY=
on:
tags: true
repo: YeoLab/flotilla