From 57452b8f579c68c50d2a807228f5ee0a8b711444 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 11 Jun 2018 10:02:30 +0400 Subject: Add Travis CI Signed-off-by: Valentin Popov --- .travis.yml | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 .travis.yml (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..210298a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,69 @@ +language: php + +sudo: false + +os: "linux" + +php: + - 5.6 + - 7.2 + +env: + - DB=mysqli MOODLE_BRANCH=MOODLE_29_STABLE + - DB=mysqli MOODLE_BRANCH=MOODLE_30_STABLE + - DB=mysqli MOODLE_BRANCH=MOODLE_31_STABLE + - DB=mysqli MOODLE_BRANCH=MOODLE_32_STABLE + - DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE + - DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE + - DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE + - DB=pgsql MOODLE_BRANCH=MOODLE_29_STABLE + - DB=pgsql MOODLE_BRANCH=MOODLE_30_STABLE + - DB=pgsql MOODLE_BRANCH=MOODLE_31_STABLE + - DB=pgsql MOODLE_BRANCH=MOODLE_32_STABLE + - DB=pgsql MOODLE_BRANCH=MOODLE_33_STABLE + - DB=pgsql MOODLE_BRANCH=MOODLE_34_STABLE + - DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE + +before_install: + - cd ../.. + - composer selfupdate + - composer create-project -n --no-dev moodlerooms/moodle-plugin-ci ci ^1 + - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" + +install: + - moodle-plugin-ci install + +script: + - moodle-plugin-ci phplint + - moodle-plugin-ci phpcpd + - moodle-plugin-ci phpmd + - moodle-plugin-ci codechecker + - moodle-plugin-ci csslint + - moodle-plugin-ci shifter + - moodle-plugin-ci jshint + - moodle-plugin-ci phpunit + - moodle-plugin-ci behat + +jobs: + include: + stage: deploy + + env: + - DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE + + php: 7.2 + + before_deploy: + - cd $TRAVIS_REPO_SLUG + - git stash --all + - /bin/sh build.sh + + deploy: + api_key: $GITHUB_PROJECT_TOKEN + email: "info@valentineus.link" + file: "../build/*.zip" + file_glob: true + provider: releases + skip_cleanup: true + on: + tags: true -- cgit v1.2.3 From 8d2ff185912c6aee4d9c790613610d2f45ba90b2 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 11 Jun 2018 15:18:26 +0400 Subject: Removing old software from testing Signed-off-by: Valentin Popov --- .travis.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 210298a..5678560 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,19 +4,15 @@ sudo: false os: "linux" -php: - - 5.6 - - 7.2 +php: 7.2 env: - - DB=mysqli MOODLE_BRANCH=MOODLE_29_STABLE - DB=mysqli MOODLE_BRANCH=MOODLE_30_STABLE - DB=mysqli MOODLE_BRANCH=MOODLE_31_STABLE - DB=mysqli MOODLE_BRANCH=MOODLE_32_STABLE - DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE - DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE - DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE - - DB=pgsql MOODLE_BRANCH=MOODLE_29_STABLE - DB=pgsql MOODLE_BRANCH=MOODLE_30_STABLE - DB=pgsql MOODLE_BRANCH=MOODLE_31_STABLE - DB=pgsql MOODLE_BRANCH=MOODLE_32_STABLE -- cgit v1.2.3 From b8801a458743a3815e57aa24383e8a8bb82ca9cd Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 11 Jun 2018 15:21:55 +0400 Subject: Removing old versions of Moodle from testing Signed-off-by: Valentin Popov --- .travis.yml | 10 ---------- 1 file changed, 10 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 5678560..0518346 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,17 +7,7 @@ os: "linux" php: 7.2 env: - - DB=mysqli MOODLE_BRANCH=MOODLE_30_STABLE - - DB=mysqli MOODLE_BRANCH=MOODLE_31_STABLE - - DB=mysqli MOODLE_BRANCH=MOODLE_32_STABLE - - DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE - - DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE - DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE - - DB=pgsql MOODLE_BRANCH=MOODLE_30_STABLE - - DB=pgsql MOODLE_BRANCH=MOODLE_31_STABLE - - DB=pgsql MOODLE_BRANCH=MOODLE_32_STABLE - - DB=pgsql MOODLE_BRANCH=MOODLE_33_STABLE - - DB=pgsql MOODLE_BRANCH=MOODLE_34_STABLE - DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE before_install: -- cgit v1.2.3 From faa816f34651c0c585cd75bdf234e7b60d74c5e3 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 11 Jun 2018 15:27:59 +0400 Subject: Updating the PostgreSQL version Signed-off-by: Valentin Popov --- .travis.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 0518346..5cd5ca1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,16 @@ language: php -sudo: false - os: "linux" - php: 7.2 +sudo: false + +addons: + postgresql: "10" env: + - DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE - DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE + - DB=pgsql MOODLE_BRANCH=MOODLE_34_STABLE - DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE before_install: -- cgit v1.2.3 From 8e4dc79100a9bd21c979e6e27708a24bf37fcf94 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 11 Jun 2018 15:31:31 +0400 Subject: Added services for testing Signed-off-by: Valentin Popov --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 5cd5ca1..e10d610 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,10 @@ sudo: false addons: postgresql: "10" +services: + - "mysql" + - "postgresql" + env: - DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE - DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE -- cgit v1.2.3 From 656b560a04948bf0089c7e43e5d89da689f62a32 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 11 Jun 2018 15:36:38 +0400 Subject: Rollback of the test file to the previous version Signed-off-by: Valentin Popov --- .travis.yml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index e10d610..2550f4b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,19 +1,25 @@ language: php os: "linux" -php: 7.2 sudo: false -addons: - postgresql: "10" - -services: - - "mysql" - - "postgresql" +php: + - 5.6 + - 7.1 env: + - DB=mysqli MOODLE_BRANCH=MOODLE_29_STABLE + - DB=mysqli MOODLE_BRANCH=MOODLE_30_STABLE + - DB=mysqli MOODLE_BRANCH=MOODLE_31_STABLE + - DB=mysqli MOODLE_BRANCH=MOODLE_32_STABLE + - DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE - DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE - DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE + - DB=pgsql MOODLE_BRANCH=MOODLE_29_STABLE + - DB=pgsql MOODLE_BRANCH=MOODLE_30_STABLE + - DB=pgsql MOODLE_BRANCH=MOODLE_31_STABLE + - DB=pgsql MOODLE_BRANCH=MOODLE_32_STABLE + - DB=pgsql MOODLE_BRANCH=MOODLE_33_STABLE - DB=pgsql MOODLE_BRANCH=MOODLE_34_STABLE - DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE -- cgit v1.2.3 From 7675e83f783991257271ae78f83e9accd4b9416d Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 11 Jun 2018 16:17:47 +0400 Subject: Official file example Travis CI Signed-off-by: Valentin Popov --- .travis.yml | 61 +++++++++++++++++++++++++++++++++++-------------------------- 1 file changed, 35 insertions(+), 26 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 2550f4b..eb437e5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,32 +1,45 @@ language: php -os: "linux" -sudo: false +sudo: true + +addons: + firefox: "47.0.1" + postgresql: "9.3" + apt: + packages: + - "oracle-java8-installer" + - "oracle-java8-set-default" + +cache: + directories: + - "$HOME/.composer/cache" + - "$HOME/.npm" php: - 5.6 + - 7.0 - 7.1 env: - - DB=mysqli MOODLE_BRANCH=MOODLE_29_STABLE - - DB=mysqli MOODLE_BRANCH=MOODLE_30_STABLE - - DB=mysqli MOODLE_BRANCH=MOODLE_31_STABLE - - DB=mysqli MOODLE_BRANCH=MOODLE_32_STABLE - - DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE - - DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE - - DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE - - DB=pgsql MOODLE_BRANCH=MOODLE_29_STABLE - - DB=pgsql MOODLE_BRANCH=MOODLE_30_STABLE - - DB=pgsql MOODLE_BRANCH=MOODLE_31_STABLE - - DB=pgsql MOODLE_BRANCH=MOODLE_32_STABLE - - DB=pgsql MOODLE_BRANCH=MOODLE_33_STABLE - - DB=pgsql MOODLE_BRANCH=MOODLE_34_STABLE - - DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE + global: + - MOODLE_BRANCH=MOODLE_29_STABLE + - MOODLE_BRANCH=MOODLE_30_STABLE + - MOODLE_BRANCH=MOODLE_31_STABLE + - MOODLE_BRANCH=MOODLE_32_STABLE + - MOODLE_BRANCH=MOODLE_33_STABLE + - MOODLE_BRANCH=MOODLE_34_STABLE + - MOODLE_BRANCH=MOODLE_35_STABLE + + matrix: + - DB=mysqli + - DB=pgsql before_install: + - phpenv config-rm xdebug.ini + - nvm install 8.9 + - nvm use 8.9 - cd ../.. - - composer selfupdate - - composer create-project -n --no-dev moodlerooms/moodle-plugin-ci ci ^1 + - composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci ^2 - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" install: @@ -37,9 +50,10 @@ script: - moodle-plugin-ci phpcpd - moodle-plugin-ci phpmd - moodle-plugin-ci codechecker - - moodle-plugin-ci csslint - - moodle-plugin-ci shifter - - moodle-plugin-ci jshint + - moodle-plugin-ci validate + - moodle-plugin-ci savepoints + - moodle-plugin-ci mustache + - moodle-plugin-ci grunt - moodle-plugin-ci phpunit - moodle-plugin-ci behat @@ -47,11 +61,6 @@ jobs: include: stage: deploy - env: - - DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE - - php: 7.2 - before_deploy: - cd $TRAVIS_REPO_SLUG - git stash --all -- cgit v1.2.3 From 37c6b7ac7294d966264231cc1cd96ee55a6c0140 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 11 Jun 2018 18:43:15 +0400 Subject: Separate tasks in testing Signed-off-by: Valentin Popov --- .travis.yml | 125 ++++++++++++++++++++++++++++-------------------------------- 1 file changed, 59 insertions(+), 66 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index eb437e5..f0e270d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,77 +1,70 @@ language: php -sudo: true - -addons: - firefox: "47.0.1" - postgresql: "9.3" - apt: - packages: - - "oracle-java8-installer" - - "oracle-java8-set-default" - -cache: - directories: - - "$HOME/.composer/cache" - - "$HOME/.npm" +jobs: + include: + - stage: test + sudo: true -php: - - 5.6 - - 7.0 - - 7.1 + addons: + firefox: "47.0.1" + postgresql: "9.3" + apt: + packages: + - "oracle-java8-installer" + - "oracle-java8-set-default" -env: - global: - - MOODLE_BRANCH=MOODLE_29_STABLE - - MOODLE_BRANCH=MOODLE_30_STABLE - - MOODLE_BRANCH=MOODLE_31_STABLE - - MOODLE_BRANCH=MOODLE_32_STABLE - - MOODLE_BRANCH=MOODLE_33_STABLE - - MOODLE_BRANCH=MOODLE_34_STABLE - - MOODLE_BRANCH=MOODLE_35_STABLE + cache: + directories: + - "$HOME/.composer/cache" + - "$HOME/.npm" - matrix: - - DB=mysqli - - DB=pgsql + php: + - 5.6 + - 7.0 + - 7.1 -before_install: - - phpenv config-rm xdebug.ini - - nvm install 8.9 - - nvm use 8.9 - - cd ../.. - - composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci ^2 - - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" + env: + global: + - MOODLE_BRANCH=MOODLE_35_STABLE + matrix: + - DB=mysqli + - DB=pgsql -install: - - moodle-plugin-ci install + before_install: + - phpenv config-rm xdebug.ini + - nvm install 8.9 + - nvm use 8.9 + - cd ../.. + - composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci ^2 + - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" -script: - - moodle-plugin-ci phplint - - moodle-plugin-ci phpcpd - - moodle-plugin-ci phpmd - - moodle-plugin-ci codechecker - - moodle-plugin-ci validate - - moodle-plugin-ci savepoints - - moodle-plugin-ci mustache - - moodle-plugin-ci grunt - - moodle-plugin-ci phpunit - - moodle-plugin-ci behat + install: + - moodle-plugin-ci install -jobs: - include: - stage: deploy + script: + - moodle-plugin-ci phplint + - moodle-plugin-ci phpcpd + - moodle-plugin-ci phpmd + - moodle-plugin-ci codechecker + - moodle-plugin-ci validate + - moodle-plugin-ci savepoints + - moodle-plugin-ci mustache + - moodle-plugin-ci grunt + - moodle-plugin-ci phpunit + - moodle-plugin-ci behat - before_deploy: - - cd $TRAVIS_REPO_SLUG - - git stash --all - - /bin/sh build.sh + - stage: deploy + before_deploy: + - cd "$TRAVIS_REPO_SLUG" + - git stash --all + - /bin/sh build.sh - deploy: - api_key: $GITHUB_PROJECT_TOKEN - email: "info@valentineus.link" - file: "../build/*.zip" - file_glob: true - provider: releases - skip_cleanup: true - on: - tags: true + deploy: + api_key: $GITHUB_PROJECT_TOKEN + email: "info@valentineus.link" + file: "../build/*.zip" + file_glob: true + provider: releases + skip_cleanup: true + on: + tags: true -- cgit v1.2.3 From f2f22e98178c53cd81d2a86db0ed7d3d190b6cfd Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 11 Jun 2018 18:47:40 +0400 Subject: A simple test case Signed-off-by: Valentin Popov --- .travis.yml | 90 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 44 insertions(+), 46 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index f0e270d..fdb51c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,58 +1,56 @@ language: php +sudo: true -jobs: - include: - - stage: test - sudo: true - - addons: - firefox: "47.0.1" - postgresql: "9.3" - apt: - packages: - - "oracle-java8-installer" - - "oracle-java8-set-default" +addons: + firefox: "47.0.1" + postgresql: "9.3" + apt: + packages: + - "oracle-java8-installer" + - "oracle-java8-set-default" - cache: - directories: - - "$HOME/.composer/cache" - - "$HOME/.npm" +cache: + directories: + - "$HOME/.composer/cache" + - "$HOME/.npm" - php: - - 5.6 - - 7.0 - - 7.1 +php: + - 5.6 + - 7.0 + - 7.1 - env: - global: - - MOODLE_BRANCH=MOODLE_35_STABLE - matrix: - - DB=mysqli - - DB=pgsql +env: + global: + - MOODLE_BRANCH=MOODLE_35_STABLE + matrix: + - DB=mysqli + - DB=pgsql - before_install: - - phpenv config-rm xdebug.ini - - nvm install 8.9 - - nvm use 8.9 - - cd ../.. - - composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci ^2 - - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" +before_install: + - phpenv config-rm xdebug.ini + - nvm install 8.9 + - nvm use 8.9 + - cd ../.. + - composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci ^2 + - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" - install: - - moodle-plugin-ci install +install: + - moodle-plugin-ci install - script: - - moodle-plugin-ci phplint - - moodle-plugin-ci phpcpd - - moodle-plugin-ci phpmd - - moodle-plugin-ci codechecker - - moodle-plugin-ci validate - - moodle-plugin-ci savepoints - - moodle-plugin-ci mustache - - moodle-plugin-ci grunt - - moodle-plugin-ci phpunit - - moodle-plugin-ci behat +script: + - moodle-plugin-ci phplint + - moodle-plugin-ci phpcpd + - moodle-plugin-ci phpmd + - moodle-plugin-ci codechecker + - moodle-plugin-ci validate + - moodle-plugin-ci savepoints + - moodle-plugin-ci mustache + - moodle-plugin-ci grunt + - moodle-plugin-ci phpunit + - moodle-plugin-ci behat +jobs: + include: - stage: deploy before_deploy: - cd "$TRAVIS_REPO_SLUG" -- cgit v1.2.3 From f5a68e946224a1dfb22f1599ce7a66c8ed48f4f0 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 11 Jun 2018 19:00:30 +0400 Subject: Disabled script Signed-off-by: Valentin Popov --- .travis.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index fdb51c6..bab4e4d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -52,6 +52,7 @@ script: jobs: include: - stage: deploy + script: false before_deploy: - cd "$TRAVIS_REPO_SLUG" - git stash --all -- cgit v1.2.3 From 1bf55db7d78fe83e7a7f08a7a3e7fa3634642709 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 11 Jun 2018 19:31:24 +0400 Subject: Separate testing of the obsolete version Signed-off-by: Valentin Popov --- .travis.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index bab4e4d..5dec4a5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,9 +15,9 @@ cache: - "$HOME/.npm" php: - - 5.6 - 7.0 - 7.1 + - 7.2 env: global: @@ -26,11 +26,17 @@ env: - DB=mysqli - DB=pgsql +matrix: + include: + - php: 5.6 + env: MOODLE_BRANCH=MOODLE_33_STABLE + before_install: - phpenv config-rm xdebug.ini - nvm install 8.9 - nvm use 8.9 - cd ../.. + - composer selfupdate - composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci ^2 - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" @@ -52,7 +58,9 @@ script: jobs: include: - stage: deploy + install: false script: false + before_deploy: - cd "$TRAVIS_REPO_SLUG" - git stash --all -- cgit v1.2.3 From aecca6d806bd7aaab53e54709b347d28e5715260 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 11 Jun 2018 19:42:14 +0400 Subject: Micro fix Signed-off-by: Valentin Popov --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 5dec4a5..37b3434 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,8 +2,8 @@ language: php sudo: true addons: - firefox: "47.0.1" - postgresql: "9.3" + firefox: "latest-esr" + postgresql: "9.6" apt: packages: - "oracle-java8-installer" @@ -27,7 +27,7 @@ env: - DB=pgsql matrix: - include: + allow_failures: - php: 5.6 env: MOODLE_BRANCH=MOODLE_33_STABLE -- cgit v1.2.3 From b63de6c6f66b1ac06df168a0f46e38de48b2b4a4 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 11 Jun 2018 19:46:16 +0400 Subject: An old version of PHP is added Signed-off-by: Valentin Popov --- .travis.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 37b3434..757ddfc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,6 +15,7 @@ cache: - "$HOME/.npm" php: + - 5.6 - 7.0 - 7.1 - 7.2 -- cgit v1.2.3 From 217745824a9b5af8d6efc1bf5458fbd103b178ff Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 11 Jun 2018 20:29:21 +0400 Subject: Adding a stage Signed-off-by: Valentin Popov --- .travis.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 757ddfc..98e16eb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,6 @@ cache: - "$HOME/.npm" php: - - 5.6 - 7.0 - 7.1 - 7.2 @@ -27,11 +26,6 @@ env: - DB=mysqli - DB=pgsql -matrix: - allow_failures: - - php: 5.6 - env: MOODLE_BRANCH=MOODLE_33_STABLE - before_install: - phpenv config-rm xdebug.ini - nvm install 8.9 @@ -58,9 +52,18 @@ script: jobs: include: + - stage: test old + php: 5.6 + + env: + global: + - MOODLE_BRANCH=MOODLE_33_STABLE + matrix: + - DB=mysqli + - DB=pgsql + - stage: deploy - install: false - script: false + php: 7.2 before_deploy: - cd "$TRAVIS_REPO_SLUG" -- cgit v1.2.3 From 389ee99fcf69c26f5b185aa88949af527aad976c Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 11 Jun 2018 20:33:30 +0400 Subject: Mini Fix Signed-off-by: Valentin Popov --- .travis.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 98e16eb..cc3569f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,15 +53,9 @@ script: jobs: include: - stage: test old + env: MOODLE_BRANCH=MOODLE_33_STABLE php: 5.6 - env: - global: - - MOODLE_BRANCH=MOODLE_33_STABLE - matrix: - - DB=mysqli - - DB=pgsql - - stage: deploy php: 7.2 -- cgit v1.2.3 From 57c8057f2989b53e4ba7ed0131132f4056ac6d90 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 11 Jun 2018 20:37:59 +0400 Subject: Final file Travis-CI Signed-off-by: Valentin Popov --- .travis.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index cc3569f..aa07be0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -71,5 +71,6 @@ jobs: file_glob: true provider: releases skip_cleanup: true + on: tags: true -- cgit v1.2.3 From 21cf0558fce3e491243cd02efcd2a866277f3839 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 11 Jun 2018 20:50:33 +0400 Subject: Added databases for older versions Signed-off-by: Valentin Popov --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index aa07be0..78ec3da 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,8 +53,10 @@ script: jobs: include: - stage: test old - env: MOODLE_BRANCH=MOODLE_33_STABLE php: 5.6 + env: + - DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE + - DB=pgsql MOODLE_BRANCH=MOODLE_33_STABLE - stage: deploy php: 7.2 -- cgit v1.2.3 From 78d5acfb0613cbd0f4d2fa62df0b2246e1268ba0 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 11 Jun 2018 20:52:15 +0400 Subject: Fix env Signed-off-by: Valentin Popov --- .travis.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index 78ec3da..6270ce6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -53,10 +53,8 @@ script: jobs: include: - stage: test old + env: DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE php: 5.6 - env: - - DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE - - DB=pgsql MOODLE_BRANCH=MOODLE_33_STABLE - stage: deploy php: 7.2 -- cgit v1.2.3