Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Chill-project
Chill-Report
Commits
9e0359ac
Commit
9e0359ac
authored
Sep 10, 2018
by
Julien Fastré
Browse files
remove packagist from gitlab-ci
parent
74bb2b3e
Pipeline
#73543
failed with stages
in 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
9e0359ac
...
...
@@ -12,7 +12,6 @@
stages
:
-
test
-
deploy
-
build-doc
-
deploy-doc
...
...
@@ -22,17 +21,6 @@ test:php-7.2:
<<
:
*test_definition
script
:
php vendor/bin/phpunit
deploy-packagist
:
stage
:
deploy
image
:
chill/ci-image:php-7.2
before_script
:
# test that PACKAGIST USERNAME and PACKAGIST_TOKEN variable are set
-
if [ -z ${PACKAGIST_USERNAME+x} ]; then echo "Please set PACKAGIST_USERNAME variable"; exit -1; fi
-
if [ -z ${PACKAGIST_TOKEN+x} ]; then echo "Please set PACKAGIST_TOKEN variable"; exit -1; fi
script
:
-
STATUSCODE=$(curl -XPOST -H'content-type:application/json' "https://packagist.org/api/update-package?username=$PACKAGIST_USERNAME&apiToken=$PACKAGIST_TOKEN" -d"{\"repository\":{\"url\":\"$CI_PROJECT_URL.git\"}}" --silent --output /dev/stderr --write-out "%{http_code}")
-
if [ $STATUSCODE = "202" ]; then exit 0; else exit $STATUSCODE; fi
# deploy documentation
api-doc-build
:
stage
:
build-doc
...
...
Write
Preview
Supports
Markdown
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