commit b028072e0d9b3789a0257c7e1f9245f1970a29ac (patch)
parent ba7a89ef6794f4dc9415f31d87f8da6d00a7590d
Author: Alex Karle <alex@karle.co>
Date: Tue, 26 May 2020 20:32:54 -0400
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.
Diffstat:
1 file changed, 22 insertions(+), 0 deletions(-)
diff --git a/.build.yml 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