Vadim Markovtsev 7 gadi atpakaļ
vecāks
revīzija
9612f22fdd
2 mainītis faili ar 7 papildinājumiem un 8 dzēšanām
  1. 7 3
      .travis.yml
  2. 0 5
      Makefile

+ 7 - 3
.travis.yml

@@ -10,9 +10,12 @@ services:
 
 addons:
   apt:
+    sources:
+    - ubuntu-toolchain-r-test
     packages:
     - libxml2-dev
-    - libcunit1-dev
+    - gcc-6
+    - g++-6
 
 go:
   - 1.8
@@ -21,6 +24,8 @@ go:
 go_import_path: gopkg.in/src-d/hercules.v3
 
 before_install:
+  - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
+  - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 90
   - wget -O protoc.zip https://github.com/google/protobuf/releases/download/v3.5.0/protoc-3.5.0-linux-x86_64.zip
   - unzip -d ~/.local protoc.zip && rm protoc.zip
   - go get -v github.com/gogo/protobuf/protoc-gen-gogo
@@ -32,9 +37,8 @@ before_install:
   - pip3 --version
 
 install:
-  - make dependencies
   - git clone --depth 1 https://github.com/src-d/go-git $GOPATH/src/gopkg.in/src-d/go-git.v4
-  - go get -t -v -ldflags "-X gopkg.in/src-d/hercules.v3.GIT_HASH=$(git rev-parse HEAD)" ./...
+  - make
   - pip3 install --user -r requirements.txt tensorflow
   - docker run -d --privileged -p 9432:9432 --name bblfshd bblfsh/bblfshd
   - docker exec -it bblfshd bblfshctl driver install --all

+ 0 - 5
Makefile

@@ -32,15 +32,10 @@ pb/pb_pb2.py: pb/pb.proto
 cmd/hercules/plugin_template_source.go: cmd/hercules/plugin.template
 	cd cmd/hercules && go generate
 
-ifneq ($(OS),Windows_NT)
 ${GOPATH}/src/gopkg.in/bblfsh/client-go.v2:
 	go get -d -v gopkg.in/bblfsh/client-go.v2/... && \
 	cd ${GOPATH}/src/gopkg.in/bblfsh/client-go.v2 && \
 	make dependencies
-else
-${GOPATH}/src/gopkg.in/bblfsh/client-go.v2:
-	echo Custom actions are needed, refer to https://github.com/bblfsh/client-go/blob/master/WINDOWS.md
-endif
 
 ${GOPATH}/bin/hercules${EXE}: *.go cmd/hercules/*.go rbtree/*.go yaml/*.go toposort/*.go pb/*.go ${GOPATH}/src/gopkg.in/bblfsh/client-go.v2 pb/pb.pb.go pb/pb_pb2.py cmd/hercules/plugin_template_source.go
 	go get -ldflags "-X gopkg.in/src-d/hercules.v3.BinaryGitHash=$(shell git rev-parse HEAD)" gopkg.in/src-d/hercules.v3/cmd/hercules