@@ -2,10 +2,9 @@ language: python
22sudo : false
33cache : pip
44python :
5- - ' 2.7'
6- - ' 3.4'
7- - ' 3.5'
8- - ' 3.6'
5+ - ' 2.7'
6+ - ' 3.5'
7+ - ' 3.6'
98# Enable 3.7 without globally enabling sudo and dist: xenial for other build jobs
109matrix :
1110 include :
@@ -14,47 +13,28 @@ matrix:
1413 sudo : true
1514env :
1615 global :
17- - CC_TEST_REPORTER_ID=$TRAVIS_CODE_CLIMATE_TOKEN
16+ - CC_TEST_REPORTER_ID=$TRAVIS_CODE_CLIMATE_TOKEN SENDGRID_API_KEY=SGAPIKEY
1817install :
19- - python setup.py install
20- - pip install pyyaml
21- - pip install flask
22- - pip install six
23- - pip install coverage
24- - pip install codecov
25- # - sudo apt-get install -y pandoc
26- addons :
27- apt_packages :
28- - pandoc
18+ - python setup.py install
19+ - pip install pyyaml flask six coverage codecov
2920before_script :
30- - " ./test/prism.sh &"
31- - sleep 20
32- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
33- - chmod +x ./cc-test-reporter
34- - ./cc-test-reporter before-build
21+ - " ./test/prism.sh &"
22+ - sleep 20
23+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
24+ - chmod +x ./cc-test-reporter
25+ - ./cc-test-reporter before-build
3526script :
36- - coverage run -m unittest discover
27+ - coverage run -m unittest discover
3728after_script :
38- - codecov
39- - ./cc-test-reporter after-build --exit-code $?
40- # deploy:
41- # provider: pypi
42- # user: thinkingserious
43- # password:
44- # secure: DoM21KiMKkt/7AS6zOqTs7j3fgInrpswRTPG3cqBNRSzyfkXeXmKecCPruooxvYKLM7fPNDOuIH2phgCjdx/XBtJwghNh34n+TzhNFEiI/6pV0iS4a9gW0+QU+GMYvQmfNlA9DKQ5N20FMy4XeK8QQFarJXQwW1/a5wWftbUYvQ=
45- # skip_cleanup: true
46- # distributions: sdist bdist_wheel
47- # on:
48- # tags: true
49- # python: '3.6'
50- notifications :
51- hipchat :
52- rooms :
53- secure : Lo3L/YNWpn9ulGX4D2HlWrBOyxMPlLkFcwxbYViG69Ta6BV+c6YE+Pct43tExlL6sZ+nj5p8X4KRTeOM4sqASrebWA25nyUrNTm+vZYFbi5XfmGvvi8TEsgg0MYRQRWWn/R2z0kZW/fqOY6sqJuoIafMBmC3tayTJRiH1Ct2Cw0=
54- template :
55- - ' <a href="https://travis-ci.org/%{repository}/builds/%{build_id}">%{repository}
56- Build %{build_number}</a> on branch <i>%{branch}</i> by %{author}: <strong>%{message}</strong>
57- <a href="https://github.com/%{repository}/commits/%{commit}">View on
58- GitHub</a>'
59- format : html
60- notify : false
29+ - codecov
30+ - ./cc-test-reporter after-build --exit-code $?
31+ deploy :
32+ provider : pypi
33+ user : __token__
34+ password :
35+ secure : $PYPI_TOKEN
36+ skip_cleanup : true
37+ distributions : sdist bdist_wheel
38+ on :
39+ tags : true
40+ python : ' 3.6'
0 commit comments