Commit 452e67d9 authored by Zack Wong's avatar Zack Wong
Browse files

implement test env deployment

parent f43f8393
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:
......@@ -44,14 +33,13 @@ deploy_test:
stage: deploy
script:
- echo "Deploy to test"
- virtualenv venv
- . venv/bin/activate
- pip install -r pip-packages.txt
- python3 src/manage.py makemigrations
- python3 src/manage.py migrate --run-syncdb
- ln -s /etc/uwsgi/vassals/test.skel /etc/uwsgi/vassals/$CI_COMMIT_REF_NAME.ini
environment:
name: test-$CI_COMMIT_REF_NAME
url: https://portal.ucc.asn.au/test/$CI_COMMIT_REF_NAME
name: test/$CI_COMMIT_REF_NAME
url: https://$CI_COMMIT_REF_NAME.test.ucc.asn.au
except:
- master
\ No newline at end of file
Supports Markdown
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