Fakultas Ilmu Komputer UI

Commit 3b7d6a41 authored by Rani Lasma Uli's avatar Rani Lasma Uli
Browse files

fix functinal_test pipeline

parent dd00f552
Pipeline #26350 failed
......@@ -31,27 +31,19 @@ Deployment:
url: $HEROKU_APP_HOST
FunctionalTest:
image: python:3.7
stage: functionalTest
FunctionalTest:
image: joyzoursky/python-chromedriver
stage: test
before_script:
- wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh
- export HEROKU_API_KEY=$HEROKU_APIKEY
- heroku pg:reset DATABASE --app $HEROKU_NAME --confirm $HEROKU_NAME || true
- heroku restart --app $HEROKU_NAME || true
- heroku run --app $HEROKU_NAME migrate || true
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
- echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
- apt-get update -qq && apt-get install -y -qq unzip
- apt-get install -y google-chrome-stable
- apt-get install -y xvfb
- pip install -r requirements.txt
- python3 manage.py migrate
- python3 manage.py compilescss
- python3 manage.py collectstatic --no-input
- wget https://chromedriver.storage.googleapis.com/77.0.3865.40/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- pip install -r requirements.txt
when: on_success
allow_failure: true
script:
- python3 manage.py test functional_tests
after_script:
- heroku pg:reset DATABASE --app $HEROKU_NAME --confirm $HEROKU_NAME || true
- heroku run --app $HEROKU_NAME migrate || true
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