Skip to content

Commit

Permalink
travis checks added
Browse files Browse the repository at this point in the history
  • Loading branch information
ewallah committed Oct 29, 2018
1 parent 2e49c8f commit a48dfc6
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .travis.yml
@@ -0,0 +1,55 @@
language: php

sudo: required

addons:
firefox: "47.0.1"
postgresql: "9.6"
apt:
packages:
- oracle-java8-installer
- oracle-java8-set-default
- chromium-chromedriver

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

php:
- 7.0
- 7.2

env:
- DB=pgsql MOODLE_BRANCH=MOODLE_34_STABLE
- DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
- DB=pgsql MOODLE_BRANCH=master
- DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE
- DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
- DB=mysqli MOODLE_BRANCH=master
- DB=mariadb MOODLE_BRANCH=MOODLE_34_STABLE
- DB=mariadb MOODLE_BRANCH=MOODLE_35_STABLE
- DB=mariadb MOODLE_BRANCH=master

before_install:
- phpenv config-rm xdebug.ini
- git config remote.origin.fetch +refs/heads/*:refs/remotes/origin/*
- git fetch --unshallow --tags
- git symbolic-ref --short HEAD || git checkout -b behat_fix
- 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

script:
- moodle-plugin-ci phpunit --coverage-text
- moodle-plugin-ci phpunit --coverage-clover
- moodle-plugin-ci behat
- moodle-plugin-ci behat --profile chrome

after_success:
- moodle-plugin-ci coveralls-upload

0 comments on commit a48dfc6

Please sign in to comment.