.gitlab-ci.yml 623 Bytes
Newer Older
Leszek Szymczak's avatar
Leszek Szymczak committed
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 32
image: 'clarinpl/python:3.6'
cache:
  paths:
    - .tox
stages:
  - check_style
  - build
before_script:
  - pip install tox==2.9.1
pep8:
  stage: check_style
  script:
    - tox -v -e pep8
docstyle:
  stage: check_style
  script:
    - tox -v -e docstyle
build_image:
  stage: build
  image: 'docker:18.09.7'
  only:
    - master
  services:
    - 'docker:18.09.7-dind'
  before_script:
    - ''
  script:
    - docker build -t clarinpl/plwordnet .
    - echo $DOCKER_PASSWORD > pass.txt
    - cat pass.txt | docker login --username $DOCKER_USERNAME --password-stdin
    - rm pass.txt
    - docker push clarinpl/plwordnet