diff --git a/Dockerfile.code b/Dockerfile.code index 82ca68e..92a8063 100644 --- a/Dockerfile.code +++ b/Dockerfile.code @@ -3,13 +3,16 @@ MAINTAINER Peter Bui ENV DEBIAN_FRONTEND noninteractive +# Repository configuration for Zig +RUN echo 'deb https://dl.bintray.com/dryzig/zig-ubuntu bionic main' | sudo tee -a /etc/apt/sources.list + RUN apt update -y # Run-time dependencies RUN apt install -y python3-tornado python3-requests python3-yaml curl -# Language Support: C, C++, Python3, Bash, Ruby, Nodejs, Java, golang, Guile, Perl6, Haskell -RUN apt install -y gcc g++ python3 bash ruby nodejs default-jdk-headless golang guile-2.0 perl6 ghc +# Language Support: C, C++, Python3, Bash, Ruby, Nodejs, Java, golang, Guile, Perl6, Haskell, Zig +RUN apt install -y gcc g++ python3 bash ruby nodejs default-jdk-headless golang guile-2.0 perl6 ghc zig # Language Support: rust RUN curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain stable -y && mv /root/.cargo/bin/* /usr/local/bin/ diff --git a/scripts/run.py b/scripts/run.py index 19f92a0..21eb12b 100755 --- a/scripts/run.py +++ b/scripts/run.py @@ -107,6 +107,11 @@ def usage(exit_code=0): './{executable}', ('.rs',) ), + Language('Zig', + '', + 'zig run {source}', + ('.zig',) + ), ) def get_language_from_source(source, language_name=None): diff --git a/tests/test_code_echo.sh b/tests/test_code_echo.sh index 7388b57..51240d3 100755 --- a/tests/test_code_echo.sh +++ b/tests/test_code_echo.sh @@ -193,6 +193,40 @@ echo -n "Testing Haskell ... " curl -F source=@$SOURCE localhost:9206/code/test-echo rm -f $SOURCE +# Zig +SOURCE=$(mktemp -t dredd_XXXXXXX.zig) +cat > $SOURCE <