Skip to content
Snippets Groups Projects
Unverified Commit 3fed85aa authored by Tobias Reischmann's avatar Tobias Reischmann
Browse files

Updated travis

parent 22a94cb4
No related branches found
No related tags found
No related merge requests found
language: php language: php
sudo: false sudo: false
dist: trusty
cache: cache:
directories: directories:
...@@ -9,11 +10,6 @@ cache: ...@@ -9,11 +10,6 @@ cache:
addons: addons:
postgresql: "9.4" postgresql: "9.4"
apt:
packages:
- oracle-java9-installer
- oracle-java9-set-default
php: php:
- 7.0 - 7.0
...@@ -24,24 +20,35 @@ env: ...@@ -24,24 +20,35 @@ env:
- DB=pgsql MOODLE_BRANCH=MOODLE_34_STABLE - DB=pgsql MOODLE_BRANCH=MOODLE_34_STABLE
- DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE - DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
- DB=pgsql MOODLE_BRANCH=MOODLE_36_STABLE - DB=pgsql MOODLE_BRANCH=MOODLE_36_STABLE
- DB=pgsql MOODLE_BRANCH=MOODLE_37_STABLE
- DB=pgsql MOODLE_BRANCH=master - DB=pgsql MOODLE_BRANCH=master
- DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE - DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE
- DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE - DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
- DB=mysqli MOODLE_BRANCH=MOODLE_36_STABLE - DB=mysqli MOODLE_BRANCH=MOODLE_36_STABLE
- DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
- DB=mysqli MOODLE_BRANCH=master - DB=mysqli MOODLE_BRANCH=master
matrix: matrix:
allow_failures: allow_failures:
- env: DB=pgsql MOODLE_BRANCH=master - env: DB=pgsql MOODLE_BRANCH=master
- env: DB=mysqli MOODLE_BRANCH=master - env: DB=mysqli MOODLE_BRANCH=master
exclude:
- 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 fast_finish: true
before_install: before_install:
- phpenv config-rm xdebug.ini - phpenv config-rm xdebug.ini
- nvm install v8.9.4 - nvm install 8.9.4
- cd ../.. - cd ../..
- composer selfupdate - composer selfupdate
- composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci ^2 - composer create-project -n --no-dev --prefer-dist blackboard-open-source/moodle-plugin-ci ci ^2
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" - export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
jobs: jobs:
...@@ -49,7 +56,7 @@ jobs: ...@@ -49,7 +56,7 @@ jobs:
# Prechecks against latest Moodle stable only. # Prechecks against latest Moodle stable only.
- stage: static - stage: static
php: 7.1 php: 7.1
env: DB=mysqli MOODLE_BRANCH=MOODLE_36_STABLE env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
install: install:
- moodle-plugin-ci install --no-init - moodle-plugin-ci install --no-init
script: script:
...@@ -61,11 +68,20 @@ jobs: ...@@ -61,11 +68,20 @@ jobs:
- moodle-plugin-ci mustache - moodle-plugin-ci mustache
- moodle-plugin-ci grunt - moodle-plugin-ci grunt
- moodle-plugin-ci validate - moodle-plugin-ci validate
# Smaller build matrix for development builds
- stage: develop
php: 7.1
env: DB=mysqli MOODLE_BRANCH=MOODLE_37_STABLE
install: install:
- moodle-plugin-ci install - moodle-plugin-ci install
script:
- moodle-plugin-ci phpunit --coverage-clover
- moodle-plugin-ci behat
# Unit tests and behat tests against full matrix. # Unit tests and behat tests against full matrix.
install:
- moodle-plugin-ci install
-
script: script:
- moodle-plugin-ci phpunit --coverage-clover - moodle-plugin-ci phpunit --coverage-clover
- moodle-plugin-ci behat - moodle-plugin-ci behat
...@@ -74,4 +90,7 @@ after_success: ...@@ -74,4 +90,7 @@ after_success:
stages: stages:
- static - static
- test - 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)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment