Skip to content
This repository has been archived by the owner on Sep 4, 2022. It is now read-only.

Commit

Permalink
Add TravisCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
gjb2048 committed Feb 20, 2016
1 parent 79ec062 commit 40bb4b9
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .gitattributes
@@ -0,0 +1,24 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text eol=lf

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.php text
*.js text
*.json text
*.css text
*.less text
*.svg text
*.txt text
*.md text
*.xml text

# Denote all files that are truly binary and should not be modified.
*.gif binary
*.png binary
*.jpg binary
*.eot binary
*.otf binary
*.ttf binary
*.woff binary
*.woff2 binary
14 changes: 14 additions & 0 deletions .gitignore
@@ -0,0 +1,14 @@
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db
*.psd
*.bak
quickpush.sh
/node_modules
/style/*.map
/nbproject/private/
9 changes: 9 additions & 0 deletions .jshintrc
@@ -0,0 +1,9 @@
{
"extends": "../../.jshintrc",
"globals": {
"$": false,
"console": false,
"Modernizr": false,
"Headroom": false
}
}
47 changes: 47 additions & 0 deletions .travis.yml
@@ -0,0 +1,47 @@
language: php

sudo: false

cache:
directories:
- $HOME/.composer/cache

php:
# Only run the lowest and highest supported versions to reduce the load on travis-ci.org.
- 5.4
# - 5.5
# - 5.6
- 7.0

matrix:
allow_failures:
- php: 7.0

env:
global:
- MOODLE_BRANCH=master
# - IGNORE_PATHS=amd/build,amd/src/affix.js,amd/src/bootstrap.js,amd/src/carousel.js,amd/src/fitvids.js,amd/src/jBreadCrumb.js
# Ignore custom.css until CSSlint can be instructed to ignore lines for '[[setting:customcss]]'.
# Also ignore generated CSS files.
- IGNORE_NAMES=*.txt,font-awesome.css,glyphicon-font.css
matrix:
- DB=pgsql
- DB=mysqli

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 jshint
- moodle-plugin-ci phpunit

0 comments on commit 40bb4b9

Please sign in to comment.