File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ sudo apt update
26
26
section_end
27
27
28
28
section_start " Install needed packages"
29
- sudo apt install -y acl zip unzip nginx php php-fpm php-gd \
29
+ sudo apt install -y acl zip unzip nginx composer php php-fpm php-gd \
30
30
php-cli php-intl php-mbstring php-mysql php-curl php-json \
31
31
php-xml php-zip ntp make sudo debootstrap \
32
32
libcgroup-dev lsof php-cli php-curl php-json php-xml \
@@ -39,13 +39,6 @@ section_end
39
39
PHPVERSION=$( php -r ' echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION."\n";' )
40
40
export PHPVERSION
41
41
42
- section_start " Install composer"
43
- php -r " copy('https://getcomposer.org/installer', 'composer-setup.php');"
44
- HASH=" $( wget -q -O - https://composer.github.io/installer.sig) "
45
- php -r " if (hash_file('SHA384', 'composer-setup.php') === '$HASH ') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
46
- sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
47
- section_end
48
-
49
42
section_start " Run composer"
50
43
export APP_ENV=" dev"
51
44
composer install --no-scripts
Original file line number Diff line number Diff line change @@ -41,18 +41,14 @@ jobs:
41
41
if : ${{ contains(env.COMPILED, matrix.language) }}
42
42
run : |
43
43
sudo apt update
44
- sudo apt install -y acl zip unzip apache2 php php-fpm php-gd \
44
+ sudo apt install -y acl zip unzip apache2 composer php php-fpm php-gd \
45
45
php-cli php-intl php-mbstring php-mysql php-curl php-json \
46
46
php-xml php-zip ntp make sudo debootstrap \
47
47
libcgroup-dev lsof php-cli php-curl php-json php-xml \
48
48
php-zip procps gcc g++ default-jre-headless \
49
49
default-jdk-headless ghc fp-compiler autoconf automake bats \
50
50
python3-sphinx python3-sphinx-rtd-theme rst2pdf fontconfig \
51
51
python3-yaml latexmk
52
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
53
- HASH="$(wget -q -O - https://composer.github.io/installer.sig)"
54
- php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
55
- sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
56
52
57
53
- name : Install composer files
58
54
if : ${{ contains(env.COMPILED, matrix.language) }}
You can’t perform that action at this time.
0 commit comments