Skip to content

Commit 18f9262

Browse files
committed
use circleci; drop travis
1 parent 95bcf91 commit 18f9262

3 files changed

Lines changed: 85 additions & 27 deletions

File tree

.circleci/config.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
version: 2.1
2+
executors:
3+
base:
4+
docker:
5+
- image: circleci/golang:1.11
6+
working_directory: /go/src/github.com/spatialcurrent/go-simple-serializer
7+
jobs:
8+
pre_deps_golang:
9+
executor: base
10+
steps:
11+
- checkout
12+
- run: go get -d ./...
13+
- run: sudo chown -R circleci /go/src
14+
- save_cache:
15+
key: v1-go-src-{{ .Branch }}-{{ .Revision }}
16+
paths:
17+
- /go/src
18+
test:
19+
executor: base
20+
steps:
21+
- run: sudo chown -R circleci /go/src
22+
- restore_cache:
23+
keys:
24+
- v1-go-src-{{ .Branch }}-{{ .Revision }}
25+
- run:
26+
name: Install gometalinter
27+
command: |
28+
go get -u github.com/alecthomas/gometalinter
29+
gometalinter --install
30+
- run:
31+
name: Test
32+
command: bash scripts/test.sh
33+
build_cli:
34+
executor: base
35+
steps:
36+
- run: sudo chown -R circleci /go/src
37+
- restore_cache:
38+
keys:
39+
- v1-go-src-{{ .Branch }}-{{ .Revision }}
40+
- run: bash scripts/build_cli.sh
41+
- store_artifacts:
42+
path: bin
43+
destination: /
44+
build_javascript:
45+
executor: base
46+
steps:
47+
- run: sudo chown -R circleci /go/src
48+
- restore_cache:
49+
keys:
50+
- v1-go-src-{{ .Branch }}-{{ .Revision }}
51+
- run:
52+
name: Install GopherJS
53+
command: go get -u github.com/gopherjs/gopherjs
54+
- run: bash scripts/build_javascript.sh
55+
- store_artifacts:
56+
path: bin
57+
destination: /
58+
build_so:
59+
executor: base
60+
steps:
61+
- run: sudo chown -R circleci /go/src
62+
- restore_cache:
63+
keys:
64+
- v1-go-src-{{ .Branch }}-{{ .Revision }}
65+
- run: bash scripts/build_so.sh
66+
- store_artifacts:
67+
path: bin
68+
destination: /
69+
workflows:
70+
main:
71+
jobs:
72+
- pre_deps_golang
73+
- test:
74+
requires:
75+
- pre_deps_golang
76+
- build_cli:
77+
requires:
78+
- pre_deps_golang
79+
- build_javascript:
80+
requires:
81+
- pre_deps_golang
82+
- build_so:
83+
requires:
84+
- pre_deps_golang

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://travis-ci.org/spatialcurrent/go-simple-serializer.svg)](https://travis-ci.org/spatialcurrent/go-simple-serializer) [![Go Report Card](https://goreportcard.com/badge/spatialcurrent/go-simple-serializer)](https://goreportcard.com/report/spatialcurrent/go-simple-serializer) [![GoDoc](https://godoc.org/github.com/spatialcurrent/go-simple-serializer?status.svg)](https://godoc.org/github.com/spatialcurrent/go-simple-serializer) [![license](http://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://github.com/spatialcurrent/go-simple-serializer/blob/master/LICENSE)
1+
[![CircleCI](https://circleci.com/gh/spatialcurrent/go-simple-serializer/tree/master.svg?style=svg)](https://circleci.com/gh/spatialcurrent/go-simple-serializer/tree/master) [![Go Report Card](https://goreportcard.com/badge/spatialcurrent/go-simple-serializer)](https://goreportcard.com/report/spatialcurrent/go-simple-serializer) [![GoDoc](https://godoc.org/github.com/spatialcurrent/go-simple-serializer?status.svg)](https://godoc.org/github.com/spatialcurrent/go-simple-serializer) [![license](http://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://github.com/spatialcurrent/go-simple-serializer/blob/master/LICENSE)
22

33
# go-simple-serializer
44

0 commit comments

Comments
 (0)