Add travis file and reenable 'install deps' in magefile
This commit is contained in:
parent
b5567a3fdb
commit
088b778e41
2 changed files with 15 additions and 2 deletions
13
.travis.yml
Normal file
13
.travis.yml
Normal file
|
@ -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
|
|
@ -30,7 +30,7 @@ type target struct {
|
||||||
|
|
||||||
// Build Builds swd and swdcli and moves it to the dist directory
|
// Build Builds swd and swdcli and moves it to the dist directory
|
||||||
func Build() error {
|
func Build() error {
|
||||||
//mg.Deps(InstallDeps)
|
mg.Deps(InstallDeps)
|
||||||
mg.Deps(Clean)
|
mg.Deps(Clean)
|
||||||
|
|
||||||
if _, err := os.Stat(DIST); os.IsNotExist(err) {
|
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
|
// Install Installs swd and swdcli to your $GOPATH/bin folder
|
||||||
func Install() error {
|
func Install() error {
|
||||||
//mg.Deps(InstallDeps)
|
mg.Deps(InstallDeps)
|
||||||
|
|
||||||
fmt.Println("Installing...")
|
fmt.Println("Installing...")
|
||||||
return exec.Command("go", "install", "./...").Run()
|
return exec.Command("go", "install", "./...").Run()
|
||||||
|
|
Loading…
Reference in a new issue