Permalink
Browse files

Merge pull request #9 from amitsaha/no_gb

Restructure as a "standard" GOPATH based project
  • Loading branch information...
amitsaha committed Mar 19, 2017
2 parents 2f5197b + 56f2cc3 commit e1932c41eac249a0d3dd8b9e6d6b026cdb663cce
Showing 697 changed files with 4 additions and 179 deletions.
View
@@ -10,6 +10,5 @@ install: true
script:
- cd $GOPATH/src/github.com/amitsaha/gitbackup/
- - GOPATH=$GOPATH/src/github.com/amitsaha/gitbackup/vendor go build -o bin/gitbackup src/gitbackup/main.go src/gitbackup/client.go src/gitbackup/backup.go src/gitbackup/repositories.go
- - cd src/gitbackup/
- - GOPATH=$GOPATH/src/github.com/amitsaha/gitbackup/vendor go test -v
+ - go build
+ - go test -v
View
@@ -29,8 +29,5 @@ build: off
test_script:
- cd c:\gopath\src\github.com\amitsaha\gitbackup
- - set gopath=c:\gopath\src\github.com\amitsaha\gitbackup\vendor;%gopath%
- - go build -o bin\gitbackup.exe src\gitbackup\main.go src\gitbackup\client.go src\gitbackup\backup.go src\gitbackup\repositories.go
- - ls bin\
- - cd src\gitbackup\
+ - go build -o bin\gitbackup.exe
- go test -v
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -10,7 +10,7 @@ for pair in linux/386 linux/amd64 linux/arm linux/arm64 darwin/amd64 dragonfly/a
GOOS=`echo $pair | cut -d'/' -f1`
GOARCH=`echo $pair | cut -d'/' -f2`
OBJECT_FILE="gitbackup-$VERSION-$GOOS-$GOARCH"
- GOOS=$GOOS GOARCH=$GOARCH GOPATH=`pwd`/vendor/ go build -o "$DISTDIR/$OBJECT_FILE" src/gitbackup/main.go src/gitbackup/client.go src/gitbackup/backup.go src/gitbackup/repositories.go
+ GOOS=$GOOS GOARCH=$GOARCH go build -o "$DISTDIR/$OBJECT_FILE"
pushd $DISTDIR
echo $OBJECT_FILE
zip "$OBJECT_FILE.zip" $OBJECT_FILE
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.

0 comments on commit e1932c4

Please sign in to comment.