Skip to content

Commit

Permalink
Refactor tests (#30)
Browse files Browse the repository at this point in the history
* remove double brainio dependency

* add tests on tagged commits

* bump

* only submit to coveralls once

* bump
  • Loading branch information
adamltyson committed Jun 1, 2020
1 parent 5df3a13 commit faaee88
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 6 deletions.
45 changes: 41 additions & 4 deletions .travis.yml
@@ -1,9 +1,8 @@
after_success:
- pip install coveralls
- coveralls

stages:
- test
- name: deploy_test
if:
tag IS present
- name: deploy
if:
tag IS present AND repo = brainglobe/brainatlas-api
Expand All @@ -20,6 +19,9 @@ jobs:
python: 3.6
before_install: source travis/install_unix.sh
script: bash travis/test.sh
after_success:
- pip install coveralls
- coveralls

- stage: test
name: "Ubuntu Xenial python 3.7"
Expand Down Expand Up @@ -69,6 +71,41 @@ jobs:
before_install: source travis/install_unix.sh
script: bash travis/lint.sh

- stage: deploy_test
name: "Windows Python 3.6"
language: shell
env: TRAVIS_PYTHON_VERSION=3.6
os: windows
before_install: source travis/install_windows.sh
script: bash travis/test.sh

- stage: deploy_test
name: "Windows Python 3.8"
language: shell
env: TRAVIS_PYTHON_VERSION=3.8
os: windows
before_install: source travis/install_windows.sh
script: bash travis/test.sh

- stage: deploy_test
name: "macOS Python 3.6"
os: osx
language: shell
env:
- TRAVIS_PYTHON_VERSION=3.6
- MINICONDA_URL=https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
before_install: source travis/install_unix.sh
script: bash travis/test.sh

- stage: deploy_test
name: "macOS Python 3.8"
os: osx
language: shell
env:
- TRAVIS_PYTHON_VERSION=3.8
- MINICONDA_URL=https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
before_install: source travis/install_unix.sh
script: bash travis/test.sh

- stage: deploy
os: bionic
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Expand Up @@ -5,7 +5,7 @@

setup(
name="brainatlas-api",
version="0.0.1c",
version="0.0.2rc0",
description="A lightweight python module to interact with atlases for systems neuroscience",
install_requires=requirements,
extras_require={
Expand All @@ -24,7 +24,6 @@
"coverage",
"pre-commit",
"PyMCubes",
"brainio",
]
},
python_requires=">=3.6, <3.8",
Expand Down

0 comments on commit faaee88

Please sign in to comment.