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

Commit

Permalink
Laravel updates for Scrutinizer/Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
gggrant committed Jul 15, 2018
1 parent 4023e49 commit 458e74c
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 75 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Expand Up @@ -10,5 +10,5 @@ web.docker
.dockerignore

data
vendor
tests
vendor
10 changes: 5 additions & 5 deletions .env.example
@@ -1,15 +1,15 @@
APP_ENV=local
APP_KEY=
PP_ENV=local
APP_KEY=base64:O+NqDh79ROAbk5Fu3SIi0nvezSdanPKL5UhtIwJ516E=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
DB_DATABASE=talentcloud
DB_USERNAME=talentcloud
DB_PASSWORD=talentcloud

BROADCAST_DRIVER=log
CACHE_DRIVER=file
Expand Down
13 changes: 1 addition & 12 deletions .gitignore
Expand Up @@ -23,11 +23,9 @@ npm-debug.log
*~

## TalentCloud
/selenium_tests
/etc/ssl/
/tests
/build
/data
/doc

## Laravel
Homestead.json
Expand All @@ -49,12 +47,3 @@ package-lock.json
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries

# Netbeans
nbproject/
/nbproject/
/nbproject/private/
/nbproject/private/private.properties

# SSL Certs
etc/ssl/
89 changes: 41 additions & 48 deletions .scrutinizer.yml
@@ -1,24 +1,13 @@
# Talent Cloud
# .scrutinizer.yml

build:
environment:
nodes:
docker-build:
environment:
# caching works with the remote_engine and the local executor
php:
version: 5.6
docker: true
version: 5.6
hosts:
local.dev: '127.0.0.1'

apache2:
modules: ['rewrite']
sites:
symfony_app:
web_root: 'public_html/'
host: 'local.dev'
rules:
- 'RewriteCond %{HTTP_REFERER} !^$'
- 'RewriteCond %{HTTP_REFERER} !^http://(tc.)?gccollab.ca/ [NC]'
- 'RewriteRule .(gif|jpg|png)$ - [F]'
local.dev: $DOCKER_IP
docker: true

# tests:
# override:
Expand All @@ -29,46 +18,50 @@ build:
# format: 'clover'

filter:
excluded_paths:
excluded_paths:
- '*/data/*'
- '*/node_modules/*'
- '*/tests/*'
- '*/vendor/*'

checks:
php:
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: true
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true
php:
remove_extra_empty_lines: true
remove_php_closing_tag: true
remove_trailing_whitespace: true
fix_use_statements:
remove_unused: true
preserve_multiple: false
preserve_blanklines: true
order_alphabetically: true
fix_php_opening_tag: true
fix_linefeed: true
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true

tools:
external_code_coverage: false
js_hint:
filter:
excluded_paths: ['*/tests/*','*/vendor/*']
php_mess_detector:
filter:
excluded_paths: ['*/tests/*','*/vendor/*']
sensiolabs_security_checker: true
external_code_coverage: false
js_hint:
filter:
excluded_paths: ['*/tests/*','*/vendor/*','*/node_modules/*','*/data/*']
php_mess_detector:
filter:
excluded_paths: ['*/tests/*','*/vendor/*','*/node_modules/*','*/data/*']
sensiolabs_security_checker: true
php_pdepend:
excluded_dirs:
- tests
- vendor
excluded_dirs:
- tests
- vendor
- data
- node_modules

# external_code_coverage:
# timeout: '777'
# runs: 2
# timeout: '777'
# runs: 2

php_hhvm: true
# PHP Similarity Analyzer and Copy/paste Detector cannot be used at
# the same time right now. Make sure to either remove, or disable one.
php_sim: false
php_cpd: true
php_sim: true
php_cpd: false
16 changes: 7 additions & 9 deletions .travis.yml
@@ -1,36 +1,34 @@
language:
- php
# language:
# - php

sudo: required

env:
env-docker:
DOCKER_COMPOSE_VERSION: 1.18.0

services:
- docker

before_install:
- sudo apt-get update
- sudo apt update
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- docker-compose --version
- docker-compose ps -q | xargs docker inspect -f '{{ .State.ExitCode }}' | grep -v 0 | wc -l | tr -d ' '

before_script:
- sudo rm -rf /etc/docker
- sudo rm -rf /usr/bin/docker-*
- sudo make docker-start
- sleep 2m

script:
- docker build -t gggrant/talentcloud:travis-ci_0.0.1
- sudo make apidoc
# sudo make apidoc
- sudo make gen-certs
- sudo make mysql-dump
- sudo make mysql-restore
- sudo make phpmd
- sudo make test

after_script:
- docker build -t gggrant/tc-laravel:travis
- sudo make docker-stop

0 comments on commit 458e74c

Please sign in to comment.