Created
December 20, 2017 15:06
-
-
Save danielneis/5c6140ec8150c6151a54bccd26950278 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment