Skip to content

Commit

Permalink
SDK Update 20221209 162050 - v2.0.3
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Magrian <[email protected]>
Co-authored-by: John Sartore <[email protected]>
  • Loading branch information
3 people authored Dec 9, 2022
1 parent 1191a7b commit 82472ba
Show file tree
Hide file tree
Showing 24 changed files with 31,749 additions and 1,051 deletions.
13 changes: 0 additions & 13 deletions .bumpversion.cfg

This file was deleted.

6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@ swagger.json
openapi-sdkgen

# example binary ignore
example/example
example/example
coverage.txt

package.json
package-lock.json
21 changes: 0 additions & 21 deletions .releaserc

This file was deleted.

42 changes: 16 additions & 26 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
language: go
dist: xenial
go: 1.13.x
dist: focal

go:
- 1.18.x

# Only run on main (still tests PRs)
branches:
only:
- main

cache:
directories:
- $HOME/.cache/go-build
- $HOME/gopath/pkg/mod

notifications:
email: true

Expand All @@ -15,29 +22,12 @@ env:
- GO111MODULE=on

before_install:
# To enable semantic-release, uncomment the next 4 lines
# - sudo apt-get update
# - sudo apt-get install python
# - nvm install 12
# - npm install -g [email protected]
#- '[ "${TRAVIS_PULL_REQUEST}" == "false" ] && openssl aes-256-cbc -K $my_key -iv $my_iv -in myservice.env.enc -out myservice.env -d || true'
- sudo apt-get update
- pyenv global 3.8

install:
- curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.49.0
- curl -sfL https://raw.githubusercontent.com/securego/gosec/master/install.sh | sh -s -- -b $(go env GOPATH)/bin

script:
- go build ./...
- go test ./...
- ./test-integration.sh

# To enable semantic-release, uncomment these sections.
# before_deploy:
# - pip install --user bump2version
# - npm install @semantic-release/changelog
# - npm install @semantic-release/exec
# - npm install @semantic-release/git
# - npm install @semantic-release/github
#
# deploy:
# - provider: script
# script: npx semantic-release
# skip_cleanup: true
# on:
# branch: master
- make travis-ci
32 changes: 21 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
# Makefile to build go-sdk-template
# Makefile to build the project
GO=go
LINT=golangci-lint
GOSEC=gosec

all: build unittest lint tidy
COVERAGE = -coverprofile=coverage.txt -covermode=atomic

travis-ci: build alltest lint tidy
all: tidy test lint scan-gosec
travis-ci: test-cov lint scan-gosec tidy

build:
go build ./...
test:
${GO} test `${GO} list ./...`

unittest:
go test `go list ./... | grep -v samples`
test-cov:
${GO} test `${GO} list ./...` ${COVERAGE}

alltest:
go test `go list ./... | grep -v samples` -v -tags=integration
test-int:
${GO} test `${GO} list ./...` -tags=integration

test-int-cov:
${GO} test `${GO} list ./...` -tags=integration ${COVERAGE}

lint:
golangci-lint run
${LINT} run

scan-gosec:
${GOSEC} -conf gosec.json -exclude-dir=example/v1 -exclude-dir=example/v2 ./...

tidy:
go mod tidy
${GO} mod tidy
18 changes: 7 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
[![Build Status](https://travis-ci.com/IBM/code-engine-go-sdk.svg?branch=main)](https://travis-ci.com/IBM/code-engine-go-sdk)
<!--
[![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)
-->

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

Disclaimer: this SDK is being released initially as a **pre-release** version.
Changes might occur which impact applications that use this SDK.

## Table of Contents
<!--
The TOC below is generated using the `markdown-toc` node package.
Expand Down Expand Up @@ -43,18 +38,19 @@ The IBM Cloud Code Engine Go SDK allows developers to programmatically interact

Service Name | Package name
--- | ---
[Code Engine](https://cloud.ibm.com/apidocs/codeengine) | ibmcloudcodeenginev1
[Code Engine](https://cloud.ibm.com/apidocs/codeengine/codeengine-v2.0.0) | codeenginev2
[Code Engine](https://cloud.ibm.com/apidocs/codeengine/codeengine-v1.0.0) | ibmcloudcodeenginev1

## Prerequisites

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

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

## Installation
The current version of this SDK: 0.1.0
The current version of this SDK: 2.0.3

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

```go
import (
"github.com/IBM/code-engine-go-sdk/ibmcloudcodeenginev1"
"github.com/IBM/code-engine-go-sdk/codeenginev2"
)
```

Expand All @@ -87,7 +83,7 @@ to your `Gopkg.toml` file. Here is an example:
```
[[constraint]]
name = "github.com/IBM/code-engine-go-sdk"
version = "0.1.0"
version = "2.0.3"
```

Expand Down
Loading

0 comments on commit 82472ba

Please sign in to comment.