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:
- postdeploy
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
- python manage.py makemigrations
- python manage.py migrate
AllUnitTest:
HomepageTest:
image: python:3.6
stage: test
script:
- coverage run --source='.' manage.py test
- coverage report -m
- coverage run --source='app_homepage' manage.py test app_homepage
- coverate report -m
AccountsTest:
image: python:3.6
stage: test
script:
- coverage run --source='accounts' manage.py test accounts
- coverate report -m
Deployment:
image: ruby:2.4
......@@ -59,3 +58,5 @@ FunctionalTest:
when: on_success
script:
- python3 manage.py test functional_tests
- 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