Skip to content

Commit

Permalink
Add Travis-CI (#16)
Browse files Browse the repository at this point in the history
* Add Travis-CI

* Add releases

* Disable notifications

* Add build status

* Add latest release tag
  • Loading branch information
rdsubhas authored Nov 28, 2016
1 parent a1f106e commit f46af67
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 12 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@ Dockerfile
*.pyc
*.log
vendor/
bin/
tmp/
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: go
go_import_path: github.com/goeuro/myke
go:
- 1.7
install:
- go get -u -v github.com/tools/godep
- go get -u -v github.com/mitchellh/gox
- go get -u -v github.com/jteeuwen/go-bindata/...
- godep restore -v
- godep get -v github.com/onsi/ginkgo/ginkgo
script:
- ginkgo -r -v --trace --keepGoing
- bin/cross-compile.sh
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: jrQutAMgQgtFNRe1Y/MuONPL0zK0X3uPPywmBuzBrbstbOwOrmKgo0ypogp9wi/1zFbLwe3d7iK22J7m6KOEZaI4iP/53NMvpez/1zylkxEegxIXe6AeHfeMnqrxAcjgNpxun4xuhTjkWmCLP9T5Cn1gQnznIthOS7yGESolO8x1TQ3wTcTwMs/WOPYVtXe66984AOyubT76RtfOag0EKhm5S/h+iMwqj1g5pDeCl8+tNNp9grOOAkSHu/HSx3BtQziMXEhLj2lJZHLAXDYm0NX+A5s+N+Kkgb7awoS5nYHKEzvF4WBMzC9Y5PK0XHv4k8bKb/u3gJXOOCOP9jTKQ45XS7w/xSCUa1k6cIZlGAPdJ/ZL3i5a3RQoeyto/i4+7z3w81jeWNsdWYvGUuJey/w6/I/0nebdj1P1zZsfHjg/B9YFz3O810Vrd1QCjQOIwxmKELp/MRkbmGiutauDxUbdp8jLBITYj2hMoChOowfciM3AAlt9+BgTR02jnXe46MmVO6cQQduDcoFetheNJLPN9qABLauUuto8LrAIkL/QhZ/SFPh2EaWrWx//+PIaquIF4DfIOrg9AfSE1zFr1fvmwOR7GtY7K7kxitu27NL751Bc99RiekJOb+Lk5Uda/wSp9O0hAiRrlPbeNsktqFgov7pxmgE78iEuRbhI7IY=
file:
- bin/myke_darwin_amd64
- bin/myke_linux_amd64
- bin/myke_windows_amd64.exe
on:
repo: goeuro/myke
tags: true
notifications:
email: false
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM golang:1.7

WORKDIR /go/src/myke
COPY Godeps /go/src/myke/Godeps
WORKDIR /go/src/github.com/goeuro/myke
COPY Godeps /go/src/github.com/goeuro/myke/Godeps
RUN go get -u -v github.com/tools/godep && \
go get -u -v github.com/mitchellh/gox && \
go get -u -v github.com/jteeuwen/go-bindata/... && \
godep restore && \
godep restore -v && \
godep get -v github.com/onsi/ginkgo/ginkgo

COPY . /go/src/myke
COPY . /go/src/github.com/goeuro/myke
RUN ginkgo -r -v --trace --keepGoing && \
gofmt -l .

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# myke
# myke [![Build Status](https://travis-ci.org/goeuro/myke.svg?branch=travis-ci)](https://travis-ci.org/goeuro/myke) [![Latest Release](https://img.shields.io/github/tag/goeuro/myke.svg)](https://github.com/goeuro/myke/releases/latest)

> A higher order task aggregator with cascading configuration, suitable as a wrapper over existing task runners.
Expand Down
2 changes: 1 addition & 1 deletion bin/cross-compile.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# Generate license notices
deps="myke $(go list -f '{{ join .Deps "\n"}}' . | grep -v myke)"
deps="github.com/goeuro/myke $(go list -f '{{ join .Deps "\n"}}' . | grep -v 'goeuro/myke')"
rm -rf tmp
mkdir -p tmp
out="tmp/LICENSES"
Expand Down
2 changes: 1 addition & 1 deletion cmd/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package cmd

import (
"gopkg.in/urfave/cli.v1"
"github.com/goeuro/myke/core"
"log"
"fmt"
"myke/core"
)

var LicenseCmd = cli.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cmd

import (
"gopkg.in/urfave/cli.v1"
"myke/core"
"github.com/goeuro/myke/core"
"os"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package cmd

import (
"gopkg.in/urfave/cli.v1"
"github.com/goeuro/myke/core"
"log"
"myke/core"
)

var RunCmd = cli.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package cmd

import (
"gopkg.in/urfave/cli.v1"
"github.com/goeuro/myke/core"
"log"
"fmt"
"io/ioutil"
"myke/core"
)

var TemplateCmd = cli.Command{
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

import (
"gopkg.in/urfave/cli.v1"
"myke/cmd"
"github.com/goeuro/myke/cmd"
"log"
"os"
)
Expand Down

0 comments on commit f46af67

Please sign in to comment.