Skip to content

Commit

Permalink
build settings
Browse files Browse the repository at this point in the history
  • Loading branch information
rickb777 committed Sep 18, 2019
1 parent 036c37a commit 7995dd9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 3 additions & 3 deletions build+test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash -e
cd $(dirname $0)
cd "$(dirname $0)"
PATH=$HOME/go/bin:$PATH
unset GOPATH
export GO111MODULE=on
Expand All @@ -12,15 +12,15 @@ function v
}

if ! type -p goveralls; then
v go get github.com/mattn/goveralls
v go install github.com/mattn/goveralls
fi

#if ! type -p shadow; then
# v go get golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
#fi

if ! type -p goreturns; then
v go get github.com/sqs/goreturns
v go install github.com/sqs/goreturns
fi

echo date...
Expand Down
6 changes: 3 additions & 3 deletions coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# Developer tool to run the tests and obtain HTML coverage reports.

DIR=$PWD
DOT=$(dirname $0)
DOT="$(dirname $0)"
cd $DOT
TOP=$PWD

# install Goveralls if absent
if ! type -p goveralls; then
echo go get github.com/mattn/goveralls
go get github.com/mattn/goveralls
echo go install github.com/mattn/goveralls
go install github.com/mattn/goveralls
fi

mkdir -p reports
Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
module github.com/rickb777/date

require (
github.com/mattn/goveralls v0.0.2 // indirect
github.com/rickb777/plural v1.2.0
golang.org/x/text v0.3.2
)

go 1.13
3 changes: 3 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
github.com/mattn/goveralls v0.0.2 h1:7eJB6EqsPhRVxvwEXGnqdO2sJI0PTsrWoTMXEk9/OQc=
github.com/mattn/goveralls v0.0.2/go.mod h1:8d1ZMHsd7fW6IRPKQh46F2WRpyib5/X4FOpevwGNQEw=
github.com/rickb777/plural v1.2.0 h1:5tvEc7UBCZ7l8h/2UeybSkt/uu1DQsZFOFdNevmUhlE=
github.com/rickb777/plural v1.2.0/go.mod h1:UdpyWFCGbo3mvK3f/PfZOAOrkjzJlYN/sD46XNWJ+Es=
golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e h1:FDhOuMEY4JVRztM/gsbk+IKUQ8kj74bxZrgw87eMMVc=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=

0 comments on commit 7995dd9

Please sign in to comment.