Commit c9fcb1d2 authored by Arkadiusz Hiler's avatar Arkadiusz Hiler

gitlab-ci: Start using docker

To not waste time on reinstalling all the deps each time
Signed-off-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
parent 2e0c2ff6
Pipeline #14284 passed with stages
in 5 minutes and 9 seconds
image: python:3.6
image: $CI_REGISTRY/$CI_PROJECT_PATH/patchwork-testing:latest
variables:
DEBIAN_FRONTEND: 'noninteractive'
CHROME_BIN: '/usr/bin/chromium'
stages:
- containers
- test
before_script:
- apt-get -qq update
- 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
containers:patchwork-testing:
stage: containers
image: docker:stable
only:
changes:
- Dockerfile.testing
- .gitlab-ci.yml
services:
- docker:dind
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build -t $CI_REGISTRY/$CI_PROJECT_PATH/patchwork-testing -f Dockerfile.testing .
- docker push $CI_REGISTRY/$CI_PROJECT_PATH/patchwork-testing
test:
script:
......
FROM python:3.6
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -qq update
RUN apt-get -qq install python-virtualenv python3-virtualenv python-pip python3-pip
ENV CHROME_BIN /usr/bin/chromium
RUN apt-get -qq install chromium chromium-driver
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get -qq install nodejs
RUN npm install -g jshint jasmine-core karma karma-jasmine karma-chrome-launcher
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