Skip to content
Snippets Groups Projects
Commit e303f19d authored by Zack Wong's avatar Zack Wong
Browse files

Added CI files

parent 80c3b72c
1 merge request!3Coffee testing
stages:
- prep
- test
- deploy
before_script:
stage: prep
script:
- echo "preparing environment"
- virtualenv env
- . env/bin/activate
- pip install -r pip-packages.txt
test:
stage: test
script:
- echo "Running tests"
- . env/bin/activate
- python3 src/manage.py check
deploy_staging:
stage: deploy
script:
- echo "Deploy to staging server"
environment:
name: stage
url: https://portal.ucc.asn.au/stage
only:
- master
deploy_prod:
stage: deploy
script:
- echo "Deploy to production server"
environment:
name: production
url: https://portal.ucc.asn.au
when: manual
only:
- master
deploy_test:
stage: deploy
script:
- echo "Deploy to test"
environment:
name: test-$CI_COMMIT_REF_NAME
url: https://portal.ucc.asn.au/test/$CI_COMMIT_REF_NAME
except:
- master
\ No newline at end of file
[uwsgi]
socket = wsgi.sock
chdir = ./src/
wsgi-file = src/wsgi.py
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment