Opened 10 years ago

Closed 10 years ago

Last modified 4 years ago

#3032 closed patch (fixed)

Travis CI error in before_install: libgdal-dev : Depends: libgdal1h

Reported by: Mike Taves Owned by: robe
Priority: medium Milestone: Website Management, Bots
Component: QA/buildbots Version: master
Keywords: Cc:

Description

Since about 6 days ago, Travis CI has failed to go past the before_install step with this error:

...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgdal-dev : Depends: libgdal1h (= 1.10.0-1~precise1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

The command "sudo apt-get install -q build-essential flex autoconf libtool gfortran postgresql-server-dev-9.1 postgresql-client-9.1 postgresql-9.1 xsltproc libjson0-dev libproj-dev dblatex xsltproc libcunit1-dev libcunit1 docbook-xsl docbook-mathml libgdal-dev libgeos-dev" failed and exited with 100 during .

Your build has been stopped.

(this is from build #821, the most recent)

I'm not sure why this is, since build #817 from almost a week ago did not have that error.

Note that Travis CI mix a few upstream repos, such as http://ppa.launchpad.net/ubuntugis/ppa/ubuntu/ (stable), and http://apt.postgresql.org precise-pgdg/main, which may influence the outcome of before_install, which is unrelated to the actual unit testing.

I've reworked the .travis.yml file, which does a few of the following:

  • Switch from DOS to UNIX line endings (see DevWikiComitGuidelines)
  • Tidy it up, add nice breaks and enforce <80 chars width to make it more readable
  • Use the PostgreSQL addon for Travis CI specifying version "9.4", bumping it from the previous "9.1"
  • With apt-get install, organize a few logical groups, remove redundant or obvious depends
  • Remove commented out parts since they don't have any context as to why they remain
  • Also removed a few git config --global and PGUSER=postgres variables, since I'm not sure why they were set and removing them does not appear to alter the behavior
  • Don't bother purging other versions of PostgreSQL or PostGIS -- I think they can coexist (unless otherwise proven)

In the end, I'm not exactly sure what it is with .travis.yml in svn-trunk to throw an error, but the attached mwtoews.travis.yml seems to fix it.

Please modify as needed.

Attachments (2)

mwtoews.travis.yml (574 bytes ) - added by Mike Taves 10 years ago.
New .travis.yml file -- edit as necessary
travis.yml.diff (1.5 KB ) - added by Mike Taves 10 years ago.
Difference between svn-trunk and new .travis.yml; differences in DOS/UNIX line endings ignored

Download all attachments as: .zip

Change History (6)

by Mike Taves, 10 years ago

Attachment: mwtoews.travis.yml added

New .travis.yml file -- edit as necessary

by Mike Taves, 10 years ago

Attachment: travis.yml.diff added

Difference between svn-trunk and new .travis.yml; differences in DOS/UNIX line endings ignored

comment:1 by robe, 10 years ago

Milestone: Management 2.0

comment:2 by robe, 10 years ago

Mike,

I committed your patch at r13208. My travis chops are very weak, so I'm going to trust you have more of a clue than I do. strk -- please check and fix if you are not satisfied.

I'm going to close out as soon as I see a success from travis.

comment:3 by Mike Taves, 10 years ago

Resolution: fixed
Status: newclosed

Looks like it's working. I've also tested on another repo to make sure there are fails too for any modifications to the source in one of regress, liblwgeom, or doc. So while there are certainly other installations of PostGIS on the test machines, these should not influence the outcome of the testing of the GitHub/Travis CI build.

comment:4 by robe, 4 years ago

Milestone: Management 2.0Website Management, Bots

Milestone renamed

Note: See TracTickets for help on using tickets.