Skip to content

Commit d3c8d06

Browse files
committed
Split the puppet versions in hopes the tests don't timeout
1 parent a4f7b42 commit d3c8d06

2 files changed

Lines changed: 20 additions & 8 deletions

File tree

.travis.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,21 @@ matrix:
88
include:
99
# Build with latest ruby
1010
- rvm: 2.4
11-
env: RUBOCOP_TEST="true" RSPEC_TEST="true"
11+
env: RUBOCOP_TEST="true" RSPEC_TEST="true" PUPPET_VERSIONS="3.8.7"
12+
- rvm: 2.4
13+
env: RUBOCOP_TEST="false" RSPEC_TEST="true" PUPPET_VERSIONS="4.10.8"
14+
- rvm: 2.4
15+
env: RUBOCOP_TEST="false" RSPEC_TEST="true" PUPPET_VERSIONS="5.0.0"
1216
# Build with older ruby versions
13-
- rvm: 2.3.2
14-
env: RUBOCOP_TEST="false" RSPEC_TEST="true"
15-
- rvm: 2.2.3
16-
env: RUBOCOP_TEST="false" RSPEC_TEST="true"
1717
- rvm: 2.1
18-
env: RUBOCOP_TEST="false" RSPEC_TEST="true"
18+
env: RUBOCOP_TEST="false" RSPEC_TEST="true" PUPPET_VERSIONS="3.8.7"
19+
- rvm: 2.1
20+
env: RUBOCOP_TEST="false" RSPEC_TEST="true" PUPPET_VERSIONS="4.10.8"
21+
- rvm: 2.1
22+
env: RUBOCOP_TEST="false" RSPEC_TEST="true" PUPPET_VERSIONS="5.0.0"
23+
- rvm: 2.0
24+
env: RUBOCOP_TEST="false" RSPEC_TEST="true" PUPPET_VERSIONS="3.8.7"
25+
- rvm: 2.0
26+
env: RUBOCOP_TEST="false" RSPEC_TEST="true" PUPPET_VERSIONS="4.10.8"
1927
- rvm: 2.0
20-
env: RUBOCOP_TEST="false" RSPEC_TEST="true"
28+
env: RUBOCOP_TEST="false" RSPEC_TEST="true" PUPPET_VERSIONS="5.0.0"

script/cibuild

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@
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.10.8 5.0.0'
9+
if [ -z "$PUPPET_VERSIONS" ]; then
10+
echo "Required PUPPET_VERSIONS!"
11+
exit 255
12+
fi
13+
1014
[ -z "$RUBOCOP_TEST" ] && export RUBOCOP_TEST='true'
1115
[ -z "$RSPEC_TEST" ] && export RSPEC_TEST='true'
1216

0 commit comments

Comments
 (0)