Set up Jenkins build
Some checks failed
Gitea - aviat/ion/master There was a failure building this commit
Some checks failed
Gitea - aviat/ion/master There was a failure building this commit
This commit is contained in:
parent
4347c8e2cc
commit
ac798d840f
@ -1,31 +0,0 @@
|
|||||||
test:7:
|
|
||||||
before_script:
|
|
||||||
- sh build/docker_install.sh > /dev/null
|
|
||||||
- apk add --no-cache php7-phpdbg
|
|
||||||
- curl -sS https://getcomposer.org/installer | php
|
|
||||||
- php composer.phar install --ignore-platform-reqs
|
|
||||||
image: php:7-alpine
|
|
||||||
script:
|
|
||||||
- phpdbg -qrr -- vendor/bin/phpunit -c build --coverage-text --colors=never
|
|
||||||
|
|
||||||
test:7.1:
|
|
||||||
stage: test
|
|
||||||
before_script:
|
|
||||||
- sh build/docker_install.sh > /dev/null
|
|
||||||
- apk add --no-cache php7-phpdbg
|
|
||||||
- curl -sS https://getcomposer.org/installer | php
|
|
||||||
- php composer.phar install --ignore-platform-reqs
|
|
||||||
image: php:7.1-alpine
|
|
||||||
script:
|
|
||||||
- phpdbg -qrr -- ./vendor/bin/phpunit -c build --coverage-text --colors=never
|
|
||||||
|
|
||||||
test:7.2:
|
|
||||||
stage: test
|
|
||||||
before_script:
|
|
||||||
- sh build/docker_install.sh > /dev/null
|
|
||||||
- apk add --no-cache php7-phpdbg
|
|
||||||
- curl -sS https://getcomposer.org/installer | php
|
|
||||||
- php composer.phar install --ignore-platform-reqs
|
|
||||||
image: php:7.2-alpine
|
|
||||||
script:
|
|
||||||
- phpdbg -qrr -- ./vendor/bin/phpunit -c build --coverage-text --colors=never
|
|
53
Jenkinsfile
vendored
Normal file
53
Jenkinsfile
vendored
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
pipeline {
|
||||||
|
agent none
|
||||||
|
stages {
|
||||||
|
stage('PHP 7.0') {
|
||||||
|
agent {
|
||||||
|
docker {
|
||||||
|
image 'php:7-alpine'
|
||||||
|
args '-u root --privileged'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
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'
|
||||||
|
sh 'phpdbg -qrr -- ./vendor/bin/phpunit --coverage-text --colors=never'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('PHP 7.1') {
|
||||||
|
agent {
|
||||||
|
docker {
|
||||||
|
image 'php:7.1-alpine'
|
||||||
|
args '-u root --privileged'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
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'
|
||||||
|
sh 'phpdbg -qrr -- ./vendor/bin/phpunit --coverage-text --colors=never'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('PHP 7.2') {
|
||||||
|
agent {
|
||||||
|
docker {
|
||||||
|
image 'php:7.2-alpine'
|
||||||
|
args '-u root --privileged'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
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'
|
||||||
|
sh 'phpdbg -qrr -- ./vendor/bin/phpunit --coverage-text --colors=never'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -6,7 +6,6 @@
|
|||||||
set -xe
|
set -xe
|
||||||
|
|
||||||
# Install git (the php image doesn't have it) which is required by composer
|
# 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 --update add --no-cache \
|
||||||
apk add --no-cache \
|
|
||||||
curl \
|
curl \
|
||||||
git
|
git
|
||||||
|
Loading…
Reference in New Issue
Block a user