.travis.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. dist: trusty
  2. language: go
  3. services:
  4. - docker
  5. addons:
  6. apt:
  7. packages:
  8. - libxml2-dev
  9. - libcunit1-dev
  10. go:
  11. - 1.8
  12. - 1.9
  13. go_import_path: gopkg.in/src-d/hercules.v3
  14. before_install:
  15. - wget http://mirrors.kernel.org/ubuntu/pool/main/m/make-dfsg/make_4.1-9.1_amd64.deb
  16. - dpkg -x make_4.1-9.1_amd64.deb ~ && rm make_4.1-9.1_amd64.deb
  17. - wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py --user && rm get-pip.py
  18. - export PATH=~/.local/bin:~/usr/bin:$PATH
  19. - make --version
  20. - pip3 --version
  21. install:
  22. - make dependencies
  23. - go get -t -v -ldflags "-X gopkg.in/src-d/hercules.v3.GIT_HASH=$(git rev-parse HEAD)" ./...
  24. - pip3 install --user -r requirements.txt tensorflow
  25. - docker run -d --privileged -p 9432:9432 --name bblfshd bblfsh/bblfshd
  26. - docker exec -it bblfshd bblfshctl driver install --all
  27. script:
  28. - go test -v -cpu=1,2 -coverprofile=coverage.txt -covermode=count gopkg.in/src-d/hercules.v3
  29. - $GOPATH/bin/hercules -version
  30. - $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
  31. - $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
  32. after_success:
  33. - bash <(curl -s https://codecov.io/bash)
  34. notifications:
  35. email: false