Fakultas Ilmu Komputer UI

Commit 69fe204e authored by Yumna Pratista Tastaftian's avatar Yumna Pratista Tastaftian
Browse files

test flow edited

parent fc91bd09
Pipeline #28335 failed with stages
in 1 minute and 32 seconds
...@@ -4,24 +4,23 @@ stages: ...@@ -4,24 +4,23 @@ stages:
- postdeploy - postdeploy
before_script: 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
- apt-get update -qq && apt-get install -y -qq unzip
- apt-get install -y google-chrome-stable
- export CHROME_BIN=/usr/bin/google-chrome
- apt-get install -y xvfb
- wget https://chromedriver.storage.googleapis.com/79.0.3945.36/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- pip install -r requirements.txt - pip install -r requirements.txt
- python manage.py makemigrations - python manage.py makemigrations
- python manage.py migrate - python manage.py migrate
AllUnitTest: HomepageTest:
image: python:3.6
stage: test
script:
- coverage run --source='app_homepage' manage.py test app_homepage
- coverate report -m
AccountsTest:
image: python:3.6 image: python:3.6
stage: test stage: test
script: script:
- coverage run --source='.' manage.py test - coverage run --source='accounts' manage.py test accounts
- coverage report -m - coverate report -m
Deployment: Deployment:
image: ruby:2.4 image: ruby:2.4
...@@ -58,4 +57,6 @@ FunctionalTest: ...@@ -58,4 +57,6 @@ FunctionalTest:
- python manage.py runserver 8000 & - python manage.py runserver 8000 &
when: on_success when: on_success
script: script:
- python3 manage.py test functional_tests - python3 manage.py test functional_tests
\ No newline at end of file - coverage run --source='.' manage.py test
- coverage report -m
\ 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