forked from mushorg/go-dpi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
general: project structure improvements (mushorg#23)
* general: project structure improvements * Only run tests inside docker. (closes mushorg#14) * Add contents to the README file. (closes mushorg#17) * Add a LPI mapping for SMTP. Signed-off-by: Nikos Filippakis <aesmade@gmail.com>
- Loading branch information
Showing
5 changed files
with
106 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,12 @@ | ||
language: go | ||
dist: trusty | ||
sudo: required | ||
services: | ||
- docker | ||
go_import_path: github.com/mushorg/go-dpi | ||
before_install: | ||
- echo "deb http://packages.wand.net.nz trusty main" | sudo tee -a /etc/apt/sources.list | ||
- sudo apt-get update | ||
- git clone --branch 2.0-stable https://github.com/ntop/nDPI/ ~/nDPI | ||
install: | ||
- sudo apt-get -y --force-yes install libpcap-dev libtrace4 libtrace4-dev libprotoident libprotoident-dev | ||
- go get golang.org/x/tools/cmd/cover | ||
- go get github.com/mattn/goveralls | ||
- go get github.com/Masterminds/glide | ||
- glide install | ||
- cd ~/nDPI && ./autogen.sh && ./configure && make && sudo make install && cd - | ||
script: | ||
- sudo docker build -t godpi-example . && sudo docker run godpi-example | ||
- go test . ./classifiers ./wrappers | ||
- $HOME/gopath/bin/goveralls -ignore godpi_example/example_app.go -service=travis-ci | ||
- sudo docker build -t godpi-example . | ||
- > | ||
sudo docker run --entrypoint=/bin/bash | ||
-e TRAVIS | ||
-e TRAVIS_JOB_ID | ||
godpi-example -c 'go get golang.org/x/tools/cmd/cover github.com/mattn/goveralls && | ||
$GOPATH/bin/goveralls -ignore godpi_example/example_app.go -service=travis-ci' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters