From 893d036190f897d50f6b69413f2be5827e332e07 Mon Sep 17 00:00:00 2001 From: wulanmantiri Date: Tue, 23 Mar 2021 20:49:30 +0800 Subject: [PATCH] [CHORES] Remove unnecessary installations for unit test stage on .gitlab-ci.yml --- .gitlab-ci.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cf1f60b..d1a0ce7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,20 +7,9 @@ UnitTest: image: python:3.6.5 stage: 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 - pip install -r requirements.txt - python manage.py makemigrations - python manage.py migrate - - apt-get update -qq && apt-get install -y -qq unzip - - apt-get autoremove - - apt-get install -y google-chrome-stable - - apt-get install -y xvfb - - wget https://chromedriver.storage.googleapis.com/2.43/chromedriver_linux64.zip - - unzip chromedriver_linux64.zip - - mv chromedriver /usr/bin/chromedriver - - chown root:root /usr/bin/chromedriver - - chmod +x /usr/bin/chromedriver - python manage.py collectstatic --no-input - python manage.py runserver 8000 & when: on_success @@ -63,4 +52,3 @@ DeploymentStaging: url: $HEROKU_APP_HOST only: - staging - -- GitLab