-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
34 lines (34 loc) · 1.08 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
language: python
python:
- "3.5"
# command to install dependencies
services:
- mysql
- docker
before_install:
- git submodule sync
- git submodule update --init --recursive --remote
- docker build -t ols tests/ols-docker
- docker run -d -p 127.0.0.1:8080:8080 -t ols
- docker ps -a
- git clone https://github.com/Ensembl/ensembl-hive.git
- export PYTHONPATH=$PWD/ensembl-hive/wrappers/python3:$PYTHONPATH
install:
- pip install -r requirements.txt
- pip install nose
- pip install coverage
- pip install python-coveralls
# command to run tests
script:
- coverage run -m nose tests.test_basic --verbose --cover-package=bio.ensembl
# - coverage run -m nose tests.test_remote --verbose --cover-package=bio.ensembl
before_script:
- mysql -e 'CREATE DATABASE ols_test_ontology;' -u root
after_success:
- coveralls
notifications:
email:
on_success: change
on_failure: always
slack:
secure: BkrSPAkOM5aTOpeyO9vZnHdZ0LF1PLk0r2HtcXN2eTMyiHoGXkl6VUjdAL8EkzI4gunW2GProdSIjHpf60WdiEmKAulMdJRI+xyUbuxnY31mwiikS9HYwqmPBbMTf0Mh2pMBngZRFs+gaFZDUMTfLfp+8MQfU1R54yb6hPuVt5I=