1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- dist: trusty
- git:
- depth: 9999999
- language: go
- services:
- - docker
- addons:
- apt:
- packages:
- - libxml2-dev
- - libcunit1-dev
- go:
- - 1.8
- - 1.9
- go_import_path: gopkg.in/src-d/hercules.v3
- before_install:
- - 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
- - wget http://mirrors.kernel.org/ubuntu/pool/main/m/make-dfsg/make_4.1-9.1_amd64.deb
- - dpkg -x make_4.1-9.1_amd64.deb ~ && rm make_4.1-9.1_amd64.deb
- - wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py --user && rm get-pip.py
- - export PATH=~/.local/bin:~/usr/bin:$PATH
- - make --version
- - 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)" ./...
- - 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
-
- script:
- - go vet ./...
- - go test -v -cpu=1,2 -coverprofile=coverage.txt -covermode=count gopkg.in/src-d/hercules.v3
- - $GOPATH/bin/hercules version
- - $GOPATH/bin/hercules --burndown --couples --quiet --pb https://github.com/src-d/hercules > 1.pb
- - cp 1.pb 2.pb
- - $GOPATH/bin/hercules combine 1.pb 2.pb > 12.pb
- - ($GOPATH/bin/hercules generate-plugin -n MyPlug -o myplug && cd myplug && make)
- - (cd contrib/_plugin_example && make)
- - $GOPATH/bin/hercules --burndown --burndown-files --burndown-people --couples --quiet https://github.com/src-d/hercules | python3 labours.py -m all -o out --backend Agg --disable-projector
- - $GOPATH/bin/hercules --burndown --burndown-files --burndown-people --couples --quiet --pb https://github.com/src-d/hercules | python3 labours.py -f pb -m all -o out --backend Agg --disable-projector
- after_success:
- - bash <(curl -s https://codecov.io/bash)
- notifications:
- email: false
|