From 6c009d5c9835cc879e3b74a8ad09faa4151ec9d6 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 5 May 2020 22:47:54 -0500 Subject: [PATCH] Setup for sr.ht CI --- .builds/debian-stable.yml | 26 ++++++++++++++++++++++++++ Makefile | 4 ++-- 2 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .builds/debian-stable.yml diff --git a/.builds/debian-stable.yml b/.builds/debian-stable.yml new file mode 100644 index 0000000..b640f80 --- /dev/null +++ b/.builds/debian-stable.yml @@ -0,0 +1,26 @@ +image: debian/stable +sources: +- https://git.sr.ht/~singpolyma/cheogram +packages: +- ghc +- cabal-install +- c2hs +- pkg-config +- libgnutls28-dev +- libgsasl7-dev +- libtokyocabinet-dev +- libxml2-dev +- hlint +environment: + LANG: C.UTF-8 +artifacts: +- cheogram/dist/build/cheogram +tasks: +- cabal_update: | + cabal update +- dependencies: | + cd cheogram + cabal install --enable-tests --only-dependencies +- test: | + cd cheogram + make diff --git a/Makefile b/Makefile index ba60764..848f113 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ GHCFLAGS=-Wall -Wno-tabs -fno-warn-name-shadowing -XHaskell2010 -O2 -HLINTFLAGS=-XHaskell2010 -XCPP -i 'Use camelCase' -i 'Use String' -i 'Use head' -i 'Use string literal' -i 'Use list comprehension' --utf8 -VERSION=0.6 +HLINTFLAGS=-XHaskell2010 -XCPP -i 'Use camelCase' -i 'Use String' -i 'Use head' -i 'Use string literal' -i 'Use list comprehension' +VERSION=0.0.1 .PHONY: all shell clean doc install -- 2.34.2