Skip to content

Commit

Permalink
Release v3.8-r1, add Moodle 3.8 to Travis Matrix, Use linux lineendin…
Browse files Browse the repository at this point in the history
…gs in .travis.yml
  • Loading branch information
justusdieckmann committed Nov 21, 2019
1 parent faa23cd commit b41eadf
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 110 deletions.
222 changes: 114 additions & 108 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,108 +1,114 @@
language: php

sudo: required
dist: trusty

addons:
firefox: "47.0.1"
postgresql: "9.4"
apt:
packages:
- oracle-java9-installer
- oracle-java9-set-default

cache:
directories:
- $HOME/.composer/cache
- $HOME/.npm

php:
- 7.0
- 7.1
- 7.3

matrix:
#allow_failures:
#- env: DB=pgsql MOODLE_BRANCH=master
#- env: DB=mysqli MOODLE_BRANCH=master
exclude:
- php: 7.3
env: DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
- php: 7.3
env: DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
- php: 7.0
env: DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE
- php: 7.0
env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
- php: 7.0
env: DB=pgsql MOODLE_BRANCH=master
- php: 7.0
env: DB=mysqli MOODLE_BRANCH=master
fast_finish: true

env:
global:
- IGNORE_PATHS=thirdparty
- BEHAT=yes
matrix:
- DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
- DB=pgsql MOODLE_BRANCH=MOODLE_36_STABLE
- DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE
- DB=pgsql MOODLE_BRANCH=master
- DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
- DB=mysqli MOODLE_BRANCH=MOODLE_36_STABLE
- DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
- DB=mysqli MOODLE_BRANCH=master

before_install:
- phpenv config-rm xdebug.ini
- nvm install 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"

jobs:
include:
# Prechecks against latest Moodle stable only.
- stage: static
php: 7.3
env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
install:
- moodle-plugin-ci install --no-init
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
# Smaller build matrix for development builds
- stage: develop
php: 7.3
env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
install:
- moodle-plugin-ci install
script:
- moodle-plugin-ci phpunit --coverage-clover
- moodle-plugin-ci behat

# Default 'test' stage: Unit tests and behat tests against full matrix.

install:
- moodle-plugin-ci install
script:
- moodle-plugin-ci phpunit --coverage-clover
- moodle-plugin-ci behat

after_success:
- bash <(curl -s https://codecov.io/bash)

stages:
- static
- name: develop
if: branch != master AND (type != pull_request OR head_branch != master) AND (tag IS blank)
- name: test
if: branch = master OR (type = pull_request AND head_branch = master) OR (tag IS present)
language: php

sudo: required
dist: trusty

addons:
firefox: "47.0.1"
postgresql: "9.4"
apt:
packages:
- oracle-java9-installer
- oracle-java9-set-default

cache:
directories:
- $HOME/.composer/cache
- $HOME/.npm

php:
- 7.0
- 7.1
- 7.3

matrix:
#allow_failures:
#- env: DB=pgsql MOODLE_BRANCH=master
#- env: DB=mysqli MOODLE_BRANCH=master
exclude:
- php: 7.3
env: DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
- php: 7.3
env: DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
- php: 7.0
env: DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE
- php: 7.0
env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
- php: 7.0
env: DB=pgsql MOODLE_BRANCH=MOODLE_38_STABLE
- php: 7.0
env: DB=mysqli MOODLE_BRANCH=MOODLE_38_STABLE
- php: 7.0
env: DB=pgsql MOODLE_BRANCH=master
- php: 7.0
env: DB=mysqli MOODLE_BRANCH=master
fast_finish: true

env:
global:
- IGNORE_PATHS=thirdparty
- BEHAT=yes
matrix:
- DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
- DB=pgsql MOODLE_BRANCH=MOODLE_36_STABLE
- DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE
- DB=pgsql MOODLE_BRANCH=MOODLE_38_STABLE
- DB=pgsql MOODLE_BRANCH=master
- DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
- DB=mysqli MOODLE_BRANCH=MOODLE_36_STABLE
- DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
- DB=mysqli MOODLE_BRANCH=MOODLE_38_STABLE
- DB=mysqli MOODLE_BRANCH=master

before_install:
- phpenv config-rm xdebug.ini
- nvm install 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"

jobs:
include:
# Prechecks against latest Moodle stable only.
- stage: static
php: 7.3
env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
install:
- moodle-plugin-ci install --no-init
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
# Smaller build matrix for development builds
- stage: develop
php: 7.3
env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
install:
- moodle-plugin-ci install
script:
- moodle-plugin-ci phpunit --coverage-clover
- moodle-plugin-ci behat

# Default 'test' stage: Unit tests and behat tests against full matrix.

install:
- moodle-plugin-ci install
script:
- moodle-plugin-ci phpunit --coverage-clover
- moodle-plugin-ci behat

after_success:
- bash <(curl -s https://codecov.io/bash)

stages:
- static
- name: develop
if: branch != master AND (type != pull_request OR head_branch != master) AND (tag IS blank)
- name: test
if: branch = master OR (type = pull_request AND head_branch = master) OR (tag IS present)
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@

$plugin->component = 'block_qrcode'; // Full name of the plugin.
$plugin->maturity = MATURITY_STABLE;
$plugin->release = 'v3.6-r1';
$plugin->version = 2018112000; // The current plugin version (Date: YYYMMDDXX)
$plugin->release = 'v3.8-r1';
$plugin->version = 2019112100; // The current plugin version (Date: YYYMMDDXX)
$plugin->requires = 2017050500; // Requires this Moodle version.

0 comments on commit b41eadf

Please sign in to comment.