fcd307d902
* build forks on PRs properly
19 lines
481 B
Bash
Executable File
19 lines
481 B
Bash
Executable File
#!/bin/bash
|
|
# set -x
|
|
|
|
failed=0
|
|
go mod edit -replace github.com/micro/go-micro/v2=github.com/$2/v2@$1
|
|
# basic test, build the binary
|
|
go install
|
|
failed=$?
|
|
if [ $failed -gt 0 ]; then
|
|
exit $failed
|
|
fi
|
|
# unit tests
|
|
IN_TRAVIS_CI=yes go test -v ./...
|
|
|
|
./scripts/test-docker.sh
|
|
# Generate keys for JWT tests
|
|
ssh-keygen -f /tmp/sshkey -m pkcs8 -q -N ""
|
|
ssh-keygen -f /tmp/sshkey -e -m pkcs8 > /tmp/sshkey.pub
|
|
go clean -testcache && IN_TRAVIS_CI=yes go test --tags=integration -v ./test |