1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

30 lines
876 B
YAML
Raw Normal View History

2019-06-16 13:04:47 -07:00
language: python
python:
2019-06-17 00:02:35 -07:00
- '3.6'
2019-06-16 13:04:47 -07:00
before_install:
2019-06-17 00:02:35 -07: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-17 00:02:35 -07:00
- pip3 install -r requirements.txt
2019-06-17 00:52:35 -07:00
before_script:
2019-06-17 01:14:29 -07:00
- pip3 install -r ./tests/requirements_dev.txt
2019-06-17 01:02:39 -07:00
- pip3 install anybadge
2019-06-17 01:52:39 -07:00
- git config --global user.email "travis@travis-ci.org"
- git config --global user.name "Travis CI"
- git checkout master
- black hyperglass
- git add hyperglass/ *.py
2019-06-17 01:59:38 -07:00
- git commit --message "Black Formatting - travis $TRAVIS_BUILD_NUMBER"
2019-06-17 01:52:39 -07:00
- python3 ./manage.py pylint-badge --integer-only True
- git add pylint.svg
2019-06-17 01:59:38 -07:00
- git commit --message "Pylint Badge - travis $TRAVIS_BUILD_NUMBER"
2019-06-17 00:02:35 -07:00
- python3 ./tests/ci_prepare.py
2019-06-16 17:13:02 -07:00
script:
2019-06-17 00:02:35 -07: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-17 01:14:29 -07:00
- git push origin master