From b028072e0d9b3789a0257c7e1f9245f1970a29ac Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Tue, 26 May 2020 20:32:54 -0400 Subject: [PATCH] ci: Add builds.sr.ht CI/CD specification Exciting times! Since the creation of a separate preprod.euchre.live, it is now 100% safe to deploy automatically to preprod (without fear of breaking people currently playing, etc). This commit sets the groundwork (everything up to a deploy), with a build and test pipeline. --- .build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .build.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..ba81bcb --- /dev/null +++ b/.build.yml @@ -0,0 +1,22 @@ +# .build.yml -- builds.sr.ht CI/CD +image: debian/stable +packages: + - nodejs + - npm + - rsync + - cpanminus +sources: + - https://git.sr.ht/~akarle/euchre-live +environment: + PERL5LIB: /home/build/perl5/lib/perl5 +tasks: + - setup: | + cd euchre-live + npm install + cpanm --installdeps . + - build: | + cd euchre-live + make build + - test: | + cd euchre-live + make test -- libgit2 1.1.1