summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-06-02 10:33:45 +0300
committerLars Wirzenius <liw@liw.fi>2021-06-04 08:53:23 +0300
commit2c0cb550cd6fa2c0bacec83a765aa286fd4ee87a (patch)
tree869439bcbd2f46283dbe1a6a5bf689ba5226cc99 /.gitlab-ci.yml
parent96c269190104ce3be4ecb071352d129ace9ea93a (diff)
downloadjt2-2c0cb550cd6fa2c0bacec83a765aa286fd4ee87a.tar.gz
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
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml12
1 files changed, 12 insertions, 0 deletions
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