oreolek
/
news-script
Archived
1
0
Fork 0

Forgot about Gitlab CI, removed Jenkins

This commit is contained in:
Alexander Yakovlev 2019-04-16 13:43:24 +07:00
parent 82f834ee4a
commit ef7cde242e
Signed by: oreolek
GPG Key ID: 1CDC4B7820C93BD3
3 changed files with 3 additions and 27 deletions

View File

@ -1,7 +1,7 @@
image: php:7.2-cli
before_script:
- apt-get update
- apt-get install --no-install-recommends -y unzip pandoc
- apt-get install --no-install-recommends -y git curl unzip pandoc
- '[[ ! -f composer.phar ]] && curl -sS https://getcomposer.org/installer | php --'
- php ./composer.phar install

26
Jenkinsfile vendored
View File

@ -1,26 +0,0 @@
#!groovy
node {
currentBuild.result = "SUCCESS";
try {
stage('Checkout'){
checkout scm
sh 'composer install';
}
stage('Test'){
sh './vendor/bin/phpunit tests/';
}
}
catch (err) {
currentBuild.result = "FAILURE";
sh 'rm -rf build dist';
emailext (
subject: "FAILURE: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]'",
body: """<p>FAILED: Job '${env.JOB_NAME} [${env.BUILD_NUMBER}]':</p>
<p>Check console output at "<a href="${env.BUILD_URL}">${env.JOB_NAME} [${env.BUILD_NUMBER}]</a>"</p>""",
recipientProviders: [developers()]
)
throw err
}
}

View File

@ -1,6 +1,8 @@
# A set of utilities for tracking text-based game releases
Originally a parser for Russian Interactive Fiction, now it's much more than that.
[![pipeline status](https://gitlab.com/ifiction/news-script/badges/master/pipeline.svg)](https://gitlab.com/ifiction/news-script/commits/master)
[Русская версия readme](README.rus.md)
These are executable PHP scripts that serve different functions but share the code.