Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
bump HOLO_API_VERSION from 2 to 3
Browse files Browse the repository at this point in the history
Since Holo 1.1 is not yet released, use the master branch of Holo for
Travis.
  • Loading branch information
majewsky committed Apr 8, 2016
1 parent de3c201 commit f28b1b5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ go:

before_install:
- mkdir -p build/deps
- git clone --branch=stable https://github.com/holocm/holo.git build/deps/holo
- git clone --branch=master https://github.com/holocm/holo.git build/deps/holo
- make -C build/deps/holo build/holo
- cp build/deps/holo/src/holo-test build/deps/holo/build/holo-test

Expand Down
10 changes: 7 additions & 3 deletions src/holo-run-scripts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,16 @@
# Holo. If not, see <http://www.gnu.org/licenses/>.
#

if [ "$HOLO_API_VERSION" != 2 ]; then
echo "holo-run-scripts plugin called with unknown HOLO_API_VERSION $HOLO_API_VERSION" >&2
if [ "$HOLO_API_VERSION" != 3 ]; then
echo "!! holo-run-scripts plugin called with unknown HOLO_API_VERSION $HOLO_API_VERSION" >&2
exit 1
fi

case "$1" in
info)
echo MIN_API_VERSION=3
echo MAX_API_VERSION=3
;;
scan)
# list executables in $HOLO_RESOURCE_DIR
set -e
Expand All @@ -46,7 +50,7 @@ case "$1" in
exec "$SCRIPT"
;;
*)
echo "holo-run-scripts plugin called with unknown command: $@" >&2
echo "!! holo-run-scripts plugin called with unknown command: $@" >&2
exit 1
;;
esac
4 changes: 4 additions & 0 deletions test/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ apply-output
apply-force-output
diff-output
scan-output
colored-apply-output
colored-apply-force-output
colored-diff-output
colored-scan-output
1 change: 0 additions & 1 deletion test/01-basic/expected-apply-output
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ Running provisioning script 02-failing.sh
This is output on stdout
This is output on stderr
Done with 02-failing.sh, exiting with code 1

!! exit status 1

Executing script:03-successful-nooutput.sh
Expand Down

0 comments on commit f28b1b5

Please sign in to comment.