.travis.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 -burndown-files -burndown-people -couples -quiet https://github.com/src-d/hercules | python3 labours.py -m all -o out --backend Agg --disable-projector
  38. - $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
  39. - $GOPATH/bin/hercules-generate-plugin -version
  40. - $GOPATH/bin/hercules-generate-plugin -n MyPlug -o myplug && cd myplug && make && cd -
  41. - cd contrib/_plugin_example && make
  42. after_success:
  43. - bash <(curl -s https://codecov.io/bash)
  44. notifications:
  45. email: false