Skip to content

Instantly share code, notes, and snippets.

@RoySegall
Created February 24, 2020 17:42
Show Gist options
  • Save RoySegall/b551f104660c375ec5669a9b62f789ed to your computer and use it in GitHub Desktop.
Save RoySegall/b551f104660c375ec5669a9b62f789ed to your computer and use it in GitHub Desktop.
language: python
python: "3.7"
env:
- SCRIPT=travis/python-linter.sh
INSTALL=travis/python-setup.sh
- SCRIPT=travis/python-unitest.sh
INSTALL=travis/python-setup.sh
- SCRIPT=travis/react-unittest.sh
INSTALL=travis/react-setup.sh
- SCRIPT=travis/react-linter.sh
INSTALL=travis/react-setup.sh
services:
- mysql
before_script:
- bash $INSTALL
script:
- bash $SCRIPT
#!/usr/bin/env bash
pycodestyle . --exclude=settings.py,migrations
#!/usr/bin/env bash
pip install -r requirements.txt
mysql -e 'CREATE DATABASE bifrost;'
cp project/local_settings.travis.py project/local_settings.py
pip install pycodestyle
#!/usr/bin/env bash
python manage.py migrate
python manage.py test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment