Fakultas Ilmu Komputer UI

.gitlab-ci.yml 669 Bytes
Newer Older
Zamil Majdy's avatar
Zamil Majdy committed
1
2
3
test:
  script:
  - export DATABASE_URL=postgres://kape:kape@104.236.76.161:5432/kape
Zamil Majdy's avatar
Zamil Majdy committed
4
5
  - apt-get update -qy
  - apt-get install -y python-dev python-pip
Zamil Majdy's avatar
Zamil Majdy committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  - 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