forked from thanhtri/plagiarism_programming
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add travis file * Solve travis issues
- Loading branch information
Benedikt Schneider
authored
May 23, 2019
1 parent
13bf076
commit b1b166d
Showing
18 changed files
with
165 additions
and
57 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# This is the language of our project. | ||
language: php | ||
|
||
# If using Behat, then this should be true due to an issue with Travis CI. | ||
# If not using Behat, recommended to use `sudo: false` as it is faster. | ||
sudo: true | ||
|
||
# Installs the required version of Firefox for Behat, an updated version | ||
# of PostgreSQL and extra APT packages. Java 8 is only required | ||
# for Mustache command. | ||
addons: | ||
firefox: "47.0.1" | ||
postgresql: "9.4" | ||
apt: | ||
packages: | ||
- openjdk-8-jre-headless | ||
|
||
# Cache NPM's and Composer's caches to speed up build times. | ||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
- $HOME/.npm | ||
|
||
# Determines which versions of PHP to test our project against. Each version | ||
# listed here will create a separate build and run the tests against that | ||
# version of PHP. | ||
php: | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
|
||
# This section sets up the environment variables for the build. | ||
env: | ||
global: | ||
# This line determines which version of Moodle to test against. | ||
- MOODLE_BRANCH=MOODLE_36_STABLE | ||
- MOODLE_BRANCH=MOODLE_37_STABLE | ||
# This matrix is used for testing against multiple databases. So for | ||
# each version of PHP being tested, one build will be created for each | ||
# database listed here. | ||
matrix: | ||
- DB=pgsql | ||
- DB=mysqli | ||
|
||
# This lists steps that are run before the installation step. | ||
before_install: | ||
# This disables XDebug which should speed up the build. | ||
- phpenv config-rm xdebug.ini | ||
# This installs NodeJS which is used by Grunt, etc. | ||
- nvm install 8.9 | ||
- nvm use 8.9 | ||
# Currently we are inside of the clone of your repository. We move up two | ||
# directories to build the project. | ||
- cd ../.. | ||
# Install this project into a directory called "ci". | ||
- composer create-project -n --no-dev --prefer-dist blackboard-open-source/moodle-plugin-ci ci ^2 | ||
# Update the $PATH so scripts from this project can be called easily. | ||
- export PATH="$(cd ci/bin; pwd):$(cd ci/vendor/bin; pwd):$PATH" | ||
|
||
# This lists steps that are run for installation and setup. | ||
install: | ||
# Run the default install. The overview of what this does: | ||
# - Clone the Moodle project into a directory called moodle. | ||
# - Create a data directory called moodledata. | ||
# - Create Moodle config.php, database, etc. | ||
# - Copy your plugin(s) into Moodle. | ||
# - Run Composer install within Moodle. | ||
# - Run NPM install in Moodle and in your plugin if it has a "package.json". | ||
# - Run "grunt ignorefiles" within Moodle to update ignore file lists. | ||
# - If your plugin has Behat features, then Behat will be setup. | ||
# - If your plugin has unit tests, then PHPUnit will be setup. | ||
- moodle-plugin-ci install | ||
|
||
# This lists steps that are run for the purposes of testing. Any of | ||
# these steps can be re-ordered or removed to your liking. And of | ||
# course, you can add any of your own custom steps. | ||
script: | ||
# This step lints your PHP files to check for syntax errors. | ||
- moodle-plugin-ci phplint | ||
# This step runs the PHP Copy/Paste Detector on your plugin. | ||
# This helps to find code duplication. | ||
- moodle-plugin-ci phpcpd | ||
# This step runs the PHP Mess Detector on your plugin. This helps to find | ||
# potential problems with your code which can result in | ||
# refactoring opportunities. | ||
- moodle-plugin-ci phpmd | ||
# This step runs the Moodle Code Checker to make sure that your plugin | ||
# conforms to the Moodle coding standards. It is highly recommended | ||
# that you keep this step. | ||
- moodle-plugin-ci codechecker | ||
# This step runs some light validation on the plugin file structure | ||
# and code. Validation can be plugin specific. | ||
- moodle-plugin-ci validate | ||
# This step validates your plugin's upgrade steps. | ||
- moodle-plugin-ci savepoints | ||
# This step validates the HTML and Javascript in your Mustache templates. | ||
- moodle-plugin-ci mustache | ||
# This step runs Grunt tasks on the plugin. By default, it tries to run | ||
# tasks relevant to your plugin and Moodle version, but you can run | ||
# specific tasks by passing them as options, | ||
# EG: moodle-plugin-ci grunt -t task1 -t task2 | ||
- moodle-plugin-ci grunt -t eslint:amd -t uglify:amd | ||
# This step runs the PHPUnit tests of your plugin. If your plugin has | ||
# PHPUnit tests, then it is highly recommended that you keep this step. | ||
- moodle-plugin-ci phpunit | ||
# This step runs the Behat tests of your plugin. If your plugin has | ||
# Behat tests, then it is highly recommended that you keep this step. | ||
# There are two important options that you may want to use: | ||
# - The auto rerun option allows you to rerun failures X number of times, | ||
# default is 2, EG usage: --auto-rerun 3 | ||
# - The dump option allows you to print the failure HTML to the console, | ||
# handy for debugging, EG usage: --dump | ||
- moodle-plugin-ci behat |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.