Official file example Travis CI
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
656b560a04
commit
7675e83f78
61
.travis.yml
61
.travis.yml
@ -1,32 +1,45 @@
|
|||||||
language: php
|
language: php
|
||||||
|
|
||||||
os: "linux"
|
sudo: true
|
||||||
sudo: false
|
|
||||||
|
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:
|
php:
|
||||||
- 5.6
|
- 5.6
|
||||||
|
- 7.0
|
||||||
- 7.1
|
- 7.1
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- DB=mysqli MOODLE_BRANCH=MOODLE_29_STABLE
|
global:
|
||||||
- DB=mysqli MOODLE_BRANCH=MOODLE_30_STABLE
|
- MOODLE_BRANCH=MOODLE_29_STABLE
|
||||||
- DB=mysqli MOODLE_BRANCH=MOODLE_31_STABLE
|
- MOODLE_BRANCH=MOODLE_30_STABLE
|
||||||
- DB=mysqli MOODLE_BRANCH=MOODLE_32_STABLE
|
- MOODLE_BRANCH=MOODLE_31_STABLE
|
||||||
- DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE
|
- MOODLE_BRANCH=MOODLE_32_STABLE
|
||||||
- DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE
|
- MOODLE_BRANCH=MOODLE_33_STABLE
|
||||||
- DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
|
- MOODLE_BRANCH=MOODLE_34_STABLE
|
||||||
- DB=pgsql MOODLE_BRANCH=MOODLE_29_STABLE
|
- MOODLE_BRANCH=MOODLE_35_STABLE
|
||||||
- DB=pgsql MOODLE_BRANCH=MOODLE_30_STABLE
|
|
||||||
- DB=pgsql MOODLE_BRANCH=MOODLE_31_STABLE
|
matrix:
|
||||||
- DB=pgsql MOODLE_BRANCH=MOODLE_32_STABLE
|
- DB=mysqli
|
||||||
- DB=pgsql MOODLE_BRANCH=MOODLE_33_STABLE
|
- DB=pgsql
|
||||||
- DB=pgsql MOODLE_BRANCH=MOODLE_34_STABLE
|
|
||||||
- DB=pgsql MOODLE_BRANCH=MOODLE_35_STABLE
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
|
- phpenv config-rm xdebug.ini
|
||||||
|
- nvm install 8.9
|
||||||
|
- nvm use 8.9
|
||||||
- cd ../..
|
- cd ../..
|
||||||
- composer selfupdate
|
- composer create-project -n --no-dev --prefer-dist moodlerooms/moodle-plugin-ci ci ^2
|
||||||
- composer create-project -n --no-dev moodlerooms/moodle-plugin-ci ci ^1
|
|
||||||
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
|
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@ -37,9 +50,10 @@ script:
|
|||||||
- moodle-plugin-ci phpcpd
|
- moodle-plugin-ci phpcpd
|
||||||
- moodle-plugin-ci phpmd
|
- moodle-plugin-ci phpmd
|
||||||
- moodle-plugin-ci codechecker
|
- moodle-plugin-ci codechecker
|
||||||
- moodle-plugin-ci csslint
|
- moodle-plugin-ci validate
|
||||||
- moodle-plugin-ci shifter
|
- moodle-plugin-ci savepoints
|
||||||
- moodle-plugin-ci jshint
|
- moodle-plugin-ci mustache
|
||||||
|
- moodle-plugin-ci grunt
|
||||||
- moodle-plugin-ci phpunit
|
- moodle-plugin-ci phpunit
|
||||||
- moodle-plugin-ci behat
|
- moodle-plugin-ci behat
|
||||||
|
|
||||||
@ -47,11 +61,6 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|
||||||
env:
|
|
||||||
- DB=mysqli MOODLE_BRANCH=MOODLE_35_STABLE
|
|
||||||
|
|
||||||
php: 7.2
|
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- cd $TRAVIS_REPO_SLUG
|
- cd $TRAVIS_REPO_SLUG
|
||||||
- git stash --all
|
- git stash --all
|
||||||
|
Loading…
x
Reference in New Issue
Block a user