Skip to content

Commit

Permalink
Use cpm to install modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed May 13, 2017
1 parent 9e45b83 commit 61da7de
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .travis.yml
Expand Up @@ -15,9 +15,6 @@ env:
# We use a non-standard port to avoid trashing production
# but travis will have it running on the standard port.
- ES=localhost:9200
# Carton --deployment only works on the same version of perl
# that the snapshot was built from.
- DEPLOYMENT_PERL_VERSION=5.22

# Instantiate Catalyst models using metacpan_server_testing.conf
- METACPAN_SERVER_CONFIG_LOCAL_SUFFIX=testing
Expand Down Expand Up @@ -45,13 +42,14 @@ before_install:

- cpanm -n Devel::Cover::Report::Coveralls
- cpanm -n Carton
- cpanm -n App::cpm

# Carton refuses to update Safe.pm to the version specified in the cpanfile and the
# version that's core in 5.16 is too old (it fails to work with Devel::Cover).
- cpanm -n Safe@2.35

install:
- 'carton install `test "${TRAVIS_PERL_VERSION}" = "${DEPLOYMENT_PERL_VERSION}" && test "${USE_CPANFILE_SNAPSHOT}" = "true" && echo " --deployment"`'
- 'cpm install `test "${USE_CPANFILE_SNAPSHOT}" = "false" && echo " --resolver metadb"`'

before_script:
- "perl -i -pe 's/(servers :)9900/localhost:9200/' metacpan_server_testing.conf"
Expand Down

0 comments on commit 61da7de

Please sign in to comment.