Skip to content
Permalink
Browse files

Switch to go mod

Signed-off-by: Vadim Markovtsev <vadim@sourced.tech>
  • Loading branch information...
vmarkovtsev committed Sep 24, 2019
1 parent 33e2df7 commit 2c208a2b9191774f07c9e87c9b4e98355f032d41
Showing 2,294 changed files with 473 additions and 1,025,688 deletions.
@@ -2,16 +2,19 @@ version: "{build}"
platform: x64
image: Visual Studio 2017

clone_folder: c:\gopath\src\github.com\src-d\datasets
clone_folder: c:\datasets
cache:
- C:\Users\appveyor\go

environment:
GOPATH: c:\gopath
GO111MODULE: on
GOBIN: c:\datasets

build_script:
- go get -v github.com/src-d/datasets/PublicGitArchive/pga-create/...
- go get -v github.com/src-d/datasets/PublicGitArchive/pga/...
- 7z a c:\gopath\src\github.com\src-d\datasets\pga-create.windows_amd64.zip %GOPATH%\bin\pga-create.exe
- 7z a c:\gopath\src\github.com\src-d\datasets\pga.windows_amd64.zip %GOPATH%\bin\pga.exe
- cd PublicGitArchive\pga-create && go install && cd ..\..
- cd PublicGitArchive\pga && go install && cd ..\..
- 7z a pga-create.windows_amd64.zip pga-create.exe
- 7z a pga.windows_amd64.zip pga.exe

artifacts:
- name: pga-create.windows_amd64.zip
@@ -1,20 +1,21 @@
dist: trusty
sudo: false
dist: xenial

language: go

go_import_path: github.com/src-d/datasets
go:
- 1.11.x
- 1.12.x
- 1.13.x
cache:
- $HOME/go
env:
- GO111MODULE=on GOBIN=$HOME

before_install:
- go get -v -u golang.org/x/lint/golint
- make dependencies

script:
- go vet ./...
- lintwarns=$(golint ./... | grep src-d/datasets || true)
- find -name go.mod -execdir go vet ./... \;
- lintwarns=$($HOME/golint ./... | grep src-d/datasets || true)
- if [ ! -z $lintwarns ]; then echo $lintwarns; false; fi
- make test-coverage

@@ -25,46 +26,48 @@ jobs:
include:
- stage: deploy
os: osx
go: 1.11.x
go: 1.13.x
after_success:
- gzip -S .darwin_amd64.gz $GOPATH/bin/pga-create
- gzip -S .darwin_amd64.gz $GOPATH/bin/pga
- gzip -S .darwin_amd64.gz pga-create
- gzip -S .darwin_amd64.gz pga
before_install: skip
install:
- go get -v github.com/src-d/datasets/PublicGitArchive/pga-create/...
- go get -v github.com/src-d/datasets/PublicGitArchive/pga/...
- cd PublicGitArchive/pga-create && go install && cd ../..
- cd PublicGitArchive/pga && go install && cd ../..
script: skip
deploy:
provider: releases
api_key:
secure: $GITHUB_TOKEN
file:
- "$GOPATH/bin/pga-create.darwin_amd64.gz"
- "$GOPATH/bin/pga.darwin_amd64.gz"
- "pga-create.darwin_amd64.gz"
- "pga.darwin_amd64.gz"
skip_cleanup: true
on:
tags: true
- stage: deploy
os: linux
go: 1.11.x
go: 1.13.x
before_install: skip
install:
- go get -v github.com/src-d/datasets/PublicGitArchive/pga-create/...
- go get -v github.com/src-d/datasets/PublicGitArchive/pga/...
- cd PublicGitArchive/pga-create && go install && cd ../..
- cd PublicGitArchive/pga && go install && cd ../..
script: skip
after_success:
- gzip -S .linux_amd64.gz $GOPATH/bin/pga-create
- gzip -S .linux_amd64.gz $GOPATH/bin/pga
- gzip -S .linux_amd64.gz pga-create
- gzip -S .linux_amd64.gz pga
deploy:
provider: releases
api_key:
secure: $GITHUB_TOKEN
file:
- "$GOPATH/bin/pga-create.linux_amd64.gz"
- "$GOPATH/bin/pga.linux_amd64.gz"
- "pga-create.linux_amd64.gz"
- "pga.linux_amd64.gz"
skip_cleanup: true
on:
tags: true
after_deploy:
- cd $GOPATH/src/github.com/src-d/datasets/PublicGitArchive/pga-create/
- cd PublicGitArchive/pga-create
- make docker-push-latest-release

notifications:
@@ -3,7 +3,9 @@ module examples
go 1.12

require (
github.com/pkg/errors v0.8.0
gopkg.in/src-d/go-billy-siva.v4 v4.5.1
gopkg.in/src-d/go-billy.v4 v4.2.1
gopkg.in/src-d/go-git.v4 v4.11.0
gopkg.in/src-d/go-siva.v1 v1.5.0 // indirect
)

0 comments on commit 2c208a2

Please sign in to comment.
You can’t perform that action at this time.