Skip to content

Commit 3d0e073

Browse files
authored
Merge pull request #206 from vmarkovtsev/master
v8
2 parents 70d5da1 + d2cb9f0 commit 3d0e073

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+151
-151
lines changed

.appveyor.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "{build}"
22
platform: x64
33
image: Visual Studio 2017
44

5-
clone_folder: c:\gopath\src\gopkg.in\src-d\hercules.v7
5+
clone_folder: c:\gopath\src\gopkg.in\src-d\hercules.v8
66

77
environment:
88
GOPATH: c:\gopath
@@ -16,14 +16,14 @@ build_script:
1616
- go version
1717
- set PATH=C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin;C:\msys64\usr\bin;C:\msys64\mingw64\bin;%GOPATH%\bin;%PATH%
1818
- set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
19-
- cd %GOPATH%\src\gopkg.in\src-d\hercules.v7
19+
- cd %GOPATH%\src\gopkg.in\src-d\hercules.v8
2020
- go get -v github.com/golang/dep/cmd/dep
2121
- make
22-
- 7z a c:\gopath\src\gopkg.in\src-d\hercules.v7\hercules.win64.zip %GOPATH%\bin\hercules.exe
22+
- 7z a c:\gopath\src\gopkg.in\src-d\hercules.v8\hercules.win64.zip %GOPATH%\bin\hercules.exe
2323

2424
test_script:
25-
- go get -v -t -d gopkg.in/src-d/hercules.v7/...
26-
- go test -v -tags disable_babelfish gopkg.in/src-d/hercules.v7/...
25+
- go get -v -t -d gopkg.in/src-d/hercules.v8/...
26+
- go test -v -tags disable_babelfish gopkg.in/src-d/hercules.v8/...
2727

2828
artifacts:
2929
- name: hercules.win64.zip

.travis.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ git:
55
depth: 9999999
66

77
language: go
8-
go_import_path: gopkg.in/src-d/hercules.v7
8+
go_import_path: gopkg.in/src-d/hercules.v8
99
go:
1010
- 1.10.x
1111
- 1.11.x
@@ -19,10 +19,10 @@ cache:
1919
- $HOME/gopath/src
2020
before_cache:
2121
- cd $HOME/gopath
22-
- mv $HOME/gopath/src/gopkg.in/src-d/hercules.v7/vendor $HOME/gopath/src/gopkg.in/src-d/.vendor
23-
- rm -rf $HOME/gopath/src/gopkg.in/src-d/hercules.v7
24-
- mkdir $HOME/gopath/src/gopkg.in/src-d/hercules.v7
25-
- mv $HOME/gopath/src/gopkg.in/src-d/.vendor $HOME/gopath/src/gopkg.in/src-d/hercules.v7/vendor
22+
- mv $HOME/gopath/src/gopkg.in/src-d/hercules.v8/vendor $HOME/gopath/src/gopkg.in/src-d/.vendor
23+
- rm -rf $HOME/gopath/src/gopkg.in/src-d/hercules.v8
24+
- mkdir $HOME/gopath/src/gopkg.in/src-d/hercules.v8
25+
- mv $HOME/gopath/src/gopkg.in/src-d/.vendor $HOME/gopath/src/gopkg.in/src-d/hercules.v8/vendor
2626

2727
matrix:
2828
fast_finish: true
@@ -64,7 +64,7 @@ script:
6464
- go vet -tags tensorflow ./...
6565
- golint -set_exit_status $(go list ./... | grep -v /vendor/)
6666
- flake8
67-
- go test -coverpkg=all -v -coverprofile=coverage.txt -covermode=count gopkg.in/src-d/hercules.v7/... && sed -i '/cmd\/hercules\|core.go/d' coverage.txt
67+
- go test -coverpkg=all -v -coverprofile=coverage.txt -covermode=count gopkg.in/src-d/hercules.v8/... && sed -i '/cmd\/hercules\|core.go/d' coverage.txt
6868
- $GOPATH/bin/hercules version
6969
- $GOPATH/bin/hercules --burndown --couples --devs --quiet --pb https://github.com/src-d/hercules > 1.pb
7070
- cp 1.pb 2.pb
@@ -90,7 +90,7 @@ jobs:
9090
os: osx
9191
osx_image: xcode9.3
9292
go: 1.11.x
93-
go_import_path: gopkg.in/src-d/hercules.v7
93+
go_import_path: gopkg.in/src-d/hercules.v8
9494
before_install:
9595
- wget -O protoc.zip https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-osx-x86_64.zip
9696
- unzip -d ~/.local protoc.zip && rm protoc.zip
@@ -112,7 +112,7 @@ jobs:
112112
- stage: deploy
113113
os: linux
114114
go: 1.11.x
115-
go_import_path: gopkg.in/src-d/hercules.v7
115+
go_import_path: gopkg.in/src-d/hercules.v8
116116
before_install:
117117
- wget -O protoc.zip https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-x86_64.zip
118118
- unzip -d ~/.local protoc.zip && rm protoc.zip

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM ubuntu:18.04
33
ENV GOPATH /root
44
ENV PROTOBUF_VERSION 3.5.1
55

