.travis.yml 2.1 KB

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