Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
Merge 8f8fbe6 into 22f3e1c
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Sep 12, 2019
2 parents 22f3e1c + 8f8fbe6 commit 84c57a9
Show file tree
Hide file tree
Showing 4 changed files with 324 additions and 3 deletions.
320 changes: 320 additions & 0 deletions Gopkg.lock

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

5 changes: 3 additions & 2 deletions capsule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ engine_enable_code_mutation: true
engine_cmd_compile:
- mkdir -p vendor/gopkg.in/libgit2/git2go.v25/vendor/libgit2/build/
- cp /usr/local/linux/lib/pkgconfig/libgit2.pc vendor/gopkg.in/libgit2/git2go.v25/vendor/libgit2/build/libgit2.pc
- '. /scripts/toolchains/linux/linux-build-env.sh && go build -ldflags "-X main.goos=linux -X main.goarch=amd64" -o capsulecd-linux-amd64 -tags "static" cmd/capsulecd/capsulecd.go'
- '. /scripts/toolchains/linux/linux-build-env.sh && go build -ldflags "-X main.goos=linux -X main.goarch=amd64" -o capsulecd-linux-amd64 -tags "static" $(go list ./cmd/...)'
- cp /usr/local/osx-ndk-x86/macports/pkgs/opt/local/lib/pkgconfig/libgit2.pc vendor/gopkg.in/libgit2/git2go.v25/vendor/libgit2/build/libgit2.pc
- '. /scripts/toolchains/osx/osx-build-env.sh && go build -ldflags "-X main.goos=darwin -X main.goarch=amd64" -o capsulecd-darwin-amd64 -tags "static" cmd/capsulecd/capsulecd.go'
- '. /scripts/toolchains/osx/osx-build-env.sh && go build -ldflags "-X main.goos=darwin -X main.goarch=amd64" -o capsulecd-darwin-amd64 -tags "static" $(go list ./cmd/...)'
- 'echo "listing linked libraries" && ldd capsulecd-linux-amd64'
engine_cmd_test: 'go test -v -tags "static" ./...'
engine_cmd_lint: 'gometalinter.v2 --vendor --config=gometalinter.json ./...'
engine_disable_lint: true

mgr_keep_lock_file: true
scm_enable_branch_cleanup: true

scm_release_assets:
Expand Down
1 change: 1 addition & 0 deletions pkg/mgr/mgr_golang_dep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func (suite *MgrGolangDepTestSuite) TestMgrGolangDepTestSuite_DependenciesStep()
require.NoError(suite.T(), err)
defer os.RemoveAll(parentPath)
suite.PipelineData.GitParentPath = parentPath
suite.PipelineData.GolangGoPath = parentPath
suite.PipelineData.GitLocalPath = path.Join(parentPath, "src", "dep_analogj_test")
os.MkdirAll(path.Join(parentPath, "src"),0666)
cerr := utils.CopyDir(path.Join("testdata", "golang", "dep_analogj_test"), suite.PipelineData.GitLocalPath)
Expand Down
1 change: 0 additions & 1 deletion pkg/pipeline/pipeline_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ type Data struct {

//Engine specific pipeline data
GolangGoPath string
GolangGoRoot string
}

0 comments on commit 84c57a9

Please sign in to comment.