Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
phpunit-hhi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
91 Carriage
phpunit-hhi
Commits
620a4952
Unverified
Commit
620a4952
authored
Feb 19, 2017
by
Simon Welsh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Install composer before running
parent
e421e558
Pipeline
#174
failed with stages
in 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
.gitlab-ci.yml
.gitlab-ci.yml
+1
-0
tests/composer.sh
tests/composer.sh
+17
-0
No files found.
.gitlab-ci.yml
View file @
620a4952
...
...
@@ -5,6 +5,7 @@ stages:
before_script
:
-
"
echo
'assume_php=false'
>
.hhconfig"
-
./tests/composer.sh
-
composer install
cache
:
...
...
tests/composer.sh
0 → 100755
View file @
620a4952
#!/bin/sh
EXPECTED_SIGNATURE
=
$(
wget
-q
-O
- https://composer.github.io/installer.sig
)
php
-r
"copy('https://getcomposer.org/installer', 'composer-setup.php');"
ACTUAL_SIGNATURE
=
$(
php
-r
"echo hash_file('SHA384', 'composer-setup.php');"
)
if
[
"
$EXPECTED_SIGNATURE
"
!=
"
$ACTUAL_SIGNATURE
"
]
then
>
&2
echo
'ERROR: Invalid installer signature'
rm
composer-setup.php
exit
1
fi
php composer-setup.php
--quiet
RESULT
=
$?
rm
composer-setup.php
exit
$RESULT
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