From c25922f5cf89a78c3955605740ef5fb68c03723e Mon Sep 17 00:00:00 2001
From: Felip Manyer i Ballester <git@res-telae.cat>
Date: Fri, 6 May 2022 20:13:27 +0200
Subject: [PATCH] Added Francesco as author + run tests on commit (GitLab CI)
---
.gitlab-ci.yml | 14 +++++++++++++-
composer.json | 16 +++++++++++-----
2 files changed, 24 insertions(+), 6 deletions(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 776cd72..20cd24a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,11 +1,23 @@
image: alpine
+before_script:
+ - apk update
+ - apk add doxygen
+ - apk add bash curl php7
+ - curl -s https://getcomposer.org/installer | php
+ - alias composer='php composer.phar'
+
+unit_test:
+ stage: test
+ script:
+ - composer install
+ - composer test
+
pages:
when: always
only:
- master
script:
- - apk update && apk add doxygen
- doxygen
- mv docs/html/ public/
- rmdir docs
diff --git a/composer.json b/composer.json
index 337c98d..3501dcf 100644
--- a/composer.json
+++ b/composer.json
@@ -7,11 +7,17 @@
"type": "library",
"license": "GPL-3.0-or-later",
"homepage": "https://gitlab.res-telae.cat/restelae/php-gbif",
- "authors": [{
- "name": "Felip Manyer i Ballester",
- "email": "contact@res-telae.cat",
- "homepage": "https://www.res-telae.cat"
- }],
+ "authors": [
+ {
+ "name": "Felip Manyer i Ballester",
+ "email": "contact@res-telae.cat",
+ "homepage": "https://www.res-telae.cat"
+ },
+ {
+ "name": "Francesco Abeni",
+ "homepage": "https://www.linkedin.com/in/francescoabeni/"
+ }
+ ],
"minimum-stability": "dev",
"require": {
"php": ">=7.2",
--
GitLab