diff options
| author | Eugen Wissner <belka@caraus.de> | 2019-07-04 06:17:11 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2019-07-04 06:32:04 +0200 |
| commit | 2fa50d4f6290a39e492043eaeed8ede8e26ce62d (patch) | |
| tree | c79e597c8269de0db1399710e3181d668b929ceb /semaphoreci.sh | |
| parent | 6238b2fbfa6008fdf9bc6c85409fbd13e9b5e4e9 (diff) | |
| download | graphql-2fa50d4f6290a39e492043eaeed8ede8e26ce62d.tar.gz | |
Update CI settings
Diffstat (limited to 'semaphoreci.sh')
| -rwxr-xr-x | semaphoreci.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/semaphoreci.sh b/semaphoreci.sh new file mode 100755 index 0000000..09f7aa7 --- /dev/null +++ b/semaphoreci.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +STACK=$SEMAPHORE_CACHE_DIR/stack + +setup() { + if [ ! -e "$STACK" ] + then + curl -L https://get.haskellstack.org/stable/linux-x86_64.tar.gz | tar xz --wildcards --strip-components=1 -C $SEMAPHORE_CACHE_DIR '*/stack' + fi + $STACK --no-terminal setup +} + +setup_test() { + $STACK --no-terminal test --only-snapshot +} + +test() { + $STACK --no-terminal test --pedantic +} + +setup_lint() { + $STACK --no-terminal install hlint +} + +lint() { + $STACK --no-terminal exec hlint -- src tests +} + +$1 |
