From e89a71da2ffccb6de5d2e613c1c7ad226bbbc9bc Mon Sep 17 00:00:00 2001 From: Netkas Date: Sat, 21 Jan 2023 06:28:02 -0500 Subject: [PATCH] Added .gitlab-ci.yaml (Experimental) --- .gitlab-ci.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitlab-ci.yaml diff --git a/.gitlab-ci.yaml b/.gitlab-ci.yaml new file mode 100644 index 0000000..1433a7b --- /dev/null +++ b/.gitlab-ci.yaml @@ -0,0 +1,28 @@ +image: php:8.1 + +before_script: + # Install some stuff that the image doesn't come with + - apt update -yqq + - apt install git libpq-dev libzip-dev zip make -yqq + + # Install phive + - wget -O phive.phar https://phar.io/releases/phive.phar + - wget -O phive.phar.asc https://phar.io/releases/phive.phar.asc + - gpg --keyserver hkps://keys.openpgp.org --recv-keys 0x9D8A98B29B2D5D79 + - gpg --verify phive.phar.asc phive.phar + - chmod +x phive.phar + - sudo mv phive.phar /usr/local/bin/phive + + # install phpab + - phive install phpab --global --trust-gpg-keys 0x2A8299CE842DD38C + +build: + script: + - make redist tar + artifacts: + paths: + - build/src/ncc.tar.gz + +test: + script: + - build/src/INSTALL --auto --install-composer \ No newline at end of file