Skip to content

Commit

Permalink
Problem: no CI configuration
Browse files Browse the repository at this point in the history
Solution: add Travis CI configuration

Refs gosh-lang#15.
  • Loading branch information
AlekSi committed Sep 29, 2018
1 parent e4188c7 commit 692533d
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage:
range: "75...85"
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
dist: trusty
language: go

go:
- 1.11.x
- master

env:
- GO111MODULE=off
- GO111MODULE=on

go_import_path: gosh-lang.org/gosh

install:
- make init

script:
- make test

# golangci-lint does not work with modules yet
# https://github.com/golangci/golangci-lint/issues/178
- if [ "$GO111MODULE" = "on" ]; then
go mod vendor -v;
fi
- env GO111MODULE=off make check;

after_success:
- bash <(curl -s https://codecov.io/bash) -f cover.out -X fix -e GO111MODULE
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
all: test

init:
go get -u golang.org/x/tools/cmd/stringer \
github.com/dvyukov/go-fuzz/... \
github.com/golangci/golangci-lint/cmd/golangci-lint
go get -u -v golang.org/x/tools/cmd/stringer \
github.com/dvyukov/go-fuzz/go-fuzz-build \
github.com/dvyukov/go-fuzz/go-fuzz \
github.com/golangci/golangci-lint/cmd/golangci-lint

go test -i -v ./...
go get -t -v ./...

install:
go generate ./...
go install -v ./...
go test -i -v ./...

test: install
go build -v -tags gofuzz ./...
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Gosh

[![Travis CI Build Status](https://travis-ci.org/gosh-lang/gosh.svg)](https://travis-ci.org/gosh-lang/gosh)

Gosh is an interpreted language for Go ecosystem written in Go.

It is in super-early pre-alpha stage. It is also an experiment in community building.
Expand Down

0 comments on commit 692533d

Please sign in to comment.