Last active
February 5, 2018 19:41
-
-
Save michaelhelmick/bb5cd710959761992cdc6ea3a67d3533 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
travis-before-install-backend: | |
sudo rm -f /etc/boto.cfg | |
travis-install-backend: | |
pip install awscli | |
pip install -r ./requirements/test.txt | |
travis-before-script-backend: | |
mkdir -p ~/$(TRAVIS_BRANCH)/databases/ | |
aws s3 sync s3://org-travis-ci/$(TRAVIS_BRANCH) ~/$(TRAVIS_BRANCH) | |
mysql --user='root' --password='' -e 'CREATE DATABASE IF NOT EXISTS test_project;' | |
@case $$TRAVIS_COMMIT_MESSAGE in *"[reset mysql]"*) \ | |
echo 'Resetting MySQL database...'; \ | |
aws s3 rm s3://org-travis-ci/$(TRAVIS_BRANCH)/databases/db.sql; \ | |
;; *) \ | |
echo 'Loading previous MySQL database...'; \ | |
mysql --user='root' --password='' test_project < ~/$(TRAVIS_BRANCH)/databases/db.sql; \ | |
esac | |
travis-test-backend: | |
./manage.py test --keepdb --failfast -v 3 project | |
travis-noop: | |
@echo "Move along..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment