Skip to content

Commit

Permalink
Improved cache on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostico committed Sep 28, 2015
1 parent 3d11144 commit 003a8f3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ php:
- hhvm

install:
- php -r "readfile('https://getcomposer.org/installer');" | php
- php composer.phar install --prefer-source
- "./ci/_composer_install.sh"
- mkdir -p build/logs
- "./ci/start-ci.sh $ORIENTDB_VERSION"

Expand Down
11 changes: 11 additions & 0 deletions ci/_composer_install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

set -e

PARENT_DIR=$(dirname $(cd "$(dirname "$0")"; pwd))

if [ ! -d "$PARENT_DIR/vendor/bin" ]; then
cd "${PARENT_DIR}"
php -r "readfile('https://getcomposer.org/installer');" | php
php "$PARENT_DIR/composer.phar" install --prefer-source
fi

0 comments on commit 003a8f3

Please sign in to comment.