Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #38 from kintone/v0.9.2
Browse files Browse the repository at this point in the history
v0.9.2
  • Loading branch information
shota-fujiwara authored May 14, 2018
2 parents abe839c + 4746ac4 commit 546f999
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor
34 changes: 25 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,38 @@ go:
- 1.9.3
env: "PATH=/home/travis/gopath/bin:$PATH"
before_install:
- go get github.com/kintone/go-kintone
- go get github.com/howeyc/gopass
- go get golang.org/x/text/encoding
- go get github.com/jessevdk/go-flags
- go get github.com/mitchellh/gox # get gox lib for building cross platform
- go get github.com/mattn/gom
script:

script:
- go vet -x ./...
- gox -osarch="linux/amd64" -output build/linux-x64/cli-kintone
# Install dependencies via gom
- $HOME/gopath/bin/gom -production install

# Build linux/amd64 archive
- export GOOS="linux"
- export GOARCH="amd64"
- gom build -v -tags "forceposix" -o build/linux-x64/cli-kintone
- zip linux-x64.zip build/linux-x64/cli-kintone
- gox -osarch="darwin/amd64" -output build/macos-x64/cli-kintone

# Build darwin/amd64 archive
- export GOOS="darwin"
- export GOARCH="amd64"
- gom build -v -tags "forceposix" -o build/macos-x64/cli-kintone
- zip macos-x64.zip build/macos-x64/cli-kintone
- gox -osarch="windows/amd64" -tags "forceposix" -output build/windows-x64/cli-kintone

# Build windows/amd64 archive
- export GOOS="windows"
- export GOARCH="amd64"
- gom build -v -tags "forceposix" -o build/windows-x64/cli-kintone.exe
- zip windows-x64.zip build/windows-x64/cli-kintone.exe
- gox -osarch="windows/386" -tags "forceposix" -output build/windows/cli-kintone

# Build windows/386 archive
- export GOOS="windows"
- export GOARCH="386"
- gom build -v -tags "forceposix" -o build/windows/cli-kintone.exe
- zip windows.zip build/windows/cli-kintone.exe

deploy:
provider: releases
api_key:
Expand Down
14 changes: 14 additions & 0 deletions Gomfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
group :production do
gom 'golang.org/x/crypto', :commit => '613d6eafa307c6881a737a3c35c0e312e8d3a8c5'
gom 'golang.org/x/text', :commit => '7922cc490dd5a7dbaa7fd5d6196b49db59ac042f'
gom 'github.com/kintone/go-kintone', :tag => 'v0.1.1'
gom 'github.com/howeyc/gopass', :commit => 'bf9dde6d0d2c004a008c27aaee91170c786f6db8'
gom 'github.com/jessevdk/go-flags', :tag => 'v1.4.0'
end
group :development do
gom -u 'golang.org/x/crypto'
gom -u 'golang.org/x/text'
gom -u 'github.com/kintone/go-kintone'
gom -u 'github.com/howeyc/gopass'
gom -u 'github.com/jessevdk/go-flags'
end
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,32 @@ cli-kintone is a command line utility for exporting and importing kintone App da

## Version

0.9.1
0.9.2

## How to Build

### Requirement

- Go 1.9.3 or later
- Go 1.9.3
- Git and Mercurial to be able to clone the packages

Getting the source code

$ export GOPATH=/path/to/your/Go/project/folder
$ cd ${GOPATH}/src
$ git clone https://github.com/kintone/cli-kintone.git

Install dependencies

$ go get github.com/kintone/go-kintone
$ go get github.com/howeyc/gopass
$ go get golang.org/x/text/encoding
$ go get github.com/jessevdk/go-flags
$ export GOPATH=/path/to/your/Go/project/folder
$ go get github.com/mattn/gom
$ sudo ln -s $GOPATH/bin/gom /usr/local/bin/gom
$ gom -production install

build

$ cd ${GOPATH}/src/cli-kintone
$ go build
$ gom build

## Downloads

Expand All @@ -42,7 +43,7 @@ These binaries are available for download.
https://github.com/kintone/cli-kintone/releases

## Usage
```
```text
Usage:
cli-kintone [OPTIONS]
Expand Down

0 comments on commit 546f999

Please sign in to comment.