Fix up the build steps
This commit is contained in:
parent
a559ee24df
commit
a49c156007
@ -7,25 +7,25 @@ stages:
|
|||||||
before_script:
|
before_script:
|
||||||
- apt-get update
|
- apt-get update
|
||||||
- apt-get install zip unzip
|
- apt-get install zip unzip
|
||||||
|
|
||||||
test:
|
|
||||||
stage: test
|
|
||||||
script:
|
|
||||||
- cd api
|
- cd api
|
||||||
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||||
- php composer-setup.php
|
- php composer-setup.php
|
||||||
- php -r "unlink('composer-setup.php');"
|
- php -r "unlink('composer-setup.php');"
|
||||||
- php composer.phar update
|
- php composer.phar update
|
||||||
- composer install
|
- composer install
|
||||||
- cd Tests
|
|
||||||
- phpunit
|
test:
|
||||||
- cd ../../ci
|
stage: test
|
||||||
- bash build_zip.sh
|
script:
|
||||||
#- php deploy_release_to_github.php
|
- cd api
|
||||||
|
- phpunit
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
when: manual
|
when: manual
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
- ls
|
- cd ../ci
|
||||||
- php -r "echo 'Hello, world!';"
|
- bash build_zip.sh
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- release.zip
|
Loading…
x
Reference in New Issue
Block a user