From 2c0cb550cd6fa2c0bacec83a765aa286fd4ee87a Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 2 Jun 2021 10:33:45 +0300 Subject: build: add rudimentary .gitlab-ci.yml file to test GitLab CI This uses the Rust Docker image from Docker Hub, and installs Subplot and other tools into that, before it runs jt's ./check script. Installing all the tools takes a fair bit of time, as does building jt every time. These could and should be improved later. Sponsored-by: author --- .gitlab-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .gitlab-ci.yml (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..93a8ac9 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,12 @@ +default: + image: rust:latest + +build-job: + stage: build + script: + - curl -s https://gitlab.com/subplot/subplot/-/raw/main/install-debian.sh | bash + - apt-get update + - apt-get install -y black subplot texlive-latex-base texlive-latex-recommended texlive-fonts-recommended plantuml + - rustup component add clippy + - rustup component add rustfmt + - if ! ./check; then echo =====================; tail -n 500 test.log; exit 1; fi -- cgit v1.2.1