Skip to content

Commit

Permalink
Rename to omio-labs/myke (#116)
Browse files Browse the repository at this point in the history
* Rename to omio-labs/myke
* Fix CI
* Fix format
* Fix tests
* Fix codecov
  • Loading branch information
rdsubhas authored Nov 6, 2019
1 parent 008abff commit bbe3a1f
Show file tree
Hide file tree
Showing 26 changed files with 196 additions and 130 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
language: go
go_import_path: github.com/goeuro/myke
go_import_path: github.com/omio-labs/myke
go:
- 1.11
- 1.13
env:
- GO111MODULE=on
script:
- gofmt -d -s -e . 2>&1 | tee -a fmt.out
- test ! -s fmt.out
- go run github.com/golang/lint/golint -set_exit_status .
- go test -coverprofile=coverage.txt -coverpkg=github.com/goeuro/myke/core,github.com/goeuro/myke/cmd -covermode=atomic -timeout 10s -v ./...
- go run golang.org/x/lint/golint -set_exit_status .
- go test -coverprofile=coverage.txt -coverpkg=github.com/omio-labs/myke/core,github.com/omio-labs/myke/cmd -covermode=atomic -timeout 10s -v ./...
- bin/cross-compile.sh "$TRAVIS_TAG-$TRAVIS_COMMIT"
after_success:
- bash <(curl -s https://codecov.io/bash) -t 5dfb580c-fad8-49bc-93eb-bf758daaca64
- bash <(curl -s https://codecov.io/bash)
deploy:
provider: releases
skip_cleanup: true
Expand All @@ -22,7 +22,7 @@ deploy:
- bin/myke_linux_amd64
- bin/myke_windows_amd64.exe
on:
repo: goeuro/myke
repo: omio-labs/myke
branch: none
tags: true
condition: "$TRAVIS_TAG =~ ^v[0-9].+$"
Expand Down
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at opensource@goeuro.com. All
reported by contacting the project team at open-source@omio.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Contributing

We love pull requests from everyone. By participating in this project, you
agree to abide by the [code of conduct](https://github.com/goeuro/myke/blob/master/CODE_OF_CONDUCT.md).
agree to abide by the [code of conduct](https://github.com/omio-labs/myke/blob/master/CODE_OF_CONDUCT.md).

## Contribution Guide

Expand All @@ -16,6 +16,6 @@ agree to abide by the [code of conduct](https://github.com/goeuro/myke/blob/mast
* We prefer testing-by-example, every package inside `examples/` folder has its own `package_test.go` in testing table style
* Run new tests again: `go test ./...`
* Run and test the program: `go run main.go`
* Push to your fork and [submit a pull request](https://github.com/goeuro/myke/compare)
* Push to your fork and [submit a pull request](https://github.com/omio-labs/myke/compare)
* Make sure tests pass in the CI
* Make sure you sign the [Contributor License Agreement](https://cla-assistant.io/goeuro/myke)
* Make sure you sign the [Developer Certificate of Origin](https://developercertificate.org/)
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM golang:1.11

WORKDIR /go/src/github.com/goeuro/myke
COPY . /go/src/github.com/goeuro/myke
WORKDIR /go/src/github.com/omio-labs/myke
COPY . /go/src/github.com/omio-labs/myke
CMD ["bin/cross-compile.sh"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# myke [![Latest Release](https://img.shields.io/github/release/goeuro/myke.svg)](https://github.com/goeuro/myke/releases/latest) [![Build Status](https://travis-ci.org/goeuro/myke.svg?branch=travis-ci)](https://travis-ci.org/goeuro/myke) [![Go Report Card](https://goreportcard.com/badge/github.com/goeuro/myke)](https://goreportcard.com/report/github.com/goeuro/myke) [![codecov](https://codecov.io/gh/goeuro/myke/branch/master/graph/badge.svg)](https://codecov.io/gh/goeuro/myke)
# myke [![Latest Release](https://img.shields.io/github/release/omio-labs/myke.svg)](https://github.com/omio-labs/myke/releases/latest) [![Build Status](https://travis-ci.org/omio-labs/myke.svg?branch=travis-ci)](https://travis-ci.org/omio-labs/myke) [![Go Report Card](https://goreportcard.com/badge/github.com/omio-labs/myke)](https://goreportcard.com/report/github.com/omio-labs/myke) [![codecov](https://codecov.io/gh/omio-labs/myke/branch/master/graph/badge.svg)](https://codecov.io/gh/omio-labs/myke)

> myke makes it easy to write development tasks
Expand Down Expand Up @@ -47,7 +47,7 @@ Using the above myke.yml, you can invoke tasks like:

## Installation

* [Grab the latest release](https://github.com/goeuro/myke/releases/latest)
* [Grab the latest release](https://github.com/omio-labs/myke/releases/latest)

## Examples

Expand Down
6 changes: 3 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: "{build}"
os: Windows Server 2012 R2
clone_folder: c:\gopath\src\github.com\goeuro\myke
clone_folder: c:\gopath\src\github.com\omio-labs\myke

skip_tags: true
branches:
Expand All @@ -12,7 +12,7 @@ environment:
GO111MODULE: "on"
matrix:
- environment:
GOVERSION: 1.11
GOVERSION: 1.13

install:
- set PATH=%GOPATH%\bin;C:\go\bin;%WINDIR%;%WINDIR%\System32;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin
Expand All @@ -22,5 +22,5 @@ install:
build_script:
- gofmt -d -s -e . 2>&1 | tee -a fmt.out
- test ! -s fmt.out
- go run github.com/golang/lint/golint -set_exit_status .
- go run golang.org/x/lint/golint -set_exit_status .
- go test -timeout 10s -v ./...
2 changes: 1 addition & 1 deletion bin/cross-compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ echo $version >> "tmp/version"

# Generate license notices
go mod vendor
deps="github.com/goeuro/myke $(go list -f '{{ join .Deps "\n"}}' ./... | grep -v 'goeuro/myke')"
deps="github.com/omio-labs/myke $(go list -f '{{ join .Deps "\n"}}' ./... | grep -v 'omio-labs/myke')"
out="tmp/LICENSES"
echo -e "OPEN SOURCE LICENSES\n" > $out

Expand Down
2 changes: 1 addition & 1 deletion cmd/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
"fmt"

"github.com/goeuro/myke/core"
"github.com/omio-labs/myke/core"
)

// License prints all open source licenses
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"github.com/apex/log"
"github.com/apex/log/handlers/cli"
"github.com/goeuro/myke/core"
"github.com/jessevdk/go-flags"
"github.com/omio-labs/myke/core"
"io"
"os"
"path/filepath"
Expand Down
2 changes: 1 addition & 1 deletion cmd/run.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cmd

import (
"github.com/goeuro/myke/core"
"github.com/omio-labs/myke/core"
"github.com/pkg/errors"
)

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

import (
"fmt"
"github.com/goeuro/myke/core"
"github.com/omio-labs/myke/core"
"github.com/pkg/errors"
"io/ioutil"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/goeuro/myke/core"
"github.com/omio-labs/myke/core"
)

// Version prints myke version
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
default:
build: .
volumes:
- ".:/go/src/github.com/goeuro/myke"
- ".:/go/src/github.com/omio-labs/myke"
2 changes: 1 addition & 1 deletion examples/env/package_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package test

import (
. "github.com/goeuro/myke/examples/util"
. "github.com/omio-labs/myke/examples/util"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/hooks/package_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package test

import (
. "github.com/goeuro/myke/examples/util"
. "github.com/omio-labs/myke/examples/util"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/mixin/package_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package test

import (
. "github.com/goeuro/myke/examples/util"
. "github.com/omio-labs/myke/examples/util"
"testing"
)

Expand Down
9 changes: 5 additions & 4 deletions examples/package_test.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
package test

import (
. "github.com/goeuro/myke/examples/util"
"testing"

. "github.com/omio-labs/myke/examples/util"
)

var tests = []TestTable{
{Arg: ``, Out: `(?m)^\s*PROJECT\s*\|\s*TAGS\s*\|\s*TASKS\s*$`},
{Arg: ``, Out: `(?m)^\s*env\s*\|\s*\|\s*file_custom, file_custom_local, file_default, file_default_local, path, yml\s*$`},
{Arg: ``, Out: `(?m)^\s*env\s*\|\s*\|\s*file_custom, file_custom_local, file_default, file_default_local, path,\s*$`},
{Arg: ``, Out: `(?m)^\s*hooks\s*\|\s*\|\s*after, before, error\s*$`},
{Arg: ``, Out: `(?m)^\s*mixin\s*\|\s*\|\s*path, task1, task2, task3\s*$`},
{Arg: ``, Out: `(?m)^\s*retry\s*\|\s*\|\s*retry\s*$`},
{Arg: ``, Out: `(?m)^\s*tags1\s*\|\s*tagA, tagB\s*\|\s*tag\s*$`},
{Arg: ``, Out: `(?m)^\s*tags2\s*\|\s*tagB, tagC\s*\|\s*tag\s*$`},
{Arg: ``, Out: `(?m)^\s*tags1\s*\|\s*tagA,\s*\|\s*tag\s*$`},
{Arg: ``, Out: `(?m)^\s*tags2\s*\|\s*tagB,\s*\|\s*tag\s*$`},
{Arg: ``, Out: `(?m)^\s*template\s*\|\s*\|\s*args, envs, file\s*$`},
{Arg: `--help`, Out: `(?s).*Usage.*myke options.*`},
{Arg: `--version`, Out: `.*myke version.*`},
Expand Down
2 changes: 1 addition & 1 deletion examples/retry/package_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package test

import (
. "github.com/goeuro/myke/examples/util"
. "github.com/omio-labs/myke/examples/util"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/shell/package_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package test

import (
. "github.com/goeuro/myke/examples/util"
. "github.com/omio-labs/myke/examples/util"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/tag/package_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package test

import (
. "github.com/goeuro/myke/examples/util"
. "github.com/omio-labs/myke/examples/util"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/template/package_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package test

import (
. "github.com/goeuro/myke/examples/util"
. "github.com/omio-labs/myke/examples/util"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/util/test_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package util
import (
"bytes"
"fmt"
"github.com/goeuro/myke/cmd"
"github.com/omio-labs/myke/cmd"
"github.com/stretchr/testify/assert"
"io"
"os"
Expand Down
63 changes: 29 additions & 34 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,38 +1,33 @@
module github.com/goeuro/myke
module github.com/omio-labs/myke

require (
github.com/Masterminds/semver v0.0.0-20170407153603-923f129261de // indirect
github.com/Masterminds/sprig v0.0.0-20170407153254-4fd5bcb33f76
github.com/aokoli/goutils v0.0.0-20140502001128-9c37978a95bd // indirect
github.com/apex/log v0.0.0-20170412164658-a0bcece0a725
github.com/buger/jsonparser v0.0.0-20181023193515-52c6e1462ebd // indirect
github.com/davecgh/go-spew v1.1.0 // indirect
github.com/Masterminds/goutils v1.1.0 // indirect
github.com/Masterminds/semver v1.5.0 // indirect
github.com/Masterminds/sprig v2.22.0+incompatible
github.com/apex/log v1.1.1
github.com/ghodss/yaml v1.0.0
github.com/golang/lint v0.0.0-20180702182130-06c8688daad7
github.com/jessevdk/go-flags v0.0.0-20161215105708-4e64e4a4e255
github.com/joho/godotenv v0.0.0-20161216230537-726cc8b906e3
github.com/json-iterator/go v1.1.5 // indirect
github.com/kardianos/osext v0.0.0-20170309185600-9d302b58e975
github.com/kr/pretty v0.1.0 // indirect
github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329 // indirect
github.com/mitchellh/gox v0.4.0
github.com/mitchellh/iochan v1.0.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/olekukonko/ts v0.0.0-20140412220145-ecf753e7c962 // indirect
github.com/omeid/go-resources v0.0.0-20171025031226-ca9993b7d1a4
github.com/pkg/errors v0.0.0-20161029093637-248dadf4e906
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/pquerna/ffjson v0.0.0-20181028064349-e517b90714f7 // indirect
github.com/rdsubhas/go-elastictable v0.0.0-20170420232059-6f173a85235b
github.com/satori/go.uuid v0.0.0-20160927100844-b061729afc07 // indirect
github.com/stretchr/testify v0.0.0-20161217200445-2402e8e7a02f
github.com/tgulacsi/wrap v0.0.0-20160112181456-972bd931cfd1 // indirect
github.com/tidwall/gjson v0.0.0-20170418162851-e30a9c1037e0
github.com/tidwall/match v0.0.0-20160830173930-173748da739a // indirect
golang.org/x/crypto v0.0.0-20170420163513-0242f07995e6 // indirect
golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3 // indirect
golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52 // indirect
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
gopkg.in/yaml.v2 v2.0.0-20170407172122-cd8b52f8269e // indirect
github.com/hashicorp/go-version v1.2.0 // indirect
github.com/huandu/xstrings v1.2.0 // indirect
github.com/imdario/mergo v0.3.8 // indirect
github.com/jessevdk/go-flags v1.4.0
github.com/joho/godotenv v1.3.0
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0
github.com/mattn/go-colorable v0.1.4 // indirect
github.com/mattn/go-isatty v0.0.10 // indirect
github.com/mitchellh/copystructure v1.0.0 // indirect
github.com/mitchellh/gox v1.0.1
github.com/mitchellh/reflectwalk v1.0.1 // indirect
github.com/olekukonko/ts v0.0.0-20171002115256-78ecb04241c0 // indirect
github.com/omeid/go-resources v0.0.0-20190324090249-46f4269d8abd
github.com/pkg/errors v0.8.1
github.com/rdsubhas/go-elastictable v0.0.0-20191106122319-f6b840035db6
github.com/stretchr/testify v1.4.0
github.com/tidwall/gjson v1.3.4
golang.org/x/crypto v0.0.0-20191105034135-c7e5f84aec59 // indirect
golang.org/x/lint v0.0.0-20190930215403-16217165b5de
golang.org/x/sys v0.0.0-20191105231009-c1f44814a5cd // indirect
golang.org/x/tools v0.0.0-20191105231337-689d0f08e67a // indirect
gopkg.in/yaml.v2 v2.2.5 // indirect
)

go 1.13
Loading

0 comments on commit bbe3a1f

Please sign in to comment.