Skip to content

Commit 20fb49a

Browse files
committed
Moving from drone to travis-ci
1 parent 43bcb84 commit 20fb49a

File tree

2 files changed

+25
-23
lines changed

2 files changed

+25
-23
lines changed

Diff for: .drone.yml

-23
This file was deleted.

Diff for: .travis.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
language: go
2+
3+
go:
4+
- 1.11.x
5+
6+
before_install:
7+
- go get -t -v ./...
8+
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.10
9+
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
10+
11+
script:
12+
- cd $GOPATH/src/github.com/arduino/arduino-cli
13+
# Check the dependency, -skip-lock may be useful because the version are not fixed but depends
14+
# from the branch master of the libraries so they change very often
15+
- dep check
16+
# Check if the code is formatted
17+
- $(exit $(go fmt ./... | wc -l))
18+
# Run linter
19+
- golangci-lint run
20+
# Build and test
21+
- go build
22+
- go test -timeout 20m -v -coverprofile=coverage.txt -covermode=atomic ./...
23+
24+
after_success:
25+
- bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)