diff --git a/.gh-deployer.yaml b/.gh-deployer.yaml deleted file mode 100644 index ab6f6ec..0000000 --- a/.gh-deployer.yaml +++ /dev/null @@ -1,10 +0,0 @@ -shell: /bin/bash -shell-args: [ "-c" ] - -env: -- PROJECT_NAME=gomuks - -commands: -- ./scripts/ci -- rm -rf .tmp/ target/ -- git checkout . diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index fa1ee4b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: go -go_import_path: maunium.net/go/gomuks -go: - - "1.12" -env: - - "GO111MODULE=on" -notifications: - email: false -install: - - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - - chmod +x ./cc-test-reporter - - go get -u github.com/stretchr/testify/assert - - go install -before_script: - - ./cc-test-reporter before-build -script: - - go test -v -race ./... -coverprofile c.out - - go vet ./... -after_script: - - ./cc-test-reporter after-build --coverage-input-type gocov --exit-code $TRAVIS_TEST_RESULT diff --git a/scripts/build b/scripts/build deleted file mode 100755 index 832ca13..0000000 --- a/scripts/build +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -go build -o target/gomuks diff --git a/scripts/ci b/scripts/ci deleted file mode 100755 index f73df98..0000000 --- a/scripts/ci +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/bash -mkdir -p ../.gopath -mkdir -p target -mkdir -p .tmp -export GOPATH=$(dirname $(pwd))/.gopath -export SHORTHEAD=${HEAD:0:7} -export VERSION=$(awk '/^Version:/ { print $2 }' deb/DEBIAN/control | sed -E 's/\-[0-9]+$//') - -export CGO_ENABLED=0 - -echo "Compiling for linux/amd64" -go build -o "target/$PROJECT_NAME-linux-amd64" -echo "Compiling for linux/386" -GOARCH=386 go build -o "target/$PROJECT_NAME-linux-386" -echo "Compiling for linux/arm" -GOARCH=arm go build -o "target/$PROJECT_NAME-linux-arm" -echo "Compiling for linux/arm64" -GOARCH=arm64 go build -o "target/$PROJECT_NAME-linux-arm64" -echo "Compiling for darwin/amd64" -GOOS=darwin go build -o "target/$PROJECT_NAME-darwin-amd64" - -echo "Packaging for debian (linux/amd64)" -mkdir -p deb/usr/bin/ - -cp target/$PROJECT_NAME-linux-amd64 deb/usr/bin/gomuks - -git clone https://github.com/tulir/tcell.git .tmp/tcell -mkdir -p deb/usr/share/tcell/ -rm -rf deb/usr/share/tcell/database -cp -r .tmp/tcell/terminfo/database deb/usr/share/tcell - -sed -i.bak -E 's/(Version: [0-9]+\.[0-9]+\.[0-9]+\-[0-9]+)/\1+'$SHORTHEAD'/' deb/DEBIAN/control -chmod -R -s deb/DEBIAN -chmod -R 0755 deb/DEBIAN -dpkg-deb --build deb 'target/'$PROJECT_NAME'_linux_amd64.deb' -mv -f deb/DEBIAN/control.bak deb/DEBIAN/control - -mkdir -p /srv/downloads/programs/gomuks/$VERSION-$SHORTHEAD -mv target/* /srv/downloads/programs/gomuks/$VERSION-$SHORTHEAD/ diff --git a/scripts/coverage b/scripts/coverage deleted file mode 100755 index c52d4a6..0000000 --- a/scripts/coverage +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -mkdir -p target/ -go test ./... -coverprofile=target/coverage.out -if [ ! -z $1 ]; then - go tool cover -html=coverage.out -o $1 -else - go tool cover -html=coverage.out -fi diff --git a/scripts/lint b/scripts/lint deleted file mode 100755 index 06957b8..0000000 --- a/scripts/lint +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -golint ./... | grep -v "should have comment" | grep -v "vendor/" diff --git a/scripts/package b/scripts/package deleted file mode 100755 index 6b38a00..0000000 --- a/scripts/package +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -mkdir -p deb/usr/bin/ -mkdir -p target/ - -go build -o deb/usr/bin/gomuks - -go get -u maunium.net/go/tcell -mkdir -p deb/usr/share/tcell/ -rm -rf deb/usr/share/tcell/database -cp -r $GOPATH/src/maunium.net/go/tcell/terminfo/database deb/usr/share/tcell - -version=$(cat deb/DEBIAN/control | grep Version | awk '{ print $2 }') -dpkg-deb --build deb target/gomuks-$version.deb