-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the pipeline to cover more supported code. (#82)
This updates the pipeline to use new versions of pre-commit repos. This also covers more of the post deployment testing code for implementers to debug installations. Signed-off-by: David Brown <dmlb2000@gmail.com>
- Loading branch information
Showing
3 changed files
with
60 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,67 @@ | ||
language: python | ||
dist: xenial | ||
stages: | ||
- lint | ||
- test | ||
- test-docker | ||
- deploy | ||
".script": &1 | ||
- pip install . | ||
- export ARCHIVEINTERFACE_CPCONFIG=$PWD/server.conf | ||
- cd tests | ||
- coverage run --include '*/site-packages/pacifica/archiveinterface/*' --omit '*/site-packages/pacifica/archiveinterface/backends/abstract/*' -m pacifica.archiveinterface --stop-after-a-moment | ||
- coverage run -a --include '*/site-packages/pacifica/archiveinterface/*' --omit '*/site-packages/pacifica/archiveinterface/backends/abstract/*' -m pytest -xv | ||
- coverage report -m --fail-under 100 | ||
".lint_block": &3 | ||
stage: lint | ||
script: pre-commit run -a | ||
".docker_block": &2 | ||
stage: test-docker | ||
sudo: required | ||
services: | ||
- docker | ||
script: | ||
- docker-compose build --pull | ||
- docker-compose up -d | ||
- cd post_deployment_tests | ||
- python -m unittest deployment_test | ||
".test_block": &1 | ||
stage: test | ||
script: | ||
- pip install . | ||
- export ARCHIVEINTERFACE_CPCONFIG=$PWD/server.conf | ||
- cd tests | ||
- coverage run --include '*/site-packages/pacifica/archiveinterface/*' --omit '*/site-packages/pacifica/archiveinterface/backends/abstract/*' -m pacifica.archiveinterface --stop-after-a-moment | ||
- coverage run -a --include '*/site-packages/pacifica/archiveinterface/*' --omit '*/site-packages/pacifica/archiveinterface/backends/abstract/*' -m pytest -xv | ||
- coverage report -m --fail-under 100 | ||
".deploy_block": &4 | ||
stage: deploy | ||
language: python | ||
script: skip | ||
".deploy_attrs": &5 | ||
skip_cleanup: true | ||
provider: pypi | ||
user: dmlb2000 | ||
password: | ||
secure: S/O36Q5SiMtYF8Gtovo0hO7tczJc+YB79RGyBylmGjhmXlMfYv0bHAtYTEwGbqSrB1gGZgV0JMTvOKFmfHPIOm0mYxobPBgzNqAK0uqI+zueVf2+KmxwzC45uXRAzsRjcjMr66bPf04WRYP1vT7Lhp/JJ5nwfAT81TGERo1rP2w4gs/8fvZWJPmexFOocyNRYpf8yg+bQrIQzco/neNgjvPtYd7P1tBhJcxngkMRAd0HXc6ehegUbqHVotvTXH8BG+h9ZRZd5szrRlyfl5+u8YcBKx4cm4i2ayJ43/vurIJIs6CULsvFTClHol/4mFW2uyg3mqw1E37fd0HoHsY7FPR81cdPnpgA5ljieJIh6XCVF8rE7rYoPuedAcFlqTHSkqZoCNK/uodY91SQFyyYW2msWWYAGMDrJ4bHQEWYIkkNf+wCFHG6wAIVIhlJiOZa0Y5aopVtlrpRVgKPw5U0XfqNjI82yXU+W8H3WC0bXK3ggrHE+JPFNqEd2bAS4a3NOFNxeVRtql/qYw7QN4EUa6XHTl6IRbeSVSJX43BeREktDdIFKnZ/i3jUutbSX4jwsDUsstobQjmdksi97QkAsNIBTiG67QqJJloSf6Kv4gbpYfDZ3zaPkzVgrjJnViqyLUU/JS2iTimsB/gq3EMUNgPSQWCLtOlOeo4sDNG5Pbg= | ||
on: | ||
tags: true | ||
jobs: | ||
include: | ||
- stage: lint | ||
python: 3.6 | ||
script: pre-commit run -a | ||
- python: 3.6 | ||
<<: *3 | ||
- python: 2.7 | ||
script: pre-commit run -a | ||
- stage: test | ||
script: *1 | ||
python: 3.6 | ||
- script: *1 | ||
python: 2.7 | ||
- stage: test-docker | ||
sudo: required | ||
python: 2.7 | ||
services: | ||
- docker | ||
script: > | ||
docker-compose build --pull; | ||
docker-compose up -d; | ||
cd post_deployment_tests; | ||
python -m unittest deployment_test.BasicArchiveTests | ||
- stage: deploy | ||
language: python | ||
script: skip | ||
python: 3.6 | ||
<<: *3 | ||
- python: 3.6 | ||
<<: *1 | ||
- python: 2.7 | ||
<<: *1 | ||
- python: 3.6 | ||
<<: *2 | ||
- python: 2.7 | ||
<<: *2 | ||
- python: 3.6 | ||
deploy: | ||
skip_cleanup: true | ||
provider: pypi | ||
user: dmlb2000 | ||
distributions: sdist bdist_wheel | ||
password: | ||
secure: S/O36Q5SiMtYF8Gtovo0hO7tczJc+YB79RGyBylmGjhmXlMfYv0bHAtYTEwGbqSrB1gGZgV0JMTvOKFmfHPIOm0mYxobPBgzNqAK0uqI+zueVf2+KmxwzC45uXRAzsRjcjMr66bPf04WRYP1vT7Lhp/JJ5nwfAT81TGERo1rP2w4gs/8fvZWJPmexFOocyNRYpf8yg+bQrIQzco/neNgjvPtYd7P1tBhJcxngkMRAd0HXc6ehegUbqHVotvTXH8BG+h9ZRZd5szrRlyfl5+u8YcBKx4cm4i2ayJ43/vurIJIs6CULsvFTClHol/4mFW2uyg3mqw1E37fd0HoHsY7FPR81cdPnpgA5ljieJIh6XCVF8rE7rYoPuedAcFlqTHSkqZoCNK/uodY91SQFyyYW2msWWYAGMDrJ4bHQEWYIkkNf+wCFHG6wAIVIhlJiOZa0Y5aopVtlrpRVgKPw5U0XfqNjI82yXU+W8H3WC0bXK3ggrHE+JPFNqEd2bAS4a3NOFNxeVRtql/qYw7QN4EUa6XHTl6IRbeSVSJX43BeREktDdIFKnZ/i3jUutbSX4jwsDUsstobQjmdksi97QkAsNIBTiG67QqJJloSf6Kv4gbpYfDZ3zaPkzVgrjJnViqyLUU/JS2iTimsB/gq3EMUNgPSQWCLtOlOeo4sDNG5Pbg= | ||
on: | ||
tags: true | ||
- language: python | ||
python: 2.7 | ||
script: skip | ||
<<: *5 | ||
<<: *4 | ||
- python: 2.7 | ||
deploy: | ||
skip_cleanup: true | ||
provider: pypi | ||
user: dmlb2000 | ||
distributions: bdist_wheel | ||
password: | ||
secure: S/O36Q5SiMtYF8Gtovo0hO7tczJc+YB79RGyBylmGjhmXlMfYv0bHAtYTEwGbqSrB1gGZgV0JMTvOKFmfHPIOm0mYxobPBgzNqAK0uqI+zueVf2+KmxwzC45uXRAzsRjcjMr66bPf04WRYP1vT7Lhp/JJ5nwfAT81TGERo1rP2w4gs/8fvZWJPmexFOocyNRYpf8yg+bQrIQzco/neNgjvPtYd7P1tBhJcxngkMRAd0HXc6ehegUbqHVotvTXH8BG+h9ZRZd5szrRlyfl5+u8YcBKx4cm4i2ayJ43/vurIJIs6CULsvFTClHol/4mFW2uyg3mqw1E37fd0HoHsY7FPR81cdPnpgA5ljieJIh6XCVF8rE7rYoPuedAcFlqTHSkqZoCNK/uodY91SQFyyYW2msWWYAGMDrJ4bHQEWYIkkNf+wCFHG6wAIVIhlJiOZa0Y5aopVtlrpRVgKPw5U0XfqNjI82yXU+W8H3WC0bXK3ggrHE+JPFNqEd2bAS4a3NOFNxeVRtql/qYw7QN4EUa6XHTl6IRbeSVSJX43BeREktDdIFKnZ/i3jUutbSX4jwsDUsstobQjmdksi97QkAsNIBTiG67QqJJloSf6Kv4gbpYfDZ3zaPkzVgrjJnViqyLUU/JS2iTimsB/gq3EMUNgPSQWCLtOlOeo4sDNG5Pbg= | ||
on: | ||
tags: true | ||
<<: *5 | ||
<<: *4 | ||
install: | ||
- pip install -r requirements-dev.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters