|
6 | 6 | # with one or more Puppet versions, with PUPPET_VERSIONS set to a space-separated list
|
7 | 7 | # of versions to test.
|
8 | 8 |
|
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' |
10 | 10 | [ -z "$RUBOCOP_TEST" ] && export RUBOCOP_TEST='true'
|
11 | 11 | [ -z "$RSPEC_TEST" ] && export RSPEC_TEST='true'
|
12 | 12 |
|
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 |
| - |
19 | 13 | echo 'Starting script/cibuild'
|
20 | 14 |
|
21 | 15 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )"
|
22 | 16 |
|
23 | 17 | # Create a temporary file to capture output of various steps.
|
24 |
| -export OUTPUT_FILE=$(mktemp) |
| 18 | +export OUTPUT_FILE="$(mktemp)" |
25 | 19 | function cleanup() {
|
26 | 20 | rm -rf "$OUTPUT_FILE"
|
27 | 21 | }
|
@@ -79,12 +73,12 @@ if [ "$RSPEC_TEST" = "true" ]; then
|
79 | 73 |
|
80 | 74 | # Make sure `script/puppet` returns the desired puppet version
|
81 | 75 | 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 |
83 | 77 | echo "Confirmed Puppet version = ${pv_test}"
|
84 | 78 | else
|
85 | 79 | echo "Failures:"
|
86 | 80 | echo "- Unable to confirm that Puppet version = ${pv}"
|
87 |
| - echo $pv_test |
| 81 | + echo "$pv_test" |
88 | 82 | RSPEC_EXITCODE=255
|
89 | 83 | fi
|
90 | 84 |
|
|
108 | 102 | echo "Finished script/cibuild:"
|
109 | 103 | [ "$RUBOCOP_EXITCODE" -ge 0 ] && echo " - rubocop: exit ${RUBOCOP_EXITCODE}"
|
110 | 104 | [ "$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