Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #19.
- Loading branch information
Showing
4 changed files
with
31 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
schedule: | ||
# run CI every day even if no PRs/merges occur | ||
- cron: '0 12 * * *' | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build | ||
run: make onesixtyone | ||
- name: Test | ||
run: | | ||
sudo apt install -y snmpd | ||
sudo /etc/init.d/snmpd restart | ||
bash dotest.sh |
This file was deleted.
Oops, something went wrong.
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,8 +1,13 @@ | ||
#!/bin/bash | ||
|
||
pidof snmpd || { echo "snmpd not running?"; exit 1; } | ||
|
||
result=$(./onesixtyone 127.0.0.1) | ||
|
||
if [[ "$result" == *"public"* ]]; then | ||
echo "OK" | ||
exit 0 | ||
fi | ||
exit 1 | ||
|
||
echo "FAIL" | ||
exit 1 |