Commit f9c9c08d authored by Arkadiusz Hiler's avatar Arkadiusz Hiler

test

parent ff91eb8a
Pipeline #1164 failed with stage
in 2 minutes and 6 seconds
......@@ -16,6 +16,7 @@ tags
TAGS
!.gitignore
!.travis.yml
!.gitlab-ci.yml
# configuration files
patchwork/settings/production.py
......
image: python:3.6
services:
- mariadb:latest
variables:
PW_TEST_DB_HOST: 'mariadb'
PW_TEST_DB_USER: 'root'
MYSQL_DATABASE: 'patchwork'
MYSQL_ROOT_PASSWORD: 'password'
DEBIAN_FRONTEND: 'noninteractive'
before_script:
- apt-get -qq update
- apt-get -qq install --no-install-recommends apt-utils
- apt-get -qq install libmariadbclient-dev xvfb
- apt-get -qq install python-virtualenv python3-virtualenv python-pip python3-pip
- apt-get -qq install chromium chromium-driver
- curl -sL https://deb.nodesource.com/setup_8.x | bash -
- apt-get -qq install nodejs
- npm install -g jshint jasmine-core karma karma-jasmine karma-firefox-launcher
test:
script:
- python3 -V
- python2 -V
- npm --version
- chromium-browser --version
- chromedriver --version
- 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'),
......
......@@ -12,8 +12,8 @@ setenv =
DJANGO_SETTINGS_MODULE = patchwork.settings.dev
passenv =
http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
PW_TEST_DB_TYPE PW_TEST_DB_USER PW_TEST_DB_PASS DISPLAY
PATCHWORK_SKIP_BROWSER_TESTS SELENIUM_BROWSER
PW_TEST_DB_HOST PW_TEST_DB_TYPE PW_TEST_DB_USER PW_TEST_DB_PASS
DISPLAY PATCHWORK_SKIP_BROWSER_TESTS SELENIUM_BROWSER
commands =
{toxinidir}/manage.py test --noinput '{posargs:patchwork}'
......
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