Skip to content

Commit

Permalink
Use addons for apt package installation.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed May 13, 2017
1 parent 8296c45 commit 9e45b83
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .travis.yml
Expand Up @@ -29,15 +29,19 @@ matrix:
allow_failures:
- env: USE_CPANFILE_SNAPSHOT=false

# libgmp-dev required by Net::OpenID::Consumer
# postgresql-server-dev-all is required by DBD::Pg

addons:
apt:
packages:
- libgmp-dev
- postgresql-server-dev-all

before_install:
- sudo service elasticsearch stop && curl -O -L https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-2.4.3.deb && sudo dpkg -i --force-confnew elasticsearch-2.4.3.deb && sudo service elasticsearch start

# Run update to make libgmp-dev findable (Required by Net::OpenID::Consumer)
# postgresql-server-dev-all is required by DBD::Pg
- sudo apt-get install libgmp-dev postgresql-server-dev-all

- sudo service elasticsearch restart
- pwd

- cpanm -n Devel::Cover::Report::Coveralls
- cpanm -n Carton
Expand Down

0 comments on commit 9e45b83

Please sign in to comment.