.travis.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. dist: trusty
  2. git:
  3. depth: 9999999
  4. language: go
  5. services:
  6. - docker
  7. addons:
  8. apt:
  9. packages:
  10. - libxml2-dev
  11. - libcunit1-dev
  12. go:
  13. - 1.8
  14. - 1.9
  15. go_import_path: gopkg.in/src-d/hercules.v3
  16. before_install:
  17. - wget -O protoc.zip https://github.com/google/protobuf/releases/download/v3.5.0/protoc-3.5.0-linux-x86_64.zip
  18. - unzip -d ~/.local protoc.zip && rm protoc.zip
  19. - go get -v github.com/gogo/protobuf/protoc-gen-gogo
  20. - wget http://mirrors.kernel.org/ubuntu/pool/main/m/make-dfsg/make_4.1-9.1_amd64.deb
  21. - dpkg -x make_4.1-9.1_amd64.deb ~ && rm make_4.1-9.1_amd64.deb
  22. - wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py --user && rm get-pip.py
  23. - export PATH=~/.local/bin:~/usr/bin:$PATH
  24. - make --version
  25. - pip3 --version
  26. install:
  27. - make dependencies
  28. - git clone --depth 1 https://github.com/src-d/go-git $GOPATH/src/gopkg.in/src-d/go-git.v4
  29. - go get -t -v -ldflags "-X gopkg.in/src-d/hercules.v3.GIT_HASH=$(git rev-parse HEAD)" ./...
  30. - pip3 install --user -r requirements.txt tensorflow
  31. - docker run -d --privileged -p 9432:9432 --name bblfshd bblfsh/bblfshd
  32. - docker exec -it bblfshd bblfshctl driver install --all
  33. script:
  34. - go vet ./...
  35. - go test -v -cpu=1,2 -coverprofile=coverage.txt -covermode=count gopkg.in/src-d/hercules.v3
  36. - $GOPATH/bin/hercules version
  37. - $GOPATH/bin/hercules --burndown --couples --quiet --pb https://github.com/src-d/hercules > 1.pb
  38. - cp 1.pb 2.pb
  39. - $GOPATH/bin/hercules combine 1.pb 2.pb > 12.pb
  40. - ($GOPATH/bin/hercules generate-plugin -n MyPlug -o myplug && cd myplug && make)
  41. - (cd contrib/_plugin_example && make)
  42. - $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
  43. - $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
  44. after_success:
  45. - bash <(curl -s https://codecov.io/bash)
  46. notifications:
  47. email: false