forked from CORE-GATECH-GROUP/serpent-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (34 loc) · 798 Bytes
/
.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
# Use ubuntu 16.04 with xvfb service
# https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-services
dist: xenial
services:
- xvfb
language: python
python:
- "3.6"
- "3.5"
- "3.7"
- "3.8"
env:
global:
- SERPENT_TOOLS_DATA=data/
jobs:
- ST_INSTALL=setup
- ST_INSTALL=sdist
- ST_INSTALL=bdist_wheel
- ST_INSTALL=bdist_egg
before_install:
- pip install -r requirements.txt -r requirements-test.txt
- rm -rf dist
# install matrix
# build some distributions (source and wheel) and install from those
install:
- bash scripts/travis/install.sh
# run
script:
# Make data path absolute
- export SERPENT_TOOLS_DATA=$(pwd)/$SERPENT_TOOLS_DATA
- pytest --cov -v
- bash scripts/travis/testNotebooks.sh
after_success:
- coverage report