-
Notifications
You must be signed in to change notification settings - Fork 32
/
.travis.yml
52 lines (51 loc) · 1.83 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
jobs:
allow_failures:
# - os: windows # This should be removed once tests pass on Windows.
include:
- os: linux
dist: xenial
language: python
python: 3.7
before_script:
- "curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter"
- "chmod +x ./cc-test-reporter"
- "./cc-test-reporter before-build"
after_script:
- "coverage xml"
- "if [[ \"$TRAVIS_TEST_RESULT\" == 0 ]]; then ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT; fi"
- os: linux
dist: bionic
language: python
python: 3.7
- os: osx
osx_image: xcode9.4 # Python 3.6.5 running on macOS 10.13
language: shell # 'language: python' is an error on Travis CI macOS
- os: windows
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --version 3.7.0
- choco install make
- choco install mingw
- python -m pip install --upgrade pip
- python -m pip install certifi
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
install:
- pip3 install --upgrade pip
- pip3 install -r requirements.txt
- pip3 install python-libsbml
- pip3 install cython
- pip3 install coverage
script:
- "coverage run --source=gillespy2 --omit=gillespy2/solvers/stochkit/* test/run_unit_tests.py -m develop"
- "coverage run --source=gillespy2 --omit=gillespy2/solvers/stochkit/* test/run_integration_tests.py -m develop"
deploy:
# API token stored in env var PYPI_PASSWORD on Travis CI
provider: pypi
distributions: sdist bdist_wheel
edge: true # opt in to dpl v2
user: __token__
on:
condition: $TRAVIS_DIST = xenial
repo: StochSS/GillesPy2
branch: main
tags: true