Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
jehba
ddec-info-ng
Commits
95e318f2
Commit
95e318f2
authored
Mar 22, 2022
by
Baudouin Feildel
Browse files
[ci] Use ArchLinux as base.
parent
b52c9045
Pipeline
#2680
failed with stage
in 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
95e318f2
# Select image from https://hub.docker.com/_/php/
image
:
php:7.4
image
:
archlinux:latest
before_script
:
-
apt-get update && apt-get install -y zip unzip git
-
pacman -Syu --noconfirm && pacman -S php7 curl
-
curl https://composer.github.io/installer.sig | tr -d '\n' > installer.sig
-
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
-
php -r "if (hash_file('SHA384', 'composer-setup.php') === file_get_contents('installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
-
php composer-setup.php
-
php -r "unlink('composer-setup.php'); unlink('installer.sig');"
-
php composer.phar install --no-dev --optimize-autoloader
-
php
7
-r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
-
php
7
-r "if (hash_file('SHA384', 'composer-setup.php') === file_get_contents('installer.sig')) { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
-
php
7
composer-setup.php
-
php
7
-r "unlink('composer-setup.php'); unlink('installer.sig');"
-
php
7
composer.phar install --no-dev --optimize-autoloader
package
:
variables
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment