Browse Source

Forgot about Gitlab CI, removed Jenkins

master
Alexander Yakovlev 1 year ago
parent
commit
ef7cde242e
Signed by: oreolek GPG Key ID: 1CDC4B7820C93BD3
3 changed files with 3 additions and 27 deletions
  1. +1
    -1
      .gitlab-ci.yml
  2. +0
    -26
      Jenkinsfile
  3. +2
    -0
      README.md

+ 1
- 1
.gitlab-ci.yml 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



+ 0
- 26
Jenkinsfile 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
}
}

+ 2
- 0
README.md 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.