1234567891011121314151617181920212223242526272829303132333435363738394041 |
- dist: trusty
- language: go
- services:
- - docker
- addons:
- apt:
- packages:
- - libxml2-dev
- - libcunit1-dev
- go:
- - 1.8
- - 1.9
- go_import_path: gopkg.in/src-d/hercules.v3
- before_install:
- - wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py --user && rm get-pip.py
- - export PATH=$PATH:~/.local/bin
- - pip3 install --user -r requirements.txt
- - pip3 install --user tensorflow
- - docker run -d --privileged -p 9432:9432 --name bblfshd bblfsh/bblfshd
- - docker exec -it bblfshd bblfshctl driver install --all
- - git clone https://github.com/bblfsh/libuast
- - cd libuast && cmake -DCMAKE_BUILD_TYPE=Release . && make && ln -s src libuast && cd ..
- - export CGO_CFLAGS="-I$(pwd)/libuast -I$(pwd)/libuast/libuast" && export CGO_LDFLAGS="-luast -L$(pwd)/libuast/lib -Wl,-rpath -Wl,$(pwd)/libuast/lib"
-
- script:
- - go test -v -cpu=1,2 -coverprofile=coverage.txt -covermode=count gopkg.in/src-d/hercules.v3
- - $GOPATH/bin/hercules -files -people -couples https://github.com/src-d/hercules | python3 labours.py -m all -o out --backend Agg --disable-projector
- - $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
- after_success:
- - bash <(curl -s https://codecov.io/bash)
- notifications:
- email: false
|