0
0
mirror of https://github.com/phpv8/v8js.git synced 2024-09-16 19:15:17 +00:00
phpv8/Jenkinsfile

35 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2020-04-03 12:20:08 +00:00
pipeline {
agent none
stages {
stage('BuildAndTest') {
matrix {
agent any
axes {
axis {
name 'PHPVER'
2020-08-21 10:46:58 +00:00
values '7.3.21', '7.4.9'
2020-04-03 12:20:08 +00:00
}
axis {
name 'V8VER'
2020-08-21 10:46:58 +00:00
values '7.9', '8.4', '8.6'
2020-04-03 12:20:08 +00:00
}
}
stages {
stage('Build') {
steps {
echo "Building w/ V8 ${V8VER}, PHP ${PHPVER} as Docker image ${BUILD_TAG}-${V8VER}-${PHPVER}"
sh "docker build -f Dockerfile.jenkins --build-arg V8VER=${V8VER} --build-arg PHPVER=${PHPVER} -t ${BUILD_TAG}-${V8VER}-${PHPVER} ."
}
}
stage('Test') {
steps {
echo "Running test on ${BUILD_TAG}-${V8VER}-${PHPVER}"
sh "docker run --rm -t ${BUILD_TAG}-${V8VER}-${PHPVER} make test TESTS='ext/v8js/tests/*.phpt'"
}
}
}
}
}
}
}