Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Travis bash test #4917

Merged
merged 6 commits into from Nov 3, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -37,6 +37,7 @@ before_install:
install:
- composer install --prefer-dist --no-interaction
- pip install --user snmpsim
- pip install --user pylint

before_script:
- python2 $HOME/.local/bin/snmpsimd.py --data-dir=$TRAVIS_BUILD_DIR/tests/snmpsim --agent-udpv4-endpoint=127.0.0.1:11161 --logging-method=file:/tmp/snmpsimd.log --daemon --pid-file=/tmp/snmpsimd.pid
Expand All @@ -51,3 +52,5 @@ script:
- php scripts/pre-commit.php -l
- php scripts/pre-commit.php -s
- SNMPSIM=1 phpunit --stop-on-failure
- bash -n daily.sh
- pylint -E poller-wrapper.py discovery-wrapper.py poller-service.py
2 changes: 1 addition & 1 deletion daily.sh
Expand Up @@ -49,7 +49,7 @@ if [ -z "$arg" ]; then
old_ver=$(git describe --exact-match --tags $(git log -n1 --pretty='%h'))
status_run 'Updating to latest release' 'git fetch --tags && git checkout $(git describe --tags $(git rev-list --tags --max-count=1))'
new_ver=$(git describe --exact-match --tags $(git log -n1 --pretty='%h'))
if [ "$old_ver" -ne "$new_ver" ]; then
if [ "$old_ver" != "$new_ver" ]; then
status_run "Updated from $old_ver to $new_ver" ''
fi
fi
Expand Down