Skip to content

Commit bfd04f1

Browse files
committed
Attempt to cache php instal
1 parent 4cc32be commit bfd04f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ cache:
2525
# Cache common packages
2626
- $HOME/AppData/Local/Temp/chocolatey
2727
- $HOME/AppData/Local/Composer
28+
# Cache PHP Install
29+
- /c/tools/$PHP_DIR
2830

2931
before_install:
3032
# Install PHP and setup PATH
31-
- choco install php --version $PHP_VERSION -y;
33+
- if [ ! -f /c/tools/$PHP_DIR ]; then choco install php --version $PHP_VERSION -y; fi
3234
- export PATH=/c/tools/$PHP_DIR:$PATH;
3335
# Modify configuration
3436
- echo 'extension_dir="ext"' >> /c/tools/$PHP_DIR/php.ini;

0 commit comments

Comments
 (0)