This will build a Docker image with all dependencies installed, then run the simulator tests within it, using the current bundle as a volume. Signed-off-by: Gergely Nagy <algernon@keyboard.io>pull/851/head
parent
e2d8b5a614
commit
3bdb987dcf
@ -0,0 +1,20 @@
|
||||
FROM debian:stable-slim
|
||||
LABEL maintainer="Gergely Nagy"
|
||||
|
||||
RUN apt-get -qq update
|
||||
RUN apt-get -qq install -y xz-utils curl git-core make build-essential libxtst-dev
|
||||
|
||||
ENV ARDUINO_VERSION "1.8.13"
|
||||
|
||||
WORKDIR /usr/local
|
||||
RUN curl https://downloads.arduino.cc/arduino-${ARDUINO_VERSION}-linux64.tar.xz | \
|
||||
xzcat | tar xf - && \
|
||||
ln -s arduino-${ARDUINO_VERSION} arduino
|
||||
RUN curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | \
|
||||
sh
|
||||
RUN /usr/local/bin/arduino-cli core install arduino:avr
|
||||
|
||||
VOLUME ["/kaleidoscope/hardware/keyboardio"]
|
||||
ENV BOARD_HARDWARE_PATH "/kaleidoscope/hardware"
|
||||
WORKDIR /kaleidoscope/hardware/keyboardio/avr/libraries/Kaleidoscope
|
||||
ENTRYPOINT ["make", "run-simulator-tests"]
|
Loading…
Reference in new issue