Commit ac31cea7 authored by Romain Casati's avatar Romain Casati

Dedicateed Docker image for tests (casatir/basthon-kernel-test).

parent c71a1b47
Pipeline #385304 passed with stage
in 4 minutes and 11 seconds
__pycache__/
\ No newline at end of file
__pycache__/
geckodriver.log
image: debian:buster
image: casatir/basthon-kernel-test:latest
stages:
- test
......@@ -6,9 +6,6 @@ stages:
test:
stage: test
script:
- apt-get update && apt-get install -y make git llvm nodejs python3-pip chromium-driver firefox-esr wget tar
- wget -qO- https://github.com/mozilla/geckodriver/releases/download/v0.29.0/geckodriver-v0.29.0-linux64.tar.gz | tar zxC /usr/local/bin/
- pip3 install pytest selenium
- make test
artifacts:
when: always
......
FROM python:3.8.2-slim-buster
RUN echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list \
&& apt-get update && apt-get install -y --no-install-recommends \
make git patch llvm nodejs chromium-driver firefox-esr wget tar xz-utils bzip2 uglifyjs.terser \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 --no-cache-dir install \
pytest pytest-xdist pytest-instafail pytest-rerunfailures \
pytest-httpserver pytest-cov selenium
# Get geckodriver
RUN wget -qO- https://github.com/mozilla/geckodriver/releases/download/v0.29.0/geckodriver-v0.29.0-linux64.tar.gz | tar zxC /usr/local/bin/
CMD ["/bin/sh"]
WORKDIR /src
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