Commit Graph

16 Commits

Author SHA1 Message Date
Brendan Le Glaunec 212ac2f0d5 Cameradar v4 (#212)
* Refactor of cameradar library

* Old unit tests updated & improved. New unit tests inc

* Update documentation & issue template

* Update dependencies

* Update TravisCI build script to reflect argument change

* Remove outdated contributing guide

* Update README with more examples and remove part on library

* Add second camera to Travis build script & improve error detection

* Fix typo in travis script & add missing image to readme

* Remember that travis uses bash syntax not fish

* Use relative paths for images in the README
2019-05-26 08:33:08 +02:00
Brendan LE GLAUNEC ceb210f281 Switch to go modules, use forked go-curl to fix CI (#192) 2019-03-10 19:14:11 +01:00
Brendan LE GLAUNEC 5849898283 Cameradar 3.0.0: Uses ullaakut/nmap, runs faster, removed legacy code (#188)
Unit tests functional and coverage back to 100%

Add more routes to dictionary, add more credentials, add default port 5554, rename cameradar logs ENV variable, improve unit test readability, remove tmp file
2019-01-22 21:16:16 +01:00
Isaev Denis 24f86b74f5 Add .golangci.yml and update dep (#184)
* add .golangci.yml and update dep

Prepare environment for https://golangci.com builds by installing
libcurl-dev.
Also update dep from 0.4.1 to 0.5.0

* Fix coveralls command in TravisCI script
2018-11-26 08:47:48 +01:00
Brendan Le Glaunec 541d64168d Remove docker push from CI script after realization it's insecure 2018-05-04 17:56:18 +02:00
Brendan LE GLAUNEC cbf6f647aa Add Coveralls integration 2018-03-12 15:04:06 +01:00
Brendan LE GLAUNEC fb9c5afc5f Switch from glide to dep & fix CI (#152) (#153) 2018-03-12 15:04:06 +01:00
Brendan LE GLAUNEC 3ef48a97cf Fix CI for PRs originating from forks 2018-03-12 15:04:06 +01:00
Brendan LE GLAUNEC dba1391a08 Fix dictionary path for binary & use glide in CI 2018-03-12 15:04:06 +01:00
Gael du Plessix 5d0c21c5d9 Setup travis email notifications for Brendy only 2018-03-12 15:04:05 +01:00
Brendan LE GLAUNEC 72fb21b132 Add multi stage docker build
Upgrade travis docker version
2018-03-12 15:04:05 +01:00
Brendan LE GLAUNEC cb74761675 Add unit tests and functional test in CI
* Unit tests Discover 90%

The NmapRun function needs a refacto to make it use adaptors instead of directly calling exec.Command, exec.Command.StdoutPipe, exec.Command.Start, bufio.Scanner.Scan and bufio.Scanner.Err
It makes me uncomfortable to push a test file that covers only 90%, but it's better than none, and the 10 missing %s are not very error-prone so it should be okay to delay this part a bit. For now it's more urgent to test as much of the code as possible

* Unit tests Helpers 100%

* Unit tests Loaders 100% - Attack 85%

Once again, the Attack functions are not as simple as the rest to unit test, so I will refacto all of this to use a CURL adaptor later, but for now the total is of 88.6% of coverage, which is good enough for something I spent 2 hours on

* Add testing to CI validation process

* CI now does functional testing with RTSPATT

* Change travis language to bash
2018-03-12 15:04:05 +01:00
Brendan LE GLAUNEC 59f51f6149 Cameradar becomes a golang library and cameraccess replaces the old cameradar (#75)
* Better performance
* Better UX
* Lighter docker image
* More control over the features
* Suited for devs
* Better documentation

* No tests yet
2018-03-12 14:59:16 +01:00
Brendan LE GLAUNEC 28f642d39f Fix automatic Docker Hub deployment
The previous travis script was only tagging latest and not the
tag of the branch, which resulted in outdated tags on the DockerHub
2018-03-12 14:58:43 +01:00
Brendan LE GLAUNEC fbd78301a0 Travis functional testing & minor changes 2018-03-12 14:57:59 +01:00
Brendan LE GLAUNEC 2961d68200 Travis build test integration & changes to docker deployment 2018-03-12 14:57:55 +01:00