|
1 | 1 | language: python |
2 | | -python: |
3 | | -- '2.7' |
4 | | -- '3.6' |
| 2 | +python: '3.6' |
5 | 3 | branches: |
6 | 4 | except: "/^v\\d/" |
7 | 5 | services: |
8 | | -- mysql |
9 | | -- postgresql |
| 6 | + - mysql |
| 7 | + - postgresql |
10 | 8 | install: |
11 | | -- python setup.py install |
12 | | -- pip install mysqlclient |
13 | | -- pip install psycopg2-binary |
| 9 | + - python setup.py install |
| 10 | + - pip install mysqlclient |
| 11 | + - pip install psycopg2-binary |
14 | 12 | before_script: |
15 | | -- mysql -e 'CREATE DATABASE IF NOT EXISTS test;' |
16 | | -- psql -c 'create database test;' -U postgres |
17 | | -- touch test.db test1.db |
| 13 | + - mysql -e 'CREATE DATABASE IF NOT EXISTS test;' |
| 14 | + - psql -c 'create database test;' -U postgres |
| 15 | + - touch test.db test1.db |
18 | 16 | script: python tests/sql.py |
19 | | -after_script: rm -f test.db |
20 | | -jobs: |
21 | | - include: |
22 | | - - stage: deploy |
23 | | - python: '3.6' |
24 | | - install: skip |
25 | | - before_script: skip |
26 | | - script: skip |
27 | | - deploy: |
28 | | - - provider: script |
29 | | - script: 'curl --fail --data "{ \"tag_name\": \"v$(python setup.py --version)\", |
30 | | - \"target_commitish\": \"$TRAVIS_COMMIT\", \"name\": \"v$(python setup.py --version)\" |
31 | | - }" --user bot50:$GITHUB_TOKEN https://api.github.com/repos/$TRAVIS_REPO_SLUG/releases' |
32 | | - on: |
33 | | - branch: master |
34 | | - - provider: pypi |
35 | | - user: "$PYPI_USERNAME" |
36 | | - password: "$PYPI_PASSWORD" |
37 | | - on: |
38 | | - branch: master |
| 17 | +deploy: |
| 18 | + - provider: script |
| 19 | + script: 'curl --fail --data "{ \"tag_name\": \"v$(python setup.py --version)\", |
| 20 | + \"target_commitish\": \"$TRAVIS_COMMIT\", \"name\": \"v$(python setup.py --version)\" |
| 21 | + }" --user bot50:$GITHUB_TOKEN https://api.github.com/repos/$TRAVIS_REPO_SLUG/releases' |
| 22 | + on: |
| 23 | + branch: master |
| 24 | + - provider: pypi |
| 25 | + user: "$PYPI_USERNAME" |
| 26 | + password: "$PYPI_PASSWORD" |
| 27 | + on: master |
39 | 28 | notifications: |
40 | 29 | slack: |
41 | 30 | secure: lJklhcBVjDT6KzUNa3RFHXdXSeH7ytuuGrkZ5ZcR72CXMoTf2pMJTzPwRLWOp6lCSdDC9Y8MWLrcg/e33dJga4Jlp9alOmWqeqesaFjfee4st8vAsgNbv8/RajPH1gD2bnkt8oIwUzdHItdb5AucKFYjbH2g0d8ndoqYqUeBLrnsT1AP5G/Vi9OHC9OWNpR0FKaZIJE0Wt52vkPMH3sV2mFeIskByPB+56U5y547mualKxn61IVR/dhYBEtZQJuSvnwKHPOn9Pkk7cCa+SSSeTJ4w5LboY8T17otaYNauXo46i1bKIoGiBcCcrJyQHHiPQmcq/YU540MC5Wzt9YXUycmJzRi347oyQeDee27wV3XJlWMXuuhbtJiKCFny7BTQ160VATlj/dbwIzN99Ra6/BtTumv/6LyTdKIuVjdAkcN8dtdDW1nlrQ29zuPNCcXXzJ7zX7kQaOCUV1c2OrsbiH/0fE9nknUORn97txqhlYVi0QMS7764wFo6kg0vpmFQRkkQySsJl+TmgcZ01AlsJc2EMMWVuaj9Af9JU4/4yalqDiXIh1fOYYUZnLfOfWS+MsnI+/oLfqJFyMbrsQQTIjs+kTzbiEdhd2R4EZgusU/xRFWokS2NAvahexrRhRQ6tpAI+LezPrkNOR3aHiykBf+P9BkUa0wPp6V2Ayc6q0= |
0 commit comments