Skip to content

Commit

Permalink
Move PATH export to where we actually use composer
Browse files Browse the repository at this point in the history
  • Loading branch information
padraic committed Feb 15, 2015
1 parent e99f8b2 commit 9a92f0b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ php:
- 5.4
- 5.5
- 5.6
- 5.3.3 #php7
- 5.3.3 #This will actually use PHP7
- hhvm
- hhvm-nightly

Expand All @@ -21,7 +21,7 @@ cache:
- $HOME/.composer/cache

before_install:
- ./travis/before_install.sh
- ./travis/before_install.sh

install:
- travis_retry ./travis/install.sh
Expand Down
1 change: 0 additions & 1 deletion travis/before_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ if [[ "$TRAVIS_PHP_VERSION" == "5.3.3" ]]; then
mkdir $PWD/phar
mv composer.phar $PWD/phar/composer
chmod +x $PWD/phar/composer
export PATH=$PWD/phar:$PATH
fi
4 changes: 3 additions & 1 deletion travis/before_script.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash
if [[ "$TRAVIS_PHP_VERSION" != "hhvm" && "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]]; then
if [[ "$TRAVIS_PHP_VERSION" != "hhvm" \
&& "$TRAVIS_PHP_VERSION" != "hhvm-nightly" \
&& "$TRAVIS_PHP_VERSION" != "5.3.3" ]]; then
phpenv config-add ./travis/extra.ini
fi
phpenv rehash
1 change: 1 addition & 0 deletions travis/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
export PATH=$PWD/phar:$PATH
if [[ "$TRAVIS_PHP_VERSION" == "5.3.3" ]]; then
echo PATH is $PATH
fi
Expand Down

0 comments on commit 9a92f0b

Please sign in to comment.