local_webhooks/.travis.yml

60 lines
1.2 KiB
YAML
Raw Normal View History

2017-10-19 07:04:14 +04:00
language: php
sudo: false
os: "linux"
php:
- 5.6
2018-02-18 18:05:33 +04:00
- 7.2
2017-10-19 07:04:14 +04:00
env:
- DB=pgsql MOODLE_BRANCH=MOODLE_32_STABLE
- DB=pgsql MOODLE_BRANCH=MOODLE_33_STABLE
2018-02-18 18:02:23 +04:00
- DB=pgsql MOODLE_BRANCH=MOODLE_34_STABLE
2017-10-19 07:04:14 +04:00
- DB=mysqli MOODLE_BRANCH=MOODLE_32_STABLE
- DB=mysqli MOODLE_BRANCH=MOODLE_33_STABLE
2018-02-18 18:02:23 +04:00
- DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE
2017-10-19 07:04:14 +04:00
before_install:
- cd ../..
- composer selfupdate
- composer create-project -n --no-dev moodlerooms/moodle-plugin-ci ci ^1
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
install:
- moodle-plugin-ci install
script:
- moodle-plugin-ci phplint
- 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 phpunit
- moodle-plugin-ci behat
jobs:
include:
2017-10-19 07:20:17 +04:00
stage: deploy
2017-10-19 07:04:14 +04:00
env:
2018-02-18 18:02:23 +04:00
- DB=mysqli MOODLE_BRANCH=MOODLE_34_STABLE
2017-10-19 07:04:14 +04:00
2018-02-18 18:05:33 +04:00
php: 7.2
2017-10-19 07:04:14 +04:00
before_deploy:
2017-10-19 07:20:17 +04:00
- cd $TRAVIS_REPO_SLUG
2017-10-19 07:04:14 +04:00
- git stash --all
- /bin/sh build.sh
deploy:
provider: releases
skip_cleanup: true
file: "../local_webhooks.zip"
email: "info@valentineus.link"
api_key: $GITHUB_PROJECT_TOKEN
on:
tags: true