Skip to content

Commit 71adf74

Browse files
author
Kevin Paulisse
committed
Add 4.10 to ci rotation
1 parent dc6d720 commit 71adf74

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

script/cibuild

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,16 @@
66
# with one or more Puppet versions, with PUPPET_VERSIONS set to a space-separated list
77
# of versions to test.
88

9-
[ -z "$PUPPET_VERSIONS" ] && export PUPPET_VERSIONS='3.8.7 4.5.3'
9+
[ -z "$PUPPET_VERSIONS" ] && export PUPPET_VERSIONS='3.8.7 4.5.3 4.10.0'
1010
[ -z "$RUBOCOP_TEST" ] && export RUBOCOP_TEST='true'
1111
[ -z "$RSPEC_TEST" ] && export RSPEC_TEST='true'
1212

13-
# FIXME: Needed only for Janky. Remove for travis.
14-
if env | grep ^JANKY_ >/dev/null 2>&1; then
15-
export PATH=/usr/share/rbenv/shims:$PATH
16-
export RBENV_VERSION=2.1.2-github
17-
fi
18-
1913
echo 'Starting script/cibuild'
2014

2115
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
2216

2317
# Create a temporary file to capture output of various steps.
24-
export OUTPUT_FILE=$(mktemp)
18+
export OUTPUT_FILE="$(mktemp)"
2519
function cleanup() {
2620
rm -rf "$OUTPUT_FILE"
2721
}
@@ -79,12 +73,12 @@ if [ "$RSPEC_TEST" = "true" ]; then
7973

8074
# Make sure `script/puppet` returns the desired puppet version
8175
pv_test=$( "${DIR}/script/puppet" --version 2>&1 )
82-
if [ $? -eq 0 -a "$pv_test" = "$pv" ]; then
76+
if [ $? -eq 0 ] && [ "$pv_test" = "$pv" ]; then
8377
echo "Confirmed Puppet version = ${pv_test}"
8478
else
8579
echo "Failures:"
8680
echo "- Unable to confirm that Puppet version = ${pv}"
87-
echo $pv_test
81+
echo "$pv_test"
8882
RSPEC_EXITCODE=255
8983
fi
9084

@@ -108,4 +102,4 @@ fi
108102
echo "Finished script/cibuild:"
109103
[ "$RUBOCOP_EXITCODE" -ge 0 ] && echo " - rubocop: exit ${RUBOCOP_EXITCODE}"
110104
[ "$RSPEC_EXITCODE" -ge 0 ] && echo " - rspec: exit ${RSPEC_EXITCODE}"
111-
if [ "$RUBOCOP_EXITCODE" -gt 0 -o "$RSPEC_EXITCODE" -gt 0 ]; then exit 1; else exit 0; fi
105+
if [ "$RUBOCOP_EXITCODE" -gt 0 ] || [ "$RSPEC_EXITCODE" -gt 0 ]; then exit 1; else exit 0; fi

0 commit comments

Comments
 (0)