.gitlab-ci.yml 783 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
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'
  CHROME_BIN: '/usr/bin/chromium'

before_script:
  - apt-get -qq update
  - apt-get -qq install libmariadbclient-dev
  - 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-chrome-launcher

test:
  script:
   - python3 -V
   - python2 -V
   - npm --version
   - chromium --version
   - chromedriver --version
   - ./tests/test_all.sh