2019-06-18 10:59:52 -04:00
|
|
|
---
|
|
|
|
|
2019-06-16 13:04:47 -07:00
|
|
|
language: python
|
|
|
|
python:
|
2019-06-18 10:59:52 -04:00
|
|
|
- '3.6'
|
2019-06-16 13:04:47 -07:00
|
|
|
before_install:
|
2019-06-18 10:59:52 -04:00
|
|
|
- sudo add-apt-repository universe -y
|
|
|
|
- sudo apt-get update -q
|
|
|
|
- sudo apt-get install -y redis-server redis-tools
|
|
|
|
- sudo systemctl start redis-server
|
2019-06-16 13:04:47 -07:00
|
|
|
install:
|
2019-06-18 10:59:52 -04:00
|
|
|
- pip3 install -r requirements.txt
|
2019-06-17 00:52:35 -07:00
|
|
|
before_script:
|
2019-06-18 10:59:52 -04:00
|
|
|
- pip3 install -r ./tests/requirements_dev.txt
|
|
|
|
- pip3 install anybadge
|
2019-06-18 14:54:01 -07:00
|
|
|
- ./tests/ci_git_prep.sh
|
2019-06-18 10:59:52 -04:00
|
|
|
- black hyperglass
|
|
|
|
- python3 ./manage.py pylint-badge --integer-only True
|
2019-06-18 15:08:16 -07:00
|
|
|
- ./tests/ci_git_commit.sh
|
2019-06-18 10:59:52 -04:00
|
|
|
- python3 ./tests/ci_prepare.py
|
2019-06-16 17:13:02 -07:00
|
|
|
script:
|
2019-06-18 10:59:52 -04:00
|
|
|
- nohup python3 ./tests/ci_dev_server.py &
|
|
|
|
- sleep 20
|
|
|
|
- python3 ./tests/ci_test.py
|
2019-06-17 00:18:44 -07:00
|
|
|
after_success:
|
2019-06-18 15:47:53 -07:00
|
|
|
- git push origin $CURRENT_BRANCH
|