• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PhilippBaschke / acf-pro-installer / 17 / 4
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: upgrade-phpenv
DEFAULT BRANCH: master
Ran 23 Apr 2016 02:40PM UTC
Files 3
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Apr 2016 02:30PM UTC coverage: 100.0%. First build
17.4

push

travis-ci

PhilippBaschke
Make plugin work on fresh install and update

The plugin would only work if it was installed before ACF PRO should be
installed. It would fail on a fresh install (because ACF PRO could not
be found in any repository). This means that the user needs to supply a
package repository that contains a desired version, and a dist
url (without version and key). This package has to require the installer
to make sure that the plugin is available before installing ACF PRO.

Another problem was, that the plugin would save the key in
composer.lock. Since it is common practice to put composer.lock under
version control the purpose of the plugin would be defeated. To avoid
this problem, only the version is appended to the url that the users
supplies and the key is only added to the url for the download (with the
PreFileDownload event).

The version however needs to be added to the package. Otherwise the url
for every version would be the same which leads to composer using
already cached files although the might be from a different
version (composer can't tell because the url is exactly the same).

Should work with `composer install`, `composer install` (from
composer.lock), `composer update` and `composer require`.

56 of 56 relevant lines covered (100.0%)

5.04 hits per line

Source Files on job 17.4
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 17
  • Travis Job 17.4
  • 872b0351 on github
  • Next Job for on fix-lock-file (#18.4)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc