From 0ca6eedd762bef86c77727dba81bacaecace11ce Mon Sep 17 00:00:00 2001 From: Krzysiek <krzysiek@inspirelabs.pl> Date: Wed, 21 Mar 2018 12:18:52 +0100 Subject: [PATCH] Fix for composer in docker + environments --- .gitlab-ci.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a187881..c0edf1b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -53,7 +53,7 @@ code style test: script: - ls -l - php --version - - php composer.phar phpcs + - composer phpcs unit test 0: image: wpdesknet/phpunit-woocommerce:0-0 @@ -64,7 +64,7 @@ unit test 0: script: - ls -l - php --version - - php composer.phar phpunit-unit + - composer phpunit-unit integration test 0-0: image: wpdesknet/phpunit-woocommerce:0-0 @@ -76,7 +76,7 @@ integration test 0-0: - build php script: - php --version - - php composer.phar phpunit-integration + - composer phpunit-integration integration test 1-1: image: wpdesknet/phpunit-woocommerce:1-1 @@ -88,7 +88,7 @@ integration test 1-1: - build php script: - php --version - - php composer.phar phpunit-integration + - composer phpunit-integration integration test 2-2: image: wpdesknet/phpunit-woocommerce:2-2 @@ -100,7 +100,7 @@ integration test 2-2: - build php script: - php --version - - php composer.phar phpunit-integration + - composer phpunit-integration integration test 3-3: image: wpdesknet/phpunit-woocommerce:3-3 @@ -163,7 +163,7 @@ build to deploy: - cp -rf ${CI_PROJECT_DIR}/* /tmp/release - cp -rf /tmp/release/* ${CI_PROJECT_DIR}/release - cd ${CI_PROJECT_DIR}/release - - php composer.phar install --no-dev --no-progress + - composer install --no-dev --no-progress - rm -rf build-coverage - rm -rf release - rm -rf tests @@ -195,6 +195,9 @@ deploy to shop: - /tmp/deploy_shop.sh ${CI_PROJECT_NAME} release.zip ${CI_PROJECT_NAME}.zip only: - tags + environment: + name: wpdesk shop + url: https://wpdeskplugin.s3.amazonaws.com/$CI_PROJECT_NAME.zip when: manual deploy to repository: @@ -210,4 +213,7 @@ deploy to repository: - /tmp/deploy_repository.sh flexible-pdf release /tmp/svn-repository only: - tags + environment: + name: wordpress repository + url: https://downloads.wordpress.org/plugin/$CI_PROJECT_NAME.$CI_COMMIT_REF_NAME.zip when: manual \ No newline at end of file -- GitLab