From 270ada2d18f230dea9925887a7c344ca6b30b5dc Mon Sep 17 00:00:00 2001 From: Dwi Nanda Susanto <dwi.nanda@ui.ac.id> Date: Thu, 14 Nov 2019 11:14:01 +0700 Subject: [PATCH] remove yml --- .gitlab-ci.yml | 57 -------------------------------------------------- 1 file changed, 57 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index cb6214f..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,57 +0,0 @@ -stages: - - unitTest - - deploy - - functionalTest - -Test: - image: python:3.6.5 - stage: unitTest - before_script: - - pip3 install --upgrade pip - - pip3 install -r requirements.txt - - python3 manage.py collectstatic --no-input - script: - - python3 manage.py test lists - tags: - - test - -Deploy: - image: ruby:2.4 - stage: deploy - before_script: - - gem install dpl - - wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh - script: - - dpl --provider=heroku --app=$HEROKU_APPNAME --api-key=$HEROKU_APIKEY - - export HEROKU_API_KEY=$HEROKU_APIKEY - - heroku run --app $HEROKU_APPNAME python manage.py migrate - environment: - name: production - url: $HEROKU_APP_HOST - only: - - master - -FunctionalTest: - image: python:3.6.5 - stage: functionalTest - dependencies: - - Deploy - 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 - - python3 manage.py collectstatic --noinput - - when: on_success - script: - - echo $HEROKU_APP_HOST - - python3 manage.py test functional_tests - only: - - master - - -- GitLab