16.diff (2259B)
1 diff --git a/.codeclimate.yml b/.codeclimate.yml 2 new file mode 100644 3 index 0000000..9360882 4 --- /dev/null 5 +++ b/.codeclimate.yml 6 @@ -0,0 +1,50 @@ 7 +# This is a sample .codeclimate.yml configured for Engine analysis on Code 8 +# Climate Platform. For an overview of the Code Climate Platform, see here: 9 +# http://docs.codeclimate.com/article/300-the-codeclimate-platform 10 + 11 +# Under the engines key, you can configure which engines will analyze your repo. 12 +# Each key is an engine name. For each value, you need to specify enabled: true 13 +# to enable the engine as well as any other engines-specific configuration. 14 + 15 +# For more details, see here: 16 +# http://docs.codeclimate.com/article/289-configuring-your-repository-via-codeclimate-yml#platform 17 + 18 +# For a list of all available engines, see here: 19 +# http://docs.codeclimate.com/article/296-engines-available-engines 20 + 21 +engines: 22 +# to turn on an engine, add it here and set enabled to `true` 23 +# to turn off an engine, set enabled to `false` or remove it 24 + rubocop: 25 + enabled: true 26 + golint: 27 + enabled: true 28 + gofmt: 29 + enabled: true 30 + eslint: 31 + enabled: true 32 + csslint: 33 + enabled: true 34 + 35 +# Engines can analyze files and report issues on them, but you can separately 36 +# decide which files will receive ratings based on those issues. This is 37 +# specified by path patterns under the ratings key. 38 + 39 +# For more details see here: 40 +# http://docs.codeclimate.com/article/289-configuring-your-repository-via-codeclimate-yml#platform 41 + 42 +# Note: If the ratings key is not specified, this will result in a 0.0 GPA on your dashboard. 43 + 44 +# ratings: 45 +# paths: 46 +# - app/** 47 +# - lib/** 48 +# - "**.rb" 49 +# - "**.go" 50 + 51 +# You can globally exclude files from being analyzed by any engine using the 52 +# exclude_paths key. 53 + 54 +#exclude_paths: 55 +#- spec/**/* 56 +#- vendor/**/* 57 diff --git a/.travis.yml b/.travis.yml 58 index 898cfef..4a28809 100644 59 --- a/.travis.yml 60 +++ b/.travis.yml 61 @@ -1,6 +1,17 @@ 62 +#Test php5.6 and php7.0 63 language: php 64 php: 65 - 5.6 66 + - 7.0 67 +#RequireDB 68 env: 69 - DB=mysql 70 +#Allow errors in php7 71 +matrix: 72 + allow_failures: 73 + - php: 7.0 74 +#Create Database 75 +before_script: 76 + - mysql -e 'create database RPICMS;' 77 +#RunTests 78 script: phpunit --configuration phpunit_$DB.xml --coverage-text