holiday-cn/.travis.yml
2019-09-20 10:05:12 +08:00

26 lines
788 B
YAML

language: python
python:
- '3.6'
before_install:
- eval "$(gimme stable)"
install:
- go get github.com/github/hub && hub --version
- pip install -r requirements.txt -r dev-requirements.txt
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
cache:
- pip
before_script:
- git config credential.helper "store --file=.git/credentials"
- echo "https://${GITHUB_TOKEN}:@github.com" > .git/credentials
- git checkout master
- ./cc-test-reporter before-build
script:
- coverage run -m pytest && coverage run -a ./update.py --release
after_script:
- coverage xml && coverage report
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
branches:
only:
- master