Skip to content

Commit

Permalink
Merge pull request #86 from 4dn-dcic/c4_58
Browse files Browse the repository at this point in the history
C4-58 Deployment APIs
  • Loading branch information
willronchetti authored May 18, 2020
2 parents 7879f8c + 3cc5685 commit ee309fd
Show file tree
Hide file tree
Showing 6 changed files with 442 additions and 78 deletions.
43 changes: 20 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
language: python
sudo: false
cache:
pip: true
python:
- '3.5'
env:
global:
- secure: x8IUUQIlfb/RYfdbMdNLy5Q2/WhRWhAmVZqhum1WPZq4DlhQh2o5ntDCavJ3j3iQ3vekYZPksgQicX0Z6NUz8wXH7+gsbgCHvhN4NdDI3sLMpXc95tzHWP5YY1XY9UDryjZjqAiz2FVnmth7Y++gsRnPk2vCzw0xTOpwYDZoA+qLsYWUMZWNZkwQS3HlpeIj1f869+htzgLy+BaeeCUXEdKJF5rxZZpqSOPNIAeribaEKYdGRTtxTu3Sf+pq5rVQ+LM/X/FwzJcGfxrS3yKZErr2tS/DclONGCx8hcY01mTH6+rCb/zYd8NHTU+ZEOI41vICPSWcaoHvajMmLOF8h+6FRYWAYt5yF+GfWVdnuEDMxB1/Czul7+oKI6yh3Uv0R5/Nlhu8gpZ2Qwr9zk9OyZd9X1cYtRTEpPiqH2mc4aylclR1/MD/nLs1bHB+K591duyyWPtUQE7BFT0gksLLT9S/mt2p8pPu7CF6ZTAViLD4yUArmjBF/acP/QfThaXuHWqGUxO2oRvcD/YYPwyGWw/I2qmvVSAAZwNkaMahN6SAb5vgu3yOMrsQt6xDN+dcoqNQNu1tno4naFUnYzxW0ozR4mCTycAvbh9BknxuE5gAj/mAn4ZP4et6nwXyYbqJbeAFdhlwxL8ttiqgwZLdXD9oxBYlptPORzQCrpS3U74=
Expand All @@ -12,25 +8,26 @@ env:
- secure: z6WQVmKFTWf7in9J8764ic6gs5QyLctGYIDzstjSBXYrLTUfJjUwB7OAup1fAFXYUxtzkn6vjn3CIuy+5Nq7jL25Bwen4SJCPZtk9w/8acXUNDNlIFIak7T/jelOO11gHxHI6j2H+wj1BGxz1XZEkx8eeUN6389yvWgHQH01sbrQ7gXRgfmK+1pvUK9Li+4Mn9gBbOoqDxz2w8Wuazkk/FcmlYRYet4z8/y4FHwyc+Sa69utVJQAhDwJzngtb5WRdlWlrcFfyWhQ0eZ/shKxBcjekU5ZeLCh0av4ttB2IXVvLHzsr6vuCssRJqC7LHqiWEpXacWSf0ZOpMlAzwT+fPH5xXSl1kdc8vkpz8gYC5YDDMxkTrUoRv8vCYi/KWmYXNzdiAQn53aX741fcj5FV8v0ybmdPPQLfeQPDhCeHLlroWZsI5cgygxotIfeQzOY3MXSi+YqtZjmuHjAC1aINn9sLwYtCbV1ZVn3TxPaMyWjPlBuOaYoU6GkC+HxAcUy9QMVxBBzbVbOnaPri8NTXxHE58cIz+6GZVou4UDpEjjpi3Z8hieXu5cR0KKFVPofIQlgLaFZ9YgtAuXW6RP2k7ONYyCbW7bz39nnY6outFe96yR/HB4UKqBwc8dIUPfgzyoEyE1obnuNcsNf6UZf+B5ALM03ejQCx9KJuFPrZSw=
jobs:
include:
- stage: tests
before_install:
- pip install poetry
install:
- echo "Installing through poetry then running tests"
- poetry install
- pip install coveralls
script:
- flake8 dcicutils
- travis_wait coverage run --source=dcicutils -m pytest -vv test
- coveralls
deploy:
provider: script
script: poetry publish --build --username=$PYPI_USER --password=$PYPI_PASSWORD
on:
tags: true
after_success:
- echo "Finished running tests"
- |
- python: "3.6"
- python: "3.7"
before_install:
- pip install poetry
install:
- echo "Installing through poetry then running tests"
- poetry install
- pip install coveralls
script:
- flake8 dcicutils
- travis_wait coverage run --source=dcicutils -m pytest -vv test
- coveralls
deploy:
provider: script
script: poetry publish --build --username=$PYPI_USER --password=$PYPI_PASSWORD
on:
tags: true
after_success:
- echo "Finished running tests"
- |
if [[ $TRAVIS_BRANCH == 'master' ]]; then
echo 'Triggering docs build'
curl -X POST -d "branches=master" -d "token=$DOCS_TOKEN" https://readthedocs.org/api/v2/webhook/dcic-utils/99616/
Expand Down
Loading

0 comments on commit ee309fd

Please sign in to comment.