Skip to content

Commit

Permalink
Remove Overalls from build process
Browse files Browse the repository at this point in the history
  • Loading branch information
NI committed Jul 26, 2020
1 parent fded2da commit 89aebf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
PATH=$PATH:"$(go env GOPATH)/bin"
GO111MODULE=on
ASC_URL=https://keybase.io/nirui/pgp_keys.asc
PACKAGE=github.com/niruix/sshwifty
VERSION_VARIABLE=github.com/niruix/sshwifty/application.version
BUILD_TARGETS="darwin/amd64 windows/386 windows/amd64 openbsd/386 openbsd/amd64 openbsd/arm openbsd/arm64 freebsd/386 freebsd/amd64 freebsd/arm freebsd/arm64 linux/386 linux/amd64 linux/arm linux/arm64 linux/riscv64 linux/ppc64 linux/ppc64le linux/mips linux/mipsle linux/mips64 linux/mips64le"

Expand All @@ -14,7 +13,6 @@ SSHWIFTY_VERSION=$(git describe --always --dirty='*' --tag)
SSHWIFTY_COMMIT=$(git describe --always)
SSHWIFTY_RELEASE=$([ "$(echo $SSHWIFTY_VERSION | grep -oP ^[0-9]+\.[0-9]+\.[0-9]+\-[a-zA-Z0-9]+\-release$)" = '' ] || echo 'yes')
SSHWIFTY_DEPLOY=$([ "$SSHWIFTY_RELEASE" != 'yes' ] || echo 'yes')
SSHWIFTY_TEST_COVER=$([ "$COVERALLS_TOKEN" = '' ] || echo 'yes')
SSHWIFTY_DOCKER_IMAGE_TAG="$DOCKER_HUB_USER/github_action_test"
SSHWIFTY_DOCKER_IMAGE_PUSH_TAG="$SSHWIFTY_DOCKER_IMAGE_TAG:$SSHWIFTY_VERSION"
SSHWIFTY_DOCKER_IMAGE_PUSH_TAG_LATEST="$SSHWIFTY_DOCKER_IMAGE_TAG:latest"
Expand Down Expand Up @@ -74,13 +72,6 @@ catch() {
exit $res
}

if [ "$SSHWIFTY_TEST_COVER" = 'yes' ]; then
echo 'Downloading test cover reporter ...'

[ "$(which overalls)" != '' ] || catch retry go get -v github.com/go-playground/overalls
[ "$(which goveralls)" != '' ] || catch retry go get -v github.com/mattn/goveralls
fi

if [ "$SSHWIFTY_DEPLOY" = 'yes' ]; then
echo 'Downloading compile & deploy tools ...'

Expand All @@ -103,11 +94,6 @@ catch npm run generate
catch go vet ./...
catch npm run testonly

if [ "$SSHWIFTY_TEST_COVER" = 'yes' ]; then
catch overalls -project="$PACKAGE" -covermode=count
catch goveralls -coverprofile=./overalls.coverprofile -service github
fi

if [ "$SSHWIFTY_DEPLOY" = 'yes' ]; then
catch child \
'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
export DOCKER_HUB_PASSWORD="${{ secrets.DOCKER_HUB_PASSWORD }}"
export COVERALLS_TOKEN="${{ secrets.COVERALLS_TOKEN }}"
export DOCKER_HUB_USER="${{ github.repository_owner }}"
# The `DOCKER_NPM_REGISTRY` is here due to problematic build process
# for ARM64 Docker Image caused by Docker/QEMU
export DOCKER_NPM_REGISTRY="http://registry.npmjs.org/"
sudo apt-get update -qq -y
Expand Down

0 comments on commit 89aebf9

Please sign in to comment.