summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-06-19 18:49:00 +0300
committerValentin Popov <info@valentineus.link>2018-06-19 18:49:00 +0300
commit3fa97bad312f24b815eac5b374e321512bc6aa4a (patch)
tree74c72fc6b069e51ede0368b71317567a6163aeec /.travis.yml
parentbdaf1d35b2b87394ec7c5974e48b7d48d852d0c5 (diff)
downloadlocal_webhooks-3fa97bad312f24b815eac5b374e321512bc6aa4a.tar.xz
local_webhooks-3fa97bad312f24b815eac5b374e321512bc6aa4a.zip
Fix error install.xml
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml84
1 files changed, 45 insertions, 39 deletions
diff --git a/.travis.yml b/.travis.yml
index 097a724..ad98742 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,35 +1,38 @@
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:
- - 5.6
+ - 7.0
- 7.1
+ - 7.2
env:
- - DB=pgsql MOODLE_BRANCH=MOODLE_26_STABLE
- - DB=pgsql MOODLE_BRANCH=MOODLE_27_STABLE
- - DB=pgsql MOODLE_BRANCH=MOODLE_28_STABLE
- - DB=pgsql MOODLE_BRANCH=MOODLE_29_STABLE
- - DB=pgsql MOODLE_BRANCH=MOODLE_30_STABLE
- - DB=pgsql MOODLE_BRANCH=MOODLE_31_STABLE
- - DB=pgsql MOODLE_BRANCH=MOODLE_32_STABLE
- - DB=pgsql MOODLE_BRANCH=MOODLE_33_STABLE
- - DB=mysqli MOODLE_BRANCH=MOODLE_26_STABLE
- - DB=mysqli MOODLE_BRANCH=MOODLE_27_STABLE
- - DB=mysqli MOODLE_BRANCH=MOODLE_28_STABLE
- - DB=mysqli MOODLE_BRANCH=MOODLE_29_STABLE
- - DB=mysqli MOODLE_BRANCH=MOODLE_30_STABLE
- - DB=mysqli MOODLE_BRANCH=MOODLE_31_STABLE
- - DB=mysqli MOODLE_BRANCH=MOODLE_32_STABLE
- - DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE
+ global:
+ - MOODLE_BRANCH=MOODLE_35_STABLE
+ matrix:
+ - DB=mysqli
+ - DB=pgsql
before_install:
+ - phpenv config-rm xdebug.ini
+ - nvm install 8.9
+ - nvm use 8.9
- cd ../..
- 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"
install:
@@ -40,31 +43,34 @@ script:
- moodle-plugin-ci phpcpd
- moodle-plugin-ci phpmd
- moodle-plugin-ci codechecker
- - moodle-plugin-ci csslint
- - moodle-plugin-ci shifter
- - moodle-plugin-ci jshint
+ - moodle-plugin-ci validate
+ - moodle-plugin-ci savepoints
+ - moodle-plugin-ci mustache
+ - moodle-plugin-ci grunt
- moodle-plugin-ci phpunit
- moodle-plugin-ci behat
jobs:
include:
- stage: deploy
+ - stage: test old
+ env: DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE
+ php: 5.6
- env:
- - DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE
+ - stage: deploy
+ php: 7.2
- php: 7.1
+ before_deploy:
+ - cd "$TRAVIS_REPO_SLUG"
+ - git stash --all
+ - /bin/sh build.sh
- before_deploy:
- - cd $TRAVIS_REPO_SLUG
- - git stash --all
- - /bin/sh build.sh
+ deploy:
+ api_key: $GITHUB_PROJECT_TOKEN
+ email: "info@valentineus.link"
+ file: "../build/*.zip"
+ file_glob: true
+ provider: releases
+ skip_cleanup: true
- deploy:
- provider: releases
- skip_cleanup: true
- file: "../local_webhooks.zip"
- email: "info@valentineus.link"
- api_key: $GITHUB_PROJECT_TOKEN
- on:
- tags: true \ No newline at end of file
+ on:
+ tags: true \ No newline at end of file