.travis.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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.v2
  14. before_install:
  15. - wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py --user && rm get-pip.py
  16. - export PATH=$PATH:~/.local/bin
  17. - pip3 install --user -r requirements.txt
  18. - pip3 install --user tensorflow
  19. - docker run -d --privileged -p 9432:9432 --name bblfsh bblfsh/server
  20. - git clone https://github.com/bblfsh/libuast
  21. - cd libuast && cmake -DCMAKE_BUILD_TYPE=Release . && make && ln -s src libuast && cd ..
  22. - export CGO_CFLAGS="-I$(pwd)/libuast -I$(pwd)/libuast/libuast" && export CGO_LDFLAGS="-luast -L$(pwd)/libuast/lib -Wl,-rpath -Wl,$(pwd)/libuast/lib"
  23. script:
  24. - go test -v -cpu=1,2 -coverprofile=coverage.txt -covermode=count gopkg.in/src-d/hercules.v2
  25. - $GOPATH/bin/hercules -files -people -couples https://github.com/src-d/hercules | python3 labours.py -m all -o out --backend Agg --disable-projector
  26. - $GOPATH/bin/hercules -files -people -couples -pb https://github.com/src-d/hercules | python3 labours.py -f pb -m all -o out --backend Agg --disable-projector
  27. after_success:
  28. - bash <(curl -s https://codecov.io/bash)
  29. notifications:
  30. email: false