cycles/.gitlab-ci.yml

21 lines
497 B
YAML
Raw Normal View History

2022-04-15 02:47:27 +00:00
stages:
- build
- deploy
buiild job:
stage: build
2022-04-15 03:19:31 +00:00
image: debian:jessie
2022-04-15 02:47:27 +00:00
script:
- export PYTHONPATH=.
- export FLASK_APP=period
2022-04-15 03:10:52 +00:00
- apt-get update -qy
2022-04-15 02:47:27 +00:00
- apt-get install -y python3-dev python3-pip
2022-04-15 03:21:52 +00:00
- pip install Flask gunicorn pytest pytest-cov
2022-04-15 02:47:27 +00:00
- pytest tests --cov --cov-report term --cov-report html
deploy job:
stage: deploy
script:
2022-04-15 02:54:49 +00:00
- sudo apt-get update -qy
- sudo apt-get install curl -y
2022-04-15 02:47:27 +00:00
- curl period.ahosking.com/reload?password=BananaHammocks