Browse Source

CI fix

pull/1780/head
Christopher Goes 7 years ago
parent
commit
55f4ccd4fc
No known key found for this signature in database GPG Key ID: E828D98232D328D3
3 changed files with 9 additions and 3 deletions
  1. +1
    -1
      Gopkg.lock
  2. +2
    -2
      Makefile
  3. +6
    -0
      test.sh

+ 1
- 1
Gopkg.lock View File

@ -285,6 +285,6 @@
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
inputs-digest = "8b1ff7eb1a874905f0d7772407cfacd3fca77a2214530e633c0f4d7e468a6f92"
inputs-digest = "8aa4ea7ef6d0ff170127eb5bca89c6c37c767d58047159cfd26a431c5cd5e7ad"
solver-name = "gps-cdcl"
solver-version = 1

+ 2
- 2
Makefile View File

@ -72,12 +72,12 @@ gen_certs: clean_certs
certstrap init --common-name "tendermint.com" --passphrase ""
certstrap request-cert -ip "::" --passphrase ""
certstrap sign "::" --CA "tendermint.com" --passphrase ""
mv out/{::.crt,::.key} remotedb
mv out/::.crt out/::.key remotedb
clean_certs:
## Cleaning TLS testing certificates...
rm -rf out
rm -f remotedb/{::.crt,::.key}
rm -f remotedb/::.crt remotedb/::.key
test: gen_certs
go test -tags gcc $(shell go list ./... | grep -v vendor)


+ 6
- 0
test.sh View File

@ -4,6 +4,9 @@ set -e
# run the linter
# make metalinter_test
# setup certs
make gen_certs
# run the unit tests with coverage
echo "" > coverage.txt
for d in $(go list ./... | grep -v vendor); do
@ -13,3 +16,6 @@ for d in $(go list ./... | grep -v vendor); do
rm profile.out
fi
done
# cleanup certs
make clean_certs

Loading…
Cancel
Save