diff options
author | Olivier Paroz <github@oparoz.com> | 2015-08-20 07:07:26 +0300 |
---|---|---|
committer | Olivier Paroz <github@oparoz.com> | 2015-08-20 07:07:26 +0300 |
commit | de6b245c75459080f3430481c8b9dea4524d70c4 (patch) | |
tree | 0e18bbc0fee30920aab9740f5f2ad864490dc291 /.travis.yml | |
parent | 642fc6056dbe6c4340ff9c5e94dc793e94026c09 (diff) |
cp -r for directories...
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index f9f746f4..424686b1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,7 +29,7 @@ cache: before_cache: # Archive the vendor folder - - cp ${TRAVIS_BUILD_DIR}/../core/apps/$APP_NAME/vendor ${TRAVIS_BUILD_DIR}/travis/php-cache/`php-config --vernum` + - cp -r ${TRAVIS_BUILD_DIR}/../core/apps/$APP_NAME/vendor ${TRAVIS_BUILD_DIR}/travis/php-cache/`php-config --vernum` before_install: # Setup Selenium @@ -61,7 +61,7 @@ before_install: # Sets up the cache - sh -c "if [ ! -d ${TRAVIS_BUILD_DIR}/travis/php-cache/`php-config --vernum` ]; then mkdir -p ${TRAVIS_BUILD_DIR}/travis/php-cache/`php-config --vernum`; fi;" - rm -rf ${TRAVIS_BUILD_DIR}/../core/apps/$APP_NAME/vendor - - sh -c "if [ -d ${TRAVIS_BUILD_DIR}/travis/php-cache/`php-config --vernum`/vendor ]; then cp ${TRAVIS_BUILD_DIR}/travis/php-cache/`php-config --vernum`/vendor ${TRAVIS_BUILD_DIR}/../core/apps/$APP_NAME; fi;" + - sh -c "if [ -d ${TRAVIS_BUILD_DIR}/travis/php-cache/`php-config --vernum`/vendor ]; then cp -r ${TRAVIS_BUILD_DIR}/travis/php-cache/`php-config --vernum`/vendor ${TRAVIS_BUILD_DIR}/../core/apps/$APP_NAME; fi;" # Composer - cd ${TRAVIS_BUILD_DIR}/../core/apps/$APP_NAME |