Skip to content

Commit 38ae0e0

Browse files
committed
Migrated to go mod
1 parent 2c94d6d commit 38ae0e0

File tree

6 files changed

+21
-68
lines changed

6 files changed

+21
-68
lines changed

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,19 @@ sudo: required
22
language: go
33

44
go:
5-
- 1.9.x
5+
- 1.11.x
66

77
services:
88
- docker
99

1010
script:
11+
- export GO111MODULE="on"
1112
- go test -race -v github.com/seleniumkit/sctl/cmd -coverprofile=coverage.txt -covermode=atomic -coverpkg github.com/seleniumkit/sctl/cmd
1213
- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X github.com/seleniumkit/sctl/cmd.buildStamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` -X github.com/seleniumkit/sctl/cmd.gitRevision=`git describe --tags || git rev-parse HEAD`"
1314
- gox -os "linux darwin" -arch "amd64" -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" -ldflags "-X main.buildStamp=`date -u '+%Y-%m-%d_%I:%M:%S%p'` -X main.gitRevision=`git describe --tags || git rev-parse HEAD`"
1415

15-
before_install:
16-
- go get -u github.com/golang/dep/cmd/dep
17-
1816
install:
1917
- go get -u github.com/mitchellh/gox # cross compile
20-
- dep ensure
2118

2219
deploy:
2320
- provider: releases

Gopkg.lock

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

Gopkg.toml

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

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
This repository contains source code for simple Selenium quota management binary.
33

44
## Building
5-
We use [dep](https://github.com/golang/dep) for dependencies management so ensure it's installed before proceeding with next steps. To build the code:
5+
To build the code:
66

7-
1. Checkout this source tree: ```$ git clone https://github.com/seleniumkit/sctl.git```
8-
2. Download dependencies: ```$ dep ensure```
7+
1. Ensure you have [Golang](http://golang.org/) 1.11 and above.
8+
2. Checkout this source tree: ```$ git clone https://github.com/seleniumkit/sctl.git```
99
3. Build as usually: ```$ go build```
1010

1111
## Running

go.mod

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module github.com/seleniumkit/sctl
2+
3+
require (
4+
github.com/aandryashin/matchers v0.0.0-20161126170413-435295ea180e
5+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
6+
github.com/spf13/cobra v0.0.0-20161014222036-856b96dcb49d
7+
github.com/spf13/pflag v0.0.0-20161011120826-bf8481a6aebc // indirect
8+
)

go.sum

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
github.com/aandryashin/matchers v0.0.0-20161126170413-435295ea180e h1:ogUKYFNcdYUIBSLibE4+EjbTJazoHr5JsWWx21Lpn8c=
2+
github.com/aandryashin/matchers v0.0.0-20161126170413-435295ea180e/go.mod h1:cbmYNkm9xeQlNoWEPtOUcvNok2gSD7ErMnYkRW+eHi8=
3+
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
4+
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
5+
github.com/spf13/cobra v0.0.0-20161014222036-856b96dcb49d h1:3DcijoKnes3z4/+YyF/0relm9aJJ8ypfyHHz0OWz1Z8=
6+
github.com/spf13/cobra v0.0.0-20161014222036-856b96dcb49d/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
7+
github.com/spf13/pflag v0.0.0-20161011120826-bf8481a6aebc h1:WqY+0ieFwdU1nXJJPuhI6mqTo5mIUaPNM+xFvFK9RcA=
8+
github.com/spf13/pflag v0.0.0-20161011120826-bf8481a6aebc/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=

0 commit comments

Comments
 (0)