diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index cb6214f2d14ef391528fb07a9ba0fe65e7b2d23a..0000000000000000000000000000000000000000 --- 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 - -