Updated .gitlab-ci.yml

This commit is contained in:
Netkas 2023-08-16 16:50:35 -04:00
parent 5aeabb0d4e
commit 56bfad6818
No known key found for this signature in database
GPG key ID: 5DAF58535614062B

View file

@ -2,14 +2,12 @@ image: php:8.2
stages: stages:
- setup - setup
- install
- build - build
- publish - publish
before_script: before_script:
- apt update -yqq - apt update -yqq
- apt install -yqq git libzip-dev zip make wget gnupg2 libonig-dev libcurl4-openssl-dev - apt install -yqq git libzip-dev zip make wget gnupg2 libonig-dev libcurl4-openssl-dev
- export PATH=$PATH:/usr/local/bin
# Prepare the environment # Prepare the environment
setup: setup:
@ -17,20 +15,15 @@ setup:
script: script:
- docker-php-ext-install mbstring ctype posix zip curl fileinfo - docker-php-ext-install mbstring ctype posix zip curl fileinfo
# Install Phive and Phpab # Build the project using the Makefile
install: build:
stage: install stage: build
script: script:
- wget -O phive.phar https://phar.io/releases/phive.phar - wget -O phive.phar https://phar.io/releases/phive.phar
- wget -O phive.phar.asc https://phar.io/releases/phive.phar.asc - wget -O phive.phar.asc https://phar.io/releases/phive.phar.asc
- chmod +x phive.phar - chmod +x phive.phar
- mv phive.phar /usr/local/bin/phive - mv phive.phar /usr/local/bin/phive
- phive install phpab --global --trust-gpg-keys 0x2A8299CE842DD38C - phive install phpab --global --trust-gpg-keys 0x2A8299CE842DD38C
# Build the project using the Makefile
build:
stage: build
script:
- make autoload - make autoload
- make redist - make redist
- make tar - make tar