From 088b778e41a829ad7f8aafbe08139d4708c7c53e Mon Sep 17 00:00:00 2001 From: Christian Claus Date: Thu, 12 Apr 2018 21:17:16 +0200 Subject: [PATCH] Add travis file and reenable 'install deps' in magefile --- .travis.yml | 13 +++++++++++++ magefile.go | 4 ++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..cc49583 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ +language: go +git: + depth: false +go: + - 1.9.5 + - "1.10.1" +os: + - linux + - osx + - windows +install: + - go get github.com/magefile/mage + - mage -v install diff --git a/magefile.go b/magefile.go index 954b50c..d901de3 100644 --- a/magefile.go +++ b/magefile.go @@ -30,7 +30,7 @@ type target struct { // Build Builds swd and swdcli and moves it to the dist directory func Build() error { - //mg.Deps(InstallDeps) + mg.Deps(InstallDeps) mg.Deps(Clean) if _, err := os.Stat(DIST); os.IsNotExist(err) { @@ -134,7 +134,7 @@ func Check() error { // Install Installs swd and swdcli to your $GOPATH/bin folder func Install() error { - //mg.Deps(InstallDeps) + mg.Deps(InstallDeps) fmt.Println("Installing...") return exec.Command("go", "install", "./...").Run()