File tree Expand file tree Collapse file tree 2 files changed +41
-20
lines changed
Expand file tree Collapse file tree 2 files changed +41
-20
lines changed Original file line number Diff line number Diff line change 1- dist : trusty
2- language : python
3- python :
4- - ' 3.4'
5- - ' 3.5'
6- - ' 3.6'
1+ dist : xenial
2+ sudo : required
3+ cache :
4+ pip : true
5+ stages :
6+ - test
7+ - name : deploy
8+ if : repo = faucetsdn/chewie AND tag IS present
79env :
810 global :
911 - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
1012 - CC_TEST_REPORTER_ID=4469e75e5dc65ad713a0f9658ffbce390a68c44c0e412d921d257e0cd691e2da
11- cache :
12- pip : true
1313install :
14- - pip3 install -q -r requirements.txt -r test-requirements.txt
15- - python3 setup.py -q sdist
16- - pip3 install -q dist/*tar.gz
17- - pip3 show chewie
14+ - pip3 install -r test-requirements.txt
1815before_script :
1916 - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > /tmp/cc-test-reporter
2017 - chmod +x /tmp/cc-test-reporter
@@ -23,11 +20,33 @@ script:
2320 - ./run_tests.sh
2421after_script :
2522 - /tmp/cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
26- deploy :
27- provider : pypi
28- user : faucet
29- password :
30- secure : GJd7A0WGoWmabqcmu+6vAnn9fzG6v6/ux3LFJQPNXM+b2WROP6QuKAIBnA9jBZRAun2rwziR3E0Y6TZZiL24CHLJepLe1CrgtEIxNgNMdcTwPG2j84hyOlVCmRUXRZpkEM/oEt+3GuuQyxMRjRN6juDy1vmflb2MY5IukcYxazm+s4LEDDcBwXU9NLBZhhOrYthBhy1jEAll3wTb83mZngb4a83qvj+uDu+RL9vUBkyzq8YbrJVWzdnn7byJ6WBhps49pxF1rZj5BmH2my50Ql+ZkMHlOcrpUOI0Qe5GrNN/BVNbYNLWf4KqE6klESC0K3eRPbc9g0tsAH6ej1uIYpjisFGc78uBifF+m2oMqBBeM0zKujebZxY6F7uuaWkYtSGhOAoWsY/ppy3UpxkN9wFJoyjkAtU3BGifrPPA9Nrn7MDtf3dUJzU7CMBjfgY2pFpfBwGu9WJ2+gHuaLcjMFH2MiiVJTWScnQ1xQ7GDPsWKvhZj3qrLK+3IrzCTPrjFAkOlgcN8qGcGBXbdg61jD3iF5paOy/TJDRlhw8DmuUkLhl+sbmWYrpnktEZZwf9XkFmYHQZTXbMnfPJd4Ve/6JPHWk3cSsV8sNtdjRrZFPbEI1lohGc1PR7JDELbmXc/Wg/VwEjPQVP91NjYPayCP+PFD0MFV68W/vjbNbqT4c=
31- on :
32- repo : faucetsdn/chewie
33- tags : true
23+ matrix :
24+ include :
25+ jobs :
26+ include :
27+ - stage : test
28+ language : python
29+ python : 3.5
30+ env :
31+ - PYTYPE=false
32+ - stage : test
33+ language : python
34+ python : 3.6
35+ env :
36+ - PYTYPE=true
37+ - stage : test
38+ language : python
39+ python : 3.7
40+ env :
41+ - PYTYPE=false
42+ - stage : deploy
43+ language : python
44+ python : 3.6
45+ script : skip
46+ deploy :
47+ provider : pypi
48+ on :
49+ tags : true
50+ user : faucet
51+ password :
52+ secure : GJd7A0WGoWmabqcmu+6vAnn9fzG6v6/ux3LFJQPNXM+b2WROP6QuKAIBnA9jBZRAun2rwziR3E0Y6TZZiL24CHLJepLe1CrgtEIxNgNMdcTwPG2j84hyOlVCmRUXRZpkEM/oEt+3GuuQyxMRjRN6juDy1vmflb2MY5IukcYxazm+s4LEDDcBwXU9NLBZhhOrYthBhy1jEAll3wTb83mZngb4a83qvj+uDu+RL9vUBkyzq8YbrJVWzdnn7byJ6WBhps49pxF1rZj5BmH2my50Ql+ZkMHlOcrpUOI0Qe5GrNN/BVNbYNLWf4KqE6klESC0K3eRPbc9g0tsAH6ej1uIYpjisFGc78uBifF+m2oMqBBeM0zKujebZxY6F7uuaWkYtSGhOAoWsY/ppy3UpxkN9wFJoyjkAtU3BGifrPPA9Nrn7MDtf3dUJzU7CMBjfgY2pFpfBwGu9WJ2+gHuaLcjMFH2MiiVJTWScnQ1xQ7GDPsWKvhZj3qrLK+3IrzCTPrjFAkOlgcN8qGcGBXbdg61jD3iF5paOy/TJDRlhw8DmuUkLhl+sbmWYrpnktEZZwf9XkFmYHQZTXbMnfPJd4Ve/6JPHWk3cSsV8sNtdjRrZFPbEI1lohGc1PR7JDELbmXc/Wg/VwEjPQVP91NjYPayCP+PFD0MFV68W/vjbNbqT4c=
Original file line number Diff line number Diff line change @@ -11,8 +11,10 @@ echo "=============== Running UnitTests ================="
1111
1212PYTHONPATH=./ pytest -v --cov=chewie --cov-report term --cov-report=xml:coverage.xml test/test_* .py || exit 1
1313
14+ if [ " ${PYTYPE} " != " false" ] ; then
1415echo " =============== Running PyType ===================="
1516pytype -V$PYTYPE_TARGET_VERSION chewie/* py || exit 1
17+ fi
1618
1719cd test/codecheck
1820echo " =============== Running Pylint ===================="
You can’t perform that action at this time.
0 commit comments