Skip to content

Dep install refactoring #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,26 @@ language: go
go:
- 1.11.x

env:
- DEP_VERSION="0.5.0"

# Anything in before_script that returns a nonzero exit code will flunk the
# build and immediately stop. It's sorta like having set -e enabled in bash.
# Make sure golangci-lint is vendored.
before_install:
- go get -t -v ./...
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.10.2
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
# Download the binary to bin folder in $GOPATH
- curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
# Make the binary executable
- chmod +x $GOPATH/bin/dep

script:
- cd $GOPATH/src/github.com/arduino/arduino-cli
install:
# Check the dependency, -skip-lock may be useful because the version are not fixed but depends
# from the branch master of the libraries so they change very often
- dep check -skip-vendor
- dep ensure

script:
# Check if the code is formatted
- $(exit $(go fmt ./... | wc -l))
# Run linter
Expand All @@ -24,3 +33,7 @@ script:

after_success:
- bash <(curl -s https://codecov.io/bash)

cache:
directories:
- $GOPATH/pkg/dep