.travis.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 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 bblfshd bblfsh/bblfshd
  20. - docker exec -it bblfshd bblfshctl driver install --all
  21. - git clone https://github.com/bblfsh/libuast
  22. - cd libuast && cmake -DCMAKE_BUILD_TYPE=Release . && make && ln -s src libuast && cd ..
  23. - export CGO_CFLAGS="-I$(pwd)/libuast -I$(pwd)/libuast/libuast" && export CGO_LDFLAGS="-luast -L$(pwd)/libuast/lib -Wl,-rpath -Wl,$(pwd)/libuast/lib"
  24. script:
  25. - go test -v -cpu=1,2 -coverprofile=coverage.txt -covermode=count gopkg.in/src-d/hercules.v3
  26. - $GOPATH/bin/hercules -files -people -couples https://github.com/src-d/hercules | python3 labours.py -m all -o out --backend Agg --disable-projector
  27. - $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
  28. after_success:
  29. - bash <(curl -s https://codecov.io/bash)
  30. notifications:
  31. email: false