Update shell script for Jenkins

This commit is contained in:
Timothy Warren 2018-10-11 13:06:58 -04:00
parent 1cd8386559
commit b14a827715
2 changed files with 6 additions and 6 deletions

8
Jenkinsfile vendored
View File

@ -6,8 +6,8 @@ pipeline {
docker { image 'php:7.1-alpine' }
}
steps {
sh 'chmod +x build/docker_install.sh'
sh 'build/docker_install.sh'
sh 'chmod +x ./build/docker_install.sh'
sh 'sh build/docker_install.sh'
sh 'apk add --no-cache php7-phpdbg'
sh 'curl -sS https://getcomposer.org/installer | php'
sh 'php composer.phar install --ignore-platform-reqs'
@ -19,8 +19,8 @@ pipeline {
docker { image 'php:7.2-alpine' }
}
steps {
sh 'chmod +x build/docker_install.sh'
sh 'build/docker_install.sh'
sh 'chmod +x ./build/docker_install.sh'
sh 'sh build/docker_install.sh'
sh 'apk add --no-cache php7-phpdbg'
sh 'curl -sS https://getcomposer.org/installer | php'
sh 'php composer.phar install --ignore-platform-reqs'

View File

@ -6,7 +6,7 @@
set -xe
# Install git (the php image doesn't have it) which is required by composer
echo -e 'http://dl-cdn.alpinelinux.org/alpine/edge/main\nhttp://dl-cdn.alpinelinux.org/alpine/edge/community\nhttp://dl-cdn.alpinelinux.org/alpine/edge/testing' > /etc/apk/repositories
apk add --no-cache \
# echo -e 'http://dl-cdn.alpinelinux.org/alpine/edge/main\nhttp://dl-cdn.alpinelinux.org/alpine/edge/community\nhttp://dl-cdn.alpinelinux.org/alpine/edge/testing' > /etc/apk/repositories
apk --update add --no-cache \
curl \
git