-
Notifications
You must be signed in to change notification settings - Fork 259
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 #78 from cs50/develop
adds support for other paramstyles
- Loading branch information
Showing
11 changed files
with
529 additions
and
199 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,41 +1,30 @@ | ||
language: python | ||
python: | ||
- '2.7' | ||
- '3.6' | ||
python: '3.6' | ||
branches: | ||
except: "/^v\\d/" | ||
services: | ||
- mysql | ||
- postgresql | ||
- mysql | ||
- postgresql | ||
install: | ||
- python setup.py install | ||
- pip install mysqlclient | ||
- pip install psycopg2-binary | ||
- python setup.py install | ||
- pip install mysqlclient | ||
- pip install psycopg2-binary | ||
before_script: | ||
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;' | ||
- psql -c 'create database test;' -U postgres | ||
- touch test.db test1.db | ||
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;' | ||
- psql -c 'create database test;' -U postgres | ||
- touch test.db test1.db | ||
script: python tests/sql.py | ||
after_script: rm -f test.db | ||
jobs: | ||
include: | ||
- stage: deploy | ||
python: '3.6' | ||
install: skip | ||
before_script: 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 | ||
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: master | ||
notifications: | ||
slack: | ||
secure: lJklhcBVjDT6KzUNa3RFHXdXSeH7ytuuGrkZ5ZcR72CXMoTf2pMJTzPwRLWOp6lCSdDC9Y8MWLrcg/e33dJga4Jlp9alOmWqeqesaFjfee4st8vAsgNbv8/RajPH1gD2bnkt8oIwUzdHItdb5AucKFYjbH2g0d8ndoqYqUeBLrnsT1AP5G/Vi9OHC9OWNpR0FKaZIJE0Wt52vkPMH3sV2mFeIskByPB+56U5y547mualKxn61IVR/dhYBEtZQJuSvnwKHPOn9Pkk7cCa+SSSeTJ4w5LboY8T17otaYNauXo46i1bKIoGiBcCcrJyQHHiPQmcq/YU540MC5Wzt9YXUycmJzRi347oyQeDee27wV3XJlWMXuuhbtJiKCFny7BTQ160VATlj/dbwIzN99Ra6/BtTumv/6LyTdKIuVjdAkcN8dtdDW1nlrQ29zuPNCcXXzJ7zX7kQaOCUV1c2OrsbiH/0fE9nknUORn97txqhlYVi0QMS7764wFo6kg0vpmFQRkkQySsJl+TmgcZ01AlsJc2EMMWVuaj9Af9JU4/4yalqDiXIh1fOYYUZnLfOfWS+MsnI+/oLfqJFyMbrsQQTIjs+kTzbiEdhd2R4EZgusU/xRFWokS2NAvahexrRhRQ6tpAI+LezPrkNOR3aHiykBf+P9BkUa0wPp6V2Ayc6q0= |
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
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
Oops, something went wrong.