[*] test .gitlab-ci.yml
This commit is contained in:
1 parent
bc01088aa7
commit
801ccc480e
1 file changed
+2
-7
+2
-7
@@ -1,4 +1,4 @@
|
|||||||
image: php:7.4
|
image: composer:latest
|
||||||
stages: # List of stages for jobs, and their order of execution
|
stages: # List of stages for jobs, and their order of execution
|
||||||
- build
|
- build
|
||||||
- test
|
- test
|
||||||
@@ -7,16 +7,11 @@ stages: # List of stages for jobs, and their order of execution
|
|||||||
build-job: # This job runs in the build stage, which runs first.
|
build-job: # This job runs in the build stage, which runs first.
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- apt-get update
|
|
||||||
- apt-get install php-zip
|
|
||||||
- php -v
|
- php -v
|
||||||
- echo "Installing composer..."
|
- echo "Installing composer..."
|
||||||
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
|
||||||
- php composer-setup.php
|
|
||||||
- php -r "unlink('composer-setup.php');"
|
|
||||||
- pwd
|
- pwd
|
||||||
- ls
|
- ls
|
||||||
- php composer.phar install
|
- composer install
|
||||||
- echo "Compile complete."
|
- echo "Compile complete."
|
||||||
|
|
||||||
unit-test-job: # This job runs in the test stage.
|
unit-test-job: # This job runs in the test stage.
|
||||||
|
|||||||
Reference in new issue
Block a user