Skip to content

Instantly share code, notes, and snippets.

@lucemia
Created March 26, 2015 07:08
Show Gist options
  • Select an option

  • Save lucemia/ebd6ede304fa2bad37a6 to your computer and use it in GitHub Desktop.

Select an option

Save lucemia/ebd6ede304fa2bad37a6 to your computer and use it in GitHub Desktop.
notifications:
slack: ''
language: python
python:
- '2.7'
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq libxml2-dev libxslt1-dev
- bash scripts/drone/dl_gae_sdk.sh
install:
- pip install -r scripts/drone/requirements_test.txt
after_install:
- pip install -r ./SlackReport/requirements.txt
script:
- python ./test.py --logging-level=INFO --with-coverage --exclude={scripts,lib}
- coverage html
- cp -r htmlcov cov/htmlcov-$(basename $TRAVIS_REPO_SLUG)-${TRAVIS_BRANCH}-$(date +%Y%m%d%H%M%S)
- git add cov
- git commit -m 'added built files'
after_success:
- gae_token={GAE_TOKEN}
- version=$(date +"%Y-%m-%d-%H%M%S-$TRAVIS_COMMIT")
- test "$TRAVIS_BRANCH" = "master" && test "$TRAVIS_PULL_REQUEST" = "false" && ./google_appengine/appcfg.py update --oauth2_refresh_token=$gae_token . -V $version
- test "$TRAVIS_BRANCH" = "master" && test "$TRAVIS_PULL_REQUEST" = "false" && ./google_appengine/appcfg.py update --oauth2_refresh_token=$gae_token . -V 1
- python ./scripts/deploy.py
branches:
only:
- master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment