Commit 28259e3b authored by Arkadiusz Hiler's avatar Arkadiusz Hiler

test

parent ff91eb8a
Pipeline #1135 failed with stage
in 2 minutes and 21 seconds
......@@ -16,6 +16,7 @@ tags
TAGS
!.gitignore
!.travis.yml
!.gitlab-ci.yml
# configuration files
patchwork/settings/production.py
......
image: python:3.6
services:
- mysql:latest
variables:
SELENIUM_BROWSER: 'firefox'
PW_TEST_DB_HOST: 'mysql'
PW_TEST_DB_USER: 'root'
MYSQL_DATABASE: 'patchwork'
MYSQL_ROOT_PASSWORD: 'password'
before_script:
- apt-get --yes update -qq
- apt-get -qq --yes install firefox-esr libmariadbclient-dev xvfb
- apt-get -qq --yes install python-virtualenv python3-virtualenv python-pip python3-pip
- curl -sL https://deb.nodesource.com/setup_8.x | bash -
- apt-get install -y nodejs
- npm install -g jshint jasmine-core karma karma-jasmine karma-firefox-launcher
- curl -O https://github.com/mozilla/geckodriver/releases/download/v0.17.0/geckodriver-v0.17.0-linux64.tar.gz
- mkdir geckodriver
- tar -xzf geckodriver-v0.17.0-linux64.tar.gz -C geckodriver
- export PATH=$PATH:$PWD/geckodriver
test:
script:
- python3 -V
- python2 -V
- npm --version
- firefox --version
- geckodriver --version
- env
- export
- xvfb-run ./tests/test_all.sh
......@@ -28,7 +28,7 @@ DEBUG = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'HOST': 'localhost',
'HOST': os.getenv('PW_TEST_DB_HOST', 'localhost'),
'PORT': '',
'USER': os.getenv('PW_TEST_DB_USER', 'patchwork'),
'PASSWORD': os.getenv('PW_TEST_DB_PASS', 'password'),
......
Markdown is supported
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