Skip to content

Commit

Permalink
Revert test script stage config and fix deploy config
Browse files Browse the repository at this point in the history
  • Loading branch information
B-Stefan committed Dec 28, 2019
1 parent ed18c5b commit a56c3f8
Showing 1 changed file with 25 additions and 22 deletions.
47 changes: 25 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
language: python
sudo: required

python:
- 3.5
- 3.6
- 3.7
- 3.8
- 3.5
- 3.6
- 3.7
- 3.8
services:
- docker
before_install:
- docker-compose build
- docker-compose up -d
install:
- pip install '.[test]'
- pip install '.[docs]'
script:
- curl --output /dev/null --silent --head --fail http://localhost:7474
- coverage run --source=provdbconnector setup.py test
- make docs-travis
- ". ./.travis_docs.sh"
after_success:
- coveralls
- docker-compose down

jobs:
include:
- stage: test
services:
- docker
before_install:
- docker-compose build
- docker-compose up -d
install:
- pip install '.[test]'
- pip install '.[docs]'
script:
- curl --output /dev/null --silent --head --fail http://localhost:7474
- coverage run --source=provdbconnector setup.py test
- make docs-travis
- ". ./.travis_docs.sh"
after_success:
- coveralls
- docker-compose down
- stage: pypi release
if: tag IS present
python: "3.8"
script:
echo "Building project"
python setup.py build
deploy:
provider: pypi
user: __token__
Expand Down

0 comments on commit a56c3f8

Please sign in to comment.