6-
COPY . /root/src/gopkg.in/src-d/hercules.v7
6+
COPY . /root/src/gopkg.in/src-d/hercules.v8
77
RUN apt-get update && \
88
apt-get install -y --no-install-suggests --no-install-recommends software-properties-common && \
99
add-apt-repository -y ppa:gophers/archive && \
@@ -14,13 +14,13 @@ RUN apt-get update && \
1414
locale-gen en_US.UTF-8 && \
1515
export PATH=/usr/lib/go-1.10/bin:/root/bin:$PATH && \
1616
go get -v github.com/golang/dep/cmd/dep && \
17-
cd /root/src/gopkg.in/src-d/hercules.v7 && \
17+
cd /root/src/gopkg.in/src-d/hercules.v8 && \
1818
export CGO_CXXFLAGS=-std=c++14 && \
1919
curl -L "https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-$(go env GOOS)-x86_64-1.7.0.tar.gz" | tar -C /usr/local -xz && \
2020
make && \
2121
rm /usr/local/bin/protoc && rm /usr/local/readme.txt && rm -rf /usr/local/include/google && \
2222
cp /root/bin/hercules /usr/local/bin && \
23-
cp -r /root/src/gopkg.in/src-d/hercules.v7/*.py /root/src/gopkg.in/src-d/hercules.v7/internal /usr/local/bin && \
23+
cp -r /root/src/gopkg.in/src-d/hercules.v8/*.py /root/src/gopkg.in/src-d/hercules.v8/internal /usr/local/bin && \
2424
sed -i 's/parser.add_argument("--backend",/parser.add_argument("--backend", default="Agg",/' /usr/local/bin/labours.py && \
2525
echo '#!/bin/bash\n\
2626
\n\
@@ -30,7 +30,7 @@ echo\n\' > /browser && \
3030
chmod +x /browser && \
3131
curl https://bootstrap.pypa.io/get-pip.py | python3 - pip==18.1 && \
3232
pip3 install --no-cache-dir --no-build-isolation cython && \
33-
pip3 install --no-cache-dir --no-build-isolation -r /root/src/gopkg.in/src-d/hercules.v7/requirements.txt https://github.com/mind/wheels/releases/download/tf1.7-cpu/tensorflow-1.7.0-cp36-cp36m-linux_x86_64.whl && \
33+
pip3 install --no-cache-dir --no-build-isolation -r /root/src/gopkg.in/src-d/hercules.v8/requirements.txt https://github.com/mind/wheels/releases/download/tf1.7-cpu/tensorflow-1.7.0-cp36-cp36m-linux_x86_64.whl && \
3434
rm -rf /root/* && \
3535
apt-get remove -y software-properties-common golang-1.10-go python3-dev libyaml-dev libxml2-dev curl git make unzip g++ && \
3636
apt-get remove -y *-doc *-man && \

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ TAGS ?=
1010
all: ${GOPATH}/bin/hercules${EXE}
1111

1212
test: all
13-
go test gopkg.in/src-d/hercules.v7
13+
go test gopkg.in/src-d/hercules.v8
1414

1515
${GOPATH}/bin/protoc-gen-gogo${EXE}:
1616
go get -v github.com/gogo/protobuf/protoc-gen-gogo
@@ -34,4 +34,4 @@ vendor:
3434
dep ensure -v
3535

3636
${GOPATH}/bin/hercules${EXE}: vendor *.go */*.go */*/*.go */*/*/*.go internal/pb/pb.pb.go internal/pb/pb_pb2.py cmd/hercules/plugin_template_source.go
37-
go get -tags "$(TAGS)" -ldflags "-X gopkg.in/src-d/hercules.v7.BinaryGitHash=$(shell git rev-parse HEAD)" gopkg.in/src-d/hercules.v7/cmd/hercules
37+
go get -tags "$(TAGS)" -ldflags "-X gopkg.in/src-d/hercules.v8.BinaryGitHash=$(shell git rev-parse HEAD)" gopkg.in/src-d/hercules.v8/cmd/hercules

cmd/hercules/combine.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
"github.com/gogo/protobuf/proto"
1515
"github.com/spf13/cobra"
1616
progress "gopkg.in/cheggaaa/pb.v1"
17-
"gopkg.in/src-d/hercules.v7"
18-
"gopkg.in/src-d/hercules.v7/internal/pb"
17+
"gopkg.in/src-d/hercules.v8"
18+
"gopkg.in/src-d/hercules.v8/internal/pb"
1919
)
2020

2121
// combineCmd represents the combine command

cmd/hercules/plugin.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424

2525
"github.com/gogo/protobuf/proto"
2626
"gopkg.in/src-d/go-git.v4"
27-
"gopkg.in/src-d/hercules.v7"
27+
"gopkg.in/src-d/hercules.v8"
2828
)
2929

3030
// {{.name}} contains the intermediate state which is mutated by Consume(). It should implement

cmd/hercules/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ import (
3434
"gopkg.in/src-d/go-git.v4/storage"
3535
"gopkg.in/src-d/go-git.v4/storage/filesystem"
3636
"gopkg.in/src-d/go-git.v4/storage/memory"
37-
"gopkg.in/src-d/hercules.v7"
38-
"gopkg.in/src-d/hercules.v7/internal/pb"
37+
"gopkg.in/src-d/hercules.v8"
38+
"gopkg.in/src-d/hercules.v8/internal/pb"
3939
)
4040

4141
// oneLineWriter splits the output data by lines and outputs one on top of another using '\r'.

contrib/_plugin_example/churn_analysis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"gopkg.in/src-d/go-git.v4/plumbing"
1414
"gopkg.in/src-d/go-git.v4/plumbing/object"
1515
"gopkg.in/src-d/go-git.v4/utils/merkletrie"
16-
"gopkg.in/src-d/hercules.v7"
16+
"gopkg.in/src-d/hercules.v8"
1717
)
1818

1919
// ChurnAnalysis contains the intermediate state which is mutated by Consume(). It should implement

core.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import (
44
"github.com/spf13/pflag"
55
"gopkg.in/src-d/go-git.v4"
66
"gopkg.in/src-d/go-git.v4/plumbing/object"
7-
"gopkg.in/src-d/hercules.v7/internal/core"
8-
"gopkg.in/src-d/hercules.v7/internal/plumbing"
9-
"gopkg.in/src-d/hercules.v7/internal/plumbing/identity"
10-
"gopkg.in/src-d/hercules.v7/internal/plumbing/uast"
11-
"gopkg.in/src-d/hercules.v7/internal/yaml"
12-
"gopkg.in/src-d/hercules.v7/leaves"
7+
"gopkg.in/src-d/hercules.v8/internal/core"
8+
"gopkg.in/src-d/hercules.v8/internal/plumbing"
9+
"gopkg.in/src-d/hercules.v8/internal/plumbing/identity"
10+
"gopkg.in/src-d/hercules.v8/internal/plumbing/uast"
11+
"gopkg.in/src-d/hercules.v8/internal/yaml"
12+
"gopkg.in/src-d/hercules.v8/leaves"
1313
)
1414

1515
// ConfigurationOptionType represents the possible types of a ConfigurationOption's value.

internal/burndown/file.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"log"
66
"math"
77

8-
"gopkg.in/src-d/hercules.v7/internal"
9-
"gopkg.in/src-d/hercules.v7/internal/rbtree"
8+
"gopkg.in/src-d/hercules.v8/internal"
9+
"gopkg.in/src-d/hercules.v8/internal/rbtree"
1010
)
1111

1212
// Updater is the function which is called back on File.Update().

0 commit comments

Comments
 (0)