Fakultas Ilmu Komputer UI
Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Collection of Practice
2019
1606837915-practice
Commits
17a78714
Commit
17a78714
authored
Dec 23, 2019
by
Izzatul Muttaqin
Browse files
Buat git ci script untuk test
parent
7952a76e
Pipeline
#28140
failed
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
17a78714
stages
:
-
test
-
deploy
#
- functional_test
-
functional_test
UnitTest
:
image
:
python:3.6
...
...
@@ -18,6 +18,24 @@ UnitTest:
-
coverage run manage.py test practice
-
coverage report -m
TestFunctional
:
image
:
python:3.6
stage
:
test_functional
before_script
:
-
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
-
pip3 install -r requirements.txt
-
apt-get update -qq && apt-get install -y -qq unzip
-
apt-get install -y google-chrome-stable
-
apt-get install -y xvfb
-
wget https://chromedriver.storage.googleapis.com/2.41/chromedriver_linux64.zip
-
unzip chromedriver_linux64.zip
when
:
on_success
script
:
-
python3 manage.py makemigrations
-
python3 manage.py migrate
-
python3 manage.py test functional_test
Deployment
:
image
:
ruby:2.4
stage
:
deploy
...
...
@@ -33,24 +51,4 @@ Deployment:
name
:
production
url
:
$HEROKU_APP_HOST
only
:
-
master
# FunctionalTest:
# image: python:3.6
# stage: functional_test
# before_script:
# - 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
# - pip3 install -r requirements.txt
# - pip3 install requests
# - pip3 install django-environ
# - apt-get update -qq && apt-get install -y -qq unzip
# - apt-get install -y google-chrome-stable
# - apt-get install -y xvfb
# - wget https://chromedriver.storage.googleapis.com/2.41/chromedriver_linux64.zip
# - unzip chromedriver_linux64.zip
# when: on_success
# script:
# - python3 functional_tests.py
# only:
# - master
-
master
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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