Skip to content

Commit 5e941a8

Browse files
committed
Run carton in deployment mode on one travis perl
1 parent 4a1200b commit 5e941a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ env:
2222
# We use a non-standard port to avoid trashing production
2323
# but travis will have it running on the standard port.
2424
- METACPAN_ES_TEST_PORT=9200
25+
# Carton --deployment only works on the same version of perl
26+
# that the snapshot was built from.
27+
- DEPLOYMENT_PERL_VERSION=5.18
2528

2629

2730
before_install:
@@ -38,7 +41,7 @@ before_install:
3841
- cpanm -n [email protected]
3942

4043
install:
41-
- carton install
44+
- 'carton install `test "${TRAVIS_PERL_VERSION}" = "${DEPLOYMENT_PERL_VERSION}" && echo " --deployment"`'
4245

4346

4447
before_script:

0 commit comments

Comments
 (0)