Skip to content

Commit

Permalink
update run_tests.sh, use more recent courtney
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Feb 4, 2024
1 parent 080e111 commit 4ccc148
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
#!/bin/env bash

echo "Checking code with gofmt..."
OUTPUT=`gofmt -d .`
if [ -n "$OUTPUT" ]
then
echo "$OUTPUT"
exit 1
fi

echo "Checking code with golangci-lint..."
if ! command -v golangci-lint &> /dev/null
then
echo "golangci-lint not found, installing..."
# binary will be $(go env GOPATH)/bin/golangci-lint
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2
fi
Expand All @@ -20,16 +23,16 @@ fi

if ! command -v deltachat-rpc-server &> /dev/null
then
echo "deltachat-rpc-server could not be found, installing..."
echo "deltachat-rpc-server not found, installing..."
curl -L https://github.com/deltachat/deltachat-core-rust/releases/latest/download/deltachat-rpc-server-x86_64-linux --output deltachat-rpc-server
chmod +x deltachat-rpc-server
export PATH=`pwd`:"$PATH"
fi

if ! command -v courtney &> /dev/null
then
echo "courtney could not be found, installing..."
go install github.com/dave/courtney@latest
echo "courtney not found, installing..."
go install github.com/dave/courtney@master
fi

for i in ./examples/*.go
Expand Down

0 comments on commit 4ccc148

Please sign in to comment.