Commit 5ece773d authored by Daniel Neis Araujo's avatar Daniel Neis Araujo

add continuous integration with gitlab

parent 7ce3aeb7
Pipeline #15335287 passed with stage
in 2 minutes and 52 seconds
image: moodlehq/moodle-php-apache:7.0
services:
- mysql:latest
cache:
paths:
- $HOME/.composer/cache
variables:
MOODLE_BRANCH: "MOODLE_34_STABLE"
DB: "mysqli"
MYSQL_ROOT_PASSWORD: "superrootpass"
TRAVIS_BUILD_DIR: "$CI_PROJECT_DIR"
before_script:
- apt update && apt install git-core mysql-client npm -y
- cd $CI_PROJECT_DIR/..
- curl -sS https://getcomposer.org/installer | php
- mv composer.phar /usr/local/bin/composer
- composer create-project -n --no-dev moodlerooms/moodle-plugin-ci ci ^1
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH"
- chmod u+x ci/bin/moodle-plugin-ci
- chmod u+x ci/bin/*
- umask u+x
- moodle-plugin-ci install --db-user=root --db-pass=superrootpass --db-host=mysql -vvv
job1:
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 validate ; moodle-plugin-ci phpunit ; moodle-plugin-ci behat
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment