-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #289 from cs50/develop
3.0.3
- Loading branch information
Showing
2 changed files
with
25 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,28 @@ | ||
language: python | ||
python: '3.6' | ||
python: 3.6 | ||
branches: | ||
except: "/^v\\d/" | ||
install: true | ||
script: | ||
- pip install . | ||
- help50 foo | ||
jobs: | ||
include: | ||
- stage: deploy | ||
python: '3.6' | ||
install: skip | ||
script: skip | ||
deploy: | ||
- provider: script | ||
script: 'curl --fail --data "{ \"tag_name\": \"v$(python setup.py --version)\", | ||
\"target_commitish\": \"$TRAVIS_COMMIT\", \"name\": \"v$(python setup.py --version)\" | ||
}" --user bot50:$GITHUB_TOKEN https://api.github.com/repos/$TRAVIS_REPO_SLUG/releases' | ||
on: | ||
branch: master | ||
- provider: pypi | ||
user: "$PYPI_USERNAME" | ||
password: "$PYPI_PASSWORD" | ||
on: | ||
branch: master | ||
except: /^v\d+\.\d+\.\d+/ | ||
install: pip install . | ||
script: help50 foo | ||
before_deploy: | | ||
version="v$(help50 --version | cut --delimiter ' ' --fields 2)" | ||
if [ -z "$(git tag --list "$version")" ]; then \ | ||
git config --local user.name "bot50"; \ | ||
git config --local user.email "[email protected]"; \ | ||
git tag "$version"; \ | ||
fi | ||
deploy: | ||
- provider: releases | ||
api_key: $GITHUB_TOKEN | ||
skip_cleanup: true | ||
on: | ||
branch: master | ||
- provider: pypi | ||
user: "$PYPI_USERNAME" | ||
password: "$PYPI_PASSWORD" | ||
skip_cleanup: true | ||
on: | ||
branch: master | ||
notifications: | ||
slack: | ||
secure: mX+aQD+EcHlYRYV1aKdDdKDyOQQpKi1Ygt6ygyJDzZGDqo3Y0zTT6M0vkxBjJKCnBfeaAIhKBQbKQl8skdBE2Fa7dZWKT1mxa4G+nGIyH3eEEZIIw9YxnUYBaAr8i0HXQs0B6b52LX8c+CWRYXWknEER4CdlIBkabYW4YlsaVLmLmUhtTxFJARKDYe6d8DTrFaSLug8SNVeyQPPnqBgRgu97WRd1VNyyQwuyW0Ax2+KAzzTiA7O6wuBk8/pBfbNDzdH44BCZcvUIccbRAFq4V1jDPjhdR/iZcPexX+pLlnK6BFyCXLD1Fwpkcc2A16fpqieRuwjqAVHv4yrUo3WouhJVr/XXgIu/lWX4Sj7KKJHSGfw9vHWP7FORLJ/6KPObM1bAGe/sunmFCz7wJw96+/KlgdwXWIvab/ErRpC8Omjabd+tPmNYWPyMHYGtprppO9DDW7oJ5XJ6PO/NyYwG4QlZ9vFabyAb2q97TXjZLNPqd85t4MhxlMxAZFbNkTEXdCdFMVpgGBJD8NUniYuns0a+g8HBZqgbKvv1XjJAFPYUNuOqqfBwxvVF5RLE7dErjcsu44NmrkI74LYoaDqTNNflZ4xGHMsg7o3BJQlBQBqJyKizhAxOHUyrGHUd7mklGANLj8me92UWhdrDx9Xtt3d3CNvocx9PyzPcTlTMA4E= |
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