Skip to content

Commit

Permalink
Codeship caching support.
Browse files Browse the repository at this point in the history
  • Loading branch information
virgofx committed Mar 1, 2016
1 parent e34512e commit 2b525d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,4 @@ phpenv local 5.6
composer install --prefer-source --no-interaction
# Install Phalcon
vendor/bin/install-phalcon.sh
```
**Codeship Notes**
* Caching does not work with Codeship directories and therefore Phalcon can not be cached. Build time is approximately 1 min 30 sec
```
8 changes: 7 additions & 1 deletion bin/install-phalcon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,18 @@ fi

PHALCON_INSTALL_REF=${1:-master}
PHALCON_DIR=${HOME}/cphalcon
PHALCON_CACHE_DIR=${HOME}/cphalcon/cache
PHALCON_CACHE_DIR=${PHALCON_DIR}/cache
PHP_VER=$(phpenv version-name)
PHP_ENV_DIR=$(dirname $(dirname $(which phpenv)))/versions/${PHP_VER}
PHP_EXT_DIR=$(php-config --extension-dir)


# Codeship doesn't support specifying a directory
if [ "${CI_NAME}" == "codeship" ]; then
PHALCON_DIR=~/cache/cphalcon
PHALCON_CACHE_DIR=~${PHALCON_DIR}/cache
fi

# Prior to building, attempt to enable phalcon from a cached dependency
# which may have been set via the CI environment YML declaration. This is
# important as it helps improve performance for fast builds.
Expand Down

0 comments on commit 2b525d8

Please sign in to comment.