This repository was archived by the owner on May 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Update go version, reduce PNG file size, add goreleaser #22
Open
brewmanandi
wants to merge
29
commits into
master
Choose a base branch
from
ft-second-try-2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 16 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
50621da
- increasing golang version to 1.16.5
b48cf09
- fix counterfeiter version
95c92da
- turing into a mod
f3519b1
- getting modules the module way
4e74c59
- updated deps
86e15e2
- remove local
e5a9abf
- passing tests?
8ecf1aa
- ginkgo path
7bf302d
- revert
30bc16b
- test different working directory
a487efc
- removed go get line
e76b893
- storing the built artifact
1f7a9e3
- using go and gor orbs to simplify steps
c45d686
- trying store_test_results
ffbe9b6
- using lossypng to bring the written png down to desktop app level
4ed9a9c
Update .gitignore
otherguy d3ab9d4
- removed unnecessary lines
3e0b0d4
Merge branch 'ft-second-try-2' of https://github.com/remove-bg/go int…
d03143f
- added local test command
dd656fa
- using github.com/xyproto/imagelib for png encoding
c863a4b
- properly go got github.com/xyproto/imagelib
5bb4e35
- updated reference fixture image
f2c401f
- updated readme
b818bcd
- fixed call
841d5d5
- trying without cache
9fc5e85
- trying with old image
c1116c3
- readding cache
6ff7bd9
- removed imagelib
55d608e
- fixed
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,25 +1,50 @@ | ||
| version: 2 | ||
| version: 2.1 | ||
| orbs: | ||
| gor: hubci/goreleaser@1.0.0 | ||
| go: circleci/go@1.7.0 | ||
|
|
||
| workflows: | ||
| main: | ||
| jobs: | ||
| - test | ||
| release: | ||
| jobs: | ||
| - test: | ||
| filters: | ||
| branches: | ||
| ignore: /.*/ | ||
| tags: | ||
| only: /^v\d+\.\d+\.\d+$/ | ||
| - gor/release: | ||
| version: 0.147.1 | ||
| go-version: 1.16.5 | ||
| filters: | ||
| branches: | ||
| ignore: /.*/ | ||
| tags: | ||
| only: /^v\d+\.\d+\.\d+$/ | ||
| jobs: | ||
| build: | ||
| docker: | ||
| - image: circleci/golang:1.14 | ||
| working_directory: /go/src/github.com/remove-bg/go | ||
| test: | ||
| environment: # environment variables for the build itself | ||
| TEST_RESULTS: /tmp/test-results # path to where test results will be saved | ||
| executor: | ||
| name: go/default | ||
| tag: '1.16.5' | ||
| steps: | ||
| - checkout | ||
| - run: echo 'export PATH=$GOPATH/bin:$PATH' >> "$BASH_ENV" | ||
| - restore_cache: | ||
| keys: | ||
| - vendor-{{ checksum "Gopkg.lock" }} | ||
| - run: bin/setup | ||
| - run: bin/test | ||
| - save_cache: | ||
| key: vendor-{{ checksum "Gopkg.lock" }} | ||
| paths: | ||
| - vendor | ||
| - run: mkdir -p $TEST_RESULTS # create the test results directory | ||
| - go/load-cache | ||
| - go/mod-download | ||
| - go/save-cache | ||
| - run: | ||
| name: Run unit tests | ||
| # store the results of our tests in the $TEST_RESULTS directory | ||
| command: | | ||
| PACKAGE_NAMES=$(go list ./... | circleci tests split --split-by=timings --timings-type=classname) | ||
| gotestsum --junitfile ${TEST_RESULTS}/gotestsum-report.xml -- $PACKAGE_NAMES | ||
| - store_artifacts: # upload test summary for display in Artifacts | ||
| path: /tmp/test-results | ||
| destination: raw-test-output | ||
| - store_test_results: # upload test results for display in Test Summary | ||
| path: /tmp/test-results | ||
|
|
||
| workflows: | ||
| version: 2 | ||
| build: | ||
| jobs: | ||
| - build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,4 +3,5 @@ vendor | |
| .idea | ||
| tmp | ||
| removebg | ||
| dist | ||
| dist | ||
| pkg | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| module kaleido.ai/go | ||
|
|
||
| go 1.16 | ||
|
|
||
| require ( | ||
| github.com/4kills/go-zlib v1.1.0 // indirect | ||
| github.com/bmatcuk/doublestar v1.3.4 | ||
| github.com/foobaz/lossypng v0.0.0-20200814224715-48fa8819852a // indirect | ||
| github.com/joefitzgerald/rainbow-reporter v0.1.0 // indirect | ||
| github.com/mattn/go-colorable v0.1.8 | ||
| github.com/maxbrunsfeld/counterfeiter/v6 v6.4.1 // indirect | ||
| github.com/onsi/ginkgo v1.16.4 | ||
| github.com/onsi/gomega v1.13.0 | ||
| github.com/remove-bg/go v1.3.1 | ||
| github.com/sirupsen/logrus v1.8.1 | ||
| github.com/spf13/cobra v1.2.1 | ||
| golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect | ||
| golang.org/x/tools v0.1.4 // indirect | ||
| gopkg.in/AlecAivazis/survey.v1 v1.8.8 | ||
| gopkg.in/h2non/gock.v1 v1.1.0 | ||
| ) | ||
|
|
||
| //replace github.com/remove-bg/go => /Users/brew/Documents/gitrepos/go/src/ | ||
brewmanandi marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.