Skip to content

Commit

Permalink
improved before_install section
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jan 17, 2016
1 parent 74e506a commit 2f43c7f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .hidev/commits.md
Expand Up @@ -3,6 +3,8 @@ hiqdev/hidev-travis commits history

## Under development

- 5b3fa56 2016-01-17 improved `before_install` section (sol@hiqdev.com)
- 74e506a 2016-01-17 + `travis` default goal to imitate running on Travis (sol@hiqdev.com)
- Fixed `before_install` section
- 9fd04b8 2016-01-17 improved `before_install` section (sol@hiqdev.com)

Expand Down
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -13,9 +13,11 @@ cache:
- $HOME/.composer/cache
before_install:
- 'composer self-update'
- 'composer --version'
- './vendor/bin/hidev --version'
- './vendor/bin/hidev travis/install'
sudo: false
install:
- 'travis_retry composer install --no-interaction'
- './vendor/bin/hidev travis/install'
script:
- './vendor/bin/hidev travis/script'
Expand Down
3 changes: 2 additions & 1 deletion src/controllers/TravisYamlController.php
Expand Up @@ -43,14 +43,15 @@ public function detectBin()

public function getBeforeInstall()
{
$commands = array_unique($this->get('before_install'));
$commands = array_values(array_unique($this->get('before_install')));
if ($this->bin === './hidev.phar') {
$commands[] = 'wget http://hiqdev.com/hidev/hidev.phar -O hidev.phar && chmod a+x hidev.phar';
}
if ($this->bin === './bin/hidev') {
$commands[] = 'travis_retry composer install --no-interaction';
}
$commands[] = $this->getBin() . ' --version';
$commands[] = $this->getBin() . ' travis/before_install';

return $commands;
}
Expand Down

0 comments on commit 2f43c7f

Please sign in to comment.