Updating the autotest file
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
parent
f28ff05598
commit
f3b5ab5616
57
.travis.yml
57
.travis.yml
@ -1,25 +1,38 @@
|
|||||||
language: php
|
language: php
|
||||||
|
sudo: true
|
||||||
|
|
||||||
sudo: false
|
addons:
|
||||||
|
firefox: "latest-esr"
|
||||||
|
postgresql: "9.6"
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- "oracle-java8-installer"
|
||||||
|
- "oracle-java8-set-default"
|
||||||
|
|
||||||
os: "linux"
|
cache:
|
||||||
|
directories:
|
||||||
|
- "$HOME/.composer/cache"
|
||||||
|
- "$HOME/.npm"
|
||||||
|
|
||||||
php:
|
php:
|
||||||
- 5.6
|
- 7.0
|
||||||
|
- 7.1
|
||||||
- 7.2
|
- 7.2
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- DB=pgsql MOODLE_BRANCH=MOODLE_32_STABLE
|
global:
|
||||||
- DB=pgsql MOODLE_BRANCH=MOODLE_33_STABLE
|
- MOODLE_BRANCH=MOODLE_35_STABLE
|
||||||
- DB=pgsql MOODLE_BRANCH=MOODLE_34_STABLE
|
matrix:
|
||||||
- DB=mysqli MOODLE_BRANCH=MOODLE_32_STABLE
|
- DB=mysqli
|
||||||
- DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE
|
- DB=pgsql
|
||||||
- DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE
|
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
|
- phpenv config-rm xdebug.ini
|
||||||
|
- nvm install 8.9
|
||||||
|
- nvm use 8.9
|
||||||
- cd ../..
|
- cd ../..
|
||||||
- composer selfupdate
|
- 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"
|
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@ -30,31 +43,33 @@ 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
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
stage: deploy
|
- stage: test old
|
||||||
|
env: DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE
|
||||||
env:
|
php: 5.6
|
||||||
- DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE
|
|
||||||
|
|
||||||
|
- stage: deploy
|
||||||
php: 7.2
|
php: 7.2
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- cd $TRAVIS_REPO_SLUG
|
- cd "$TRAVIS_REPO_SLUG"
|
||||||
- git stash --all
|
- git stash --all
|
||||||
- /bin/sh build.sh
|
- /bin/sh build.sh
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
api_key: $GITHUB_PROJECT_TOKEN
|
||||||
|
email: "info@valentineus.link"
|
||||||
|
file: "build/*.zip"
|
||||||
|
file_glob: true
|
||||||
provider: releases
|
provider: releases
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
file: "../local_webhooks.zip"
|
|
||||||
email: "info@valentineus.link"
|
|
||||||
api_key: $GITHUB_PROJECT_TOKEN
|
|
||||||
on:
|
on:
|
||||||
tags: true
|
tags: true
|
Loading…
x
Reference in New Issue
Block a user