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
|
|
|
|
- pip3 install -r ./tests/requirements_dev.txt
|
2019-06-16 13:04:47 -07:00
|
|
|
install:
|
2019-06-17 00:02:35 -07:00
|
|
|
- pip3 install -r requirements.txt
|
2019-06-16 20:44:03 -07:00
|
|
|
after_install:
|
2019-06-17 00:02:35 -07:00
|
|
|
- bash ./tests/check_code.sh
|
2019-06-16 20:44:03 -07:00
|
|
|
before_script:
|
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 00:34:55 -07:00
|
|
|
- git remote add origin git@github.com/checktheroads/hyperglass.git > /dev/null 2>&1
|
2019-06-17 00:02:35 -07:00
|
|
|
- git push --quiet --set-upstream origin master
|