From 4a7afcec8e26c76a50e64e793a20812f0194708a Mon Sep 17 00:00:00 2001 From: Matthew Wells Date: Wed, 25 Apr 2018 18:16:03 -0700 Subject: [PATCH 1/3] add gitlab-ci to (I think) match travis CI functionality --- .gitlab-ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..58430df --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,18 @@ +before_script: + - curl -sS https://getcomposer.org/installer | php + - php composer.phar install --no-progress + +tests:php70: + image: php:7.0 + script: + - vendor/bin/phpunit --coverage-text + +tests:php71: + image: php:7.1 + script: + - vendor/bin/phpunit --coverage-text + +tests:php72: + image: php:7.2 + script: + - vendor/bin/phpunit --coverage-text From 167df0cd55f82145ed5151b9a0c4a43ba0a04608 Mon Sep 17 00:00:00 2001 From: Matthew Wells Date: Wed, 25 Apr 2018 18:32:24 -0700 Subject: [PATCH 2/3] The php image doesn't come with git - normally, the before_script stuff would be done in a shell script --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 58430df..1408fdd 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,6 @@ before_script: + - apt-get update -yqq + - apt-get install git -yqq - curl -sS https://getcomposer.org/installer | php - php composer.phar install --no-progress From f2e364240450732859e136196dc0c0681698ffe1 Mon Sep 17 00:00:00 2001 From: Matthew Wells Date: Wed, 25 Apr 2018 18:56:23 -0700 Subject: [PATCH 3/3] trying ready-made-for-gitlab image --- .gitlab-ci.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1408fdd..7914905 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,20 +1,17 @@ before_script: - - apt-get update -yqq - - apt-get install git -yqq - - curl -sS https://getcomposer.org/installer | php - - php composer.phar install --no-progress + - composer install --no-progress tests:php70: - image: php:7.0 + image: edbizarro/gitlab-ci-pipeline-php:7.0 script: - vendor/bin/phpunit --coverage-text tests:php71: - image: php:7.1 + image: edbizarro/gitlab-ci-pipeline-php:7.1 script: - vendor/bin/phpunit --coverage-text tests:php72: - image: php:7.2 + image: edbizarro/gitlab-ci-pipeline-php:7.2 script: - vendor/bin/phpunit --coverage-text