Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Update package layout (#9)" #10

Merged
merged 1 commit into from
Nov 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 48 additions & 75 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,81 +1,54 @@
checkout-path: &checkout-path
checkout-path: /go/src/github.com/nmiyake/pkg
working_dir: &working_dir
working_directory: /go/src/github.com/nmiyake/pkg

version: 2.1
steps: &steps
- checkout
- restore_cache:
keys:
- godel-cache-{{ checksum "godelw" }}-{{ checksum "godel/config/godel.yml" }}-v1
- run: ./godelw version
- save_cache:
key: godel-cache-{{ checksum "godelw" }}-{{ checksum "godel/config/godel.yml" }}-v1
paths:
- ~/.godel
- run: echo 'export TESTS_DIR=/tmp/test-results' >> $BASH_ENV
- run: mkdir -p "${TESTS_DIR}"
- run: |
if [ ! -z "$VERIFY" ]; then
echo "Verify" && ./godelw verify --apply=false --junit-output="$TESTS_DIR/$CIRCLE_PROJECT_REPONAME-tests.xml"
else
echo "Test" && ./godelw test --junit-output="$TESTS_DIR/$CIRCLE_PROJECT_REPONAME-tests.xml"
fi
- type: test-results-store
path: /tmp/test-results
- type: artifacts-store
path: /tmp/test-results
destination: test-results

orbs:
go: palantir/go@0.0.14
godel: palantir/godel@0.0.14
version: 2
jobs:
go-1.11:
<<: *working_dir
environment:
VERIFY: 1
docker:
- image: golang:1.11.2
steps: *steps
go-1.10:
<<: *working_dir
docker:
- image: golang:1.10.5
steps: *steps
go-1.9:
<<: *working_dir
docker:
- image: golang:1.9.7
steps: *steps

workflows:
version: 2
verify-test:
verify:
jobs:
# dirs
- godel/verify:
name: dirs-verify
<<: *checkout-path
executor:
name: go/golang
version: 1.13.4
owner-repo: nmiyake/pkg/dirs
- godel/test:
name: dirs-test-go-1.13
<<: *checkout-path
executor:
name: go/golang
version: 1.13.4
owner-repo: nmiyake/pkg/dirs
- godel/test:
name: dirs-test-go-1.12
<<: *checkout-path
executor:
name: go/golang
version: 1.12.13
owner-repo: nmiyake/pkg/dirs

# errorstringer
- godel/verify:
name: errorstringer-verify
<<: *checkout-path
executor:
name: go/golang
version: 1.13.4
owner-repo: nmiyake/pkg/errorstringer
- godel/test:
name: errorstringer-test-go-1.13
<<: *checkout-path
executor:
name: go/golang
version: 1.13.4
owner-repo: nmiyake/pkg/errorstringer
- godel/test:
name: errorstringer-test-go-1.12
<<: *checkout-path
executor:
name: go/golang
version: 1.12.13
owner-repo: nmiyake/pkg/errorstringer

# gofiles
- godel/verify:
name: gofiles-verify
<<: *checkout-path
executor:
name: go/golang
version: 1.13.4
owner-repo: nmiyake/pkg/gofiles
- godel/test:
name: gofiles-test-go-1.13
<<: *checkout-path
executor:
name: go/golang
version: 1.13.4
owner-repo: nmiyake/pkg/gofiles
- godel/test:
name: gofiles-test-go-1.12
<<: *checkout-path
executor:
name: go/golang
version: 1.12.13
owner-repo: nmiyake/pkg/gofiles
- go-1.11
- go-1.10
- go-1.9
33 changes: 33 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 6 additions & 18 deletions gofiles/Gopkg.toml → Gopkg.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

# Gopkg.toml example
#
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
Expand All @@ -16,23 +17,10 @@
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true
# name = "github.com/x/y"
# version = "2.4.0"


[[constraint]]
branch = "develop"
name = "github.com/nmiyake/pkg"

[[constraint]]
name = "github.com/stretchr/testify"
version = "1.4.0"

[prune]
go-tests = true
unused-packages = true
name = "github.com/pkg/errors"
version = "0.8.0"
3 changes: 0 additions & 3 deletions dirs/go.mod

This file was deleted.

Empty file removed dirs/go.sum
Empty file.
2 changes: 0 additions & 2 deletions dirs/godel/config/godel.properties

This file was deleted.

17 changes: 0 additions & 17 deletions dirs/godel/config/godel.yml

This file was deleted.

Empty file.
5 changes: 0 additions & 5 deletions errorstringer/go.mod

This file was deleted.

2 changes: 0 additions & 2 deletions errorstringer/go.sum

This file was deleted.

5 changes: 0 additions & 5 deletions errorstringer/godel/config/check-plugin.yml

This file was deleted.

Empty file.
Empty file.
2 changes: 0 additions & 2 deletions errorstringer/godel/config/godel.properties

This file was deleted.

17 changes: 0 additions & 17 deletions errorstringer/godel/config/godel.yml

This file was deleted.

Empty file.
Empty file.
Loading