Skip to content

Commit 82472ba

Browse files
reggeenrmichael-magrianJohn Sartore
authored
SDK Update 20221209 162050 - v2.0.3
Co-authored-by: Michael Magrian <[email protected]> Co-authored-by: John Sartore <[email protected]>
1 parent 1191a7b commit 82472ba

24 files changed

+31749
-1051
lines changed

.bumpversion.cfg

Lines changed: 0 additions & 13 deletions
This file was deleted.

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ swagger.json
1717
openapi-sdkgen
1818

1919
# example binary ignore
20-
example/example
20+
example/example
21+
coverage.txt
22+
23+
package.json
24+
package-lock.json

.releaserc

Lines changed: 0 additions & 21 deletions
This file was deleted.

.travis.yml

Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
language: go
2-
dist: xenial
3-
go: 1.13.x
2+
dist: focal
3+
4+
go:
5+
- 1.18.x
46

57
# Only run on main (still tests PRs)
68
branches:
79
only:
810
- main
911

12+
cache:
13+
directories:
14+
- $HOME/.cache/go-build
15+
- $HOME/gopath/pkg/mod
16+
1017
notifications:
1118
email: true
1219

@@ -15,29 +22,12 @@ env:
1522
- GO111MODULE=on
1623

1724
before_install:
18-
# To enable semantic-release, uncomment the next 4 lines
19-
# - sudo apt-get update
20-
# - sudo apt-get install python
21-
# - nvm install 12
22-
# - npm install -g [email protected]
23-
#- '[ "${TRAVIS_PULL_REQUEST}" == "false" ] && openssl aes-256-cbc -K $my_key -iv $my_iv -in myservice.env.enc -out myservice.env -d || true'
25+
- sudo apt-get update
26+
- pyenv global 3.8
27+
28+
install:
29+
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.49.0
30+
- curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
2431

2532
script:
26-
- go build ./...
27-
- go test ./...
28-
- ./test-integration.sh
29-
30-
# To enable semantic-release, uncomment these sections.
31-
# before_deploy:
32-
# - pip install --user bump2version
33-
# - npm install @semantic-release/changelog
34-
# - npm install @semantic-release/exec
35-
# - npm install @semantic-release/git
36-
# - npm install @semantic-release/github
37-
#
38-
# deploy:
39-
# - provider: script
40-
# script: npx semantic-release
41-
# skip_cleanup: true
42-
# on:
43-
# branch: master
33+
- make travis-ci

Makefile

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,30 @@
1-
# Makefile to build go-sdk-template
1+
# Makefile to build the project
2+
GO=go
3+
LINT=golangci-lint
4+
GOSEC=gosec
25

3-
all: build unittest lint tidy
6+
COVERAGE = -coverprofile=coverage.txt -covermode=atomic
47

5-
travis-ci: build alltest lint tidy
8+
all: tidy test lint scan-gosec
9+
travis-ci: test-cov lint scan-gosec tidy
610

7-
build:
8-
go build ./...
11+
test:
12+
${GO} test `${GO} list ./...`
913

10-
unittest:
11-
go test `go list ./... | grep -v samples`
14+
test-cov:
15+
${GO} test `${GO} list ./...` ${COVERAGE}
1216

13-
alltest:
14-
go test `go list ./... | grep -v samples` -v -tags=integration
17+
test-int:
18+
${GO} test `${GO} list ./...` -tags=integration
19+
20+
test-int-cov:
21+
${GO} test `${GO} list ./...` -tags=integration ${COVERAGE}
1522

1623
lint:
17-
golangci-lint run
24+
${LINT} run
25+
26+
scan-gosec:
27+
${GOSEC} -conf gosec.json -exclude-dir=example/v1 -exclude-dir=example/v2 ./...
1828

1929
tidy:
20-
go mod tidy
30+
${GO} mod tidy

README.md

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
[![Build Status](https://travis-ci.com/IBM/code-engine-go-sdk.svg?branch=main)](https://travis-ci.com/IBM/code-engine-go-sdk)
2-
<!--
32
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
4-
-->
53

6-
# IBM Cloud Code Engine Go SDK 0.1.0
4+
# IBM Cloud Code Engine Go SDK 2.0.3
75
Go client library to interact with the [Code Engine API](https://cloud.ibm.com/apidocs/codeengine).
86

9-
Disclaimer: this SDK is being released initially as a **pre-release** version.
10-
Changes might occur which impact applications that use this SDK.
11-
127
## Table of Contents
138
<!--
149
The TOC below is generated using the `markdown-toc` node package.
@@ -43,18 +38,19 @@ The IBM Cloud Code Engine Go SDK allows developers to programmatically interact
4338

4439
Service Name | Package name
4540
--- | ---
46-
[Code Engine](https://cloud.ibm.com/apidocs/codeengine) | ibmcloudcodeenginev1
41+
[Code Engine](https://cloud.ibm.com/apidocs/codeengine/codeengine-v2.0.0) | codeenginev2
42+
[Code Engine](https://cloud.ibm.com/apidocs/codeengine/codeengine-v1.0.0) | ibmcloudcodeenginev1
4743

4844
## Prerequisites
4945

5046
[ibm-cloud-onboarding]: https://cloud.ibm.com/registration
5147

5248
* An [IBM Cloud][ibm-cloud-onboarding] account.
5349
* An IAM API key to allow the SDK to access your account. Create one [here](https://cloud.ibm.com/iam/apikeys).
54-
* Go version 1.12 or above.
50+
* Go version 1.18 or above.
5551

5652
## Installation
57-
The current version of this SDK: 0.1.0
53+
The current version of this SDK: 2.0.3
5854

5955
There are a few different ways to download and install the Code Engine Go SDK project for use by your
6056
Go application:
@@ -73,7 +69,7 @@ Go application, like this:
7369

7470
```go
7571
import (
76-
"github.com/IBM/code-engine-go-sdk/ibmcloudcodeenginev1"
72+
"github.com/IBM/code-engine-go-sdk/codeenginev2"
7773
)
7874
```
7975

@@ -87,7 +83,7 @@ to your `Gopkg.toml` file. Here is an example:
8783
```
8884
[[constraint]]
8985
name = "github.com/IBM/code-engine-go-sdk"
90-
version = "0.1.0"
86+
version = "2.0.3"
9187
9288
```
9389

0 commit comments

Comments
 (0)