Fakultas Ilmu Komputer UI

Commit 0bf43c51 authored by Izzatul Muttaqin's avatar Izzatul Muttaqin
Browse files

Merge branch 'master' of...

Merge branch 'master' of https://gitlab.cs.ui.ac.id/pmpl/practice-collection/2019/1606837915-practice into take-home-exam
parents 6a45c2fe 58af4df2
......@@ -13,9 +13,9 @@ UnitTest:
- python3 manage.py makemigrations
- python3 manage.py migrate
- python3 manage.py test lists
tags:
- test
script:
- coverage run manage.py test lists
- coverage report -m
TestFunctional:
image: python:3.6
......@@ -35,7 +35,7 @@ TestFunctional:
- python3 manage.py migrate
- python3 manage.py test functional_test
Deployment:
deploy:
image: ruby:2.4
stage: deploy
before_script:
......@@ -44,8 +44,7 @@ Deployment:
script:
- dpl --provider=heroku --app=$HEROKU_APPNAME --api-key=$HEROKU_APIKEY
- export HEROKU_API_KEY=$HEROKU_APIKEY
- heroku ps:scale web=1 migrate=1 --app $HEROKU_APPNAME
- heroku ps:restart --app=$HEROKU_APPNAME
- heroku run --app $HEROKU_APPNAME migrate
environment:
name: production
url: $HEROKU_APP_HOST
......
#!/bin/bash
python manage.py makemigrations
python manage.py migrate
python manage.py migrate --run-syncdb
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