Skip to content

Commit 31f7631

Browse files
committed
Fixed TravisCI, install SSH php ext differently on PHP 5.6
1 parent 6567872 commit 31f7631

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ before_install:
2828
install:
2929
- sudo apt-get update -qq
3030
- sudo apt-get install -y -qq libssh2-1-dev libssh2-php
31-
- pecl install -f ssh2-alpha < .noninteractive
31+
- if [ "${TRAVIS_PHP_VERSION}" == "5.6" ]; then
32+
pecl install -f ssh2 < .noninteractive
33+
else
34+
pecl install -f ssh2-alpha < .noninteractive
35+
fi
3236
- pip install yamllint
3337
- if ! shellcheck --version ; then
3438
curl -sSL "${SHELLCHECK_URL}" | tar --exclude 'SHA256SUMS' --strip-components=1 -C "${HOME}/bin" -xjf -;

0 commit comments

Comments
 (0)