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: stages:
DEBIAN_FRONTEND: 'noninteractive' - containers
CHROME_BIN: '/usr/bin/chromium' - test
before_script: containers:patchwork-testing:
- apt-get -qq update stage: containers
- apt-get -qq install python-virtualenv python3-virtualenv python-pip python3-pip image: docker:stable
- apt-get -qq install chromium chromium-driver only:
changes:
- curl -sL https://deb.nodesource.com/setup_8.x | bash - - Dockerfile.testing
- apt-get -qq install nodejs - .gitlab-ci.yml
- npm install -g jshint jasmine-core karma karma-jasmine karma-chrome-launcher 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: test:
script: 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