Remove semaphoreci.sh

This commit is contained in:
Eugen Wissner 2020-06-26 11:40:09 +02:00
parent 175268b422
commit 9798b08b4c
2 changed files with 6 additions and 46 deletions

View File

@ -15,7 +15,7 @@ jobs:
with: with:
enable-stack: true enable-stack: true
stack-no-global: true stack-no-global: true
stack-version: 'latest' stack-version: latest
- name: Cache - name: Cache
uses: actions/cache@v2 uses: actions/cache@v2
@ -24,8 +24,8 @@ jobs:
~/.stack ~/.stack
graphql.cabal graphql.cabal
stack.yaml.lock stack.yaml.lock
key: ${{ runner.os }}-build-${{ hashFiles('**/stack.yaml') }} key: ${{ runner.os }}-test-${{ hashFiles('**/stack.yaml') }}
restore-keys: '${{ runner.os }}-build-' restore-keys: ${{ runner.os }}-test-
- name: Install dependencies - name: Install dependencies
run: stack --no-terminal test --only-snapshot run: stack --no-terminal test --only-snapshot
@ -45,7 +45,7 @@ jobs:
with: with:
enable-stack: true enable-stack: true
stack-no-global: true stack-no-global: true
stack-version: 'latest' stack-version: latest
- name: Cache - name: Cache
uses: actions/cache@v2 uses: actions/cache@v2
@ -54,8 +54,8 @@ jobs:
~/.stack ~/.stack
graphql.cabal graphql.cabal
stack.yaml.lock stack.yaml.lock
key: ${{ runner.os }}-build-${{ hashFiles('**/stack.yaml') }} key: ${{ runner.os }}-lint-${{ hashFiles('**/stack.yaml') }}
restore-keys: '${{ runner.os }}-build-' restore-keys: ${{ runner.os }}-lint-
- name: Build HLint - name: Build HLint
run: stack --no-terminal build hlint run: stack --no-terminal build hlint

View File

@ -1,40 +0,0 @@
#!/bin/bash
STACK=$SEMAPHORE_CACHE_DIR/stack
export STACK_ROOT=$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
if [ -e "$SEMAPHORE_CACHE_DIR/graphql.cabal" ]
then
cp -a $SEMAPHORE_CACHE_DIR/graphql.cabal graphql.cabal
fi
$STACK --no-terminal setup
cp -a graphql.cabal $SEMAPHORE_CACHE_DIR/graphql.cabal
}
setup_test() {
$STACK --no-terminal test --only-snapshot
}
test() {
$STACK --no-terminal test --pedantic
}
test_docs() {
$STACK --no-terminal ghc -- -Wall -Werror -fno-code docs/tutorial/tutorial.lhs
$STACK --no-terminal haddock --no-haddock-deps
}
setup_lint() {
$STACK --no-terminal install hlint
}
lint() {
$STACK --no-terminal exec hlint -- src tests
}
$1