Fakultas Ilmu Komputer UI

Commit cdc37a32 authored by Zamil Majdy's avatar Zamil Majdy
Browse files

#140382397 #5 Add CI

parent e1d9fcdd
test:
script:
- export DATABASE_URL=postgres://kape:kape@104.236.76.161:5432/kape
- pip install -r requirements.txt
- python manage.py test
staging:
type: deploy
script:
- apt-get update -qy
- apt-get install -y ruby-dev
- gem install dpl
- dpl --provider=heroku --app=gitlab-ci-python-test-staging --api-key=$HEROKU_STAGING_API_KEY
only:
- develop
production:
type: deploy
script:
- apt-get update -qy
- apt-get install -y ruby-dev
- gem install dpl
- dpl --provider=heroku --app=gitlab-ci-python-test-prod --api-key=$HEROKU_PRODUCTION_API_KEY
only:
- master
\ No newline at end of file
......@@ -3,5 +3,4 @@ service ssh start
cd /home/kape
npm install
pip install -r requirements.txt
npm run build-production
python manage.py runserver
\ No newline at end of file
npm run build-production
\ 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