Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Collection of Practice
2019
1606885025-practice
Commits
3b7d6a41
Commit
3b7d6a41
authored
Nov 29, 2019
by
Rani Lasma Uli
Browse files
fix functinal_test pipeline
parent
dd00f552
Pipeline
#26350
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
3b7d6a41
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment