Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
phundament
app
Commits
16565ee9
Commit
16565ee9
authored
Mar 31, 2016
by
Tobias Munk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated lint job
parent
75658e47
Pipeline
#8480
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
lint.sh
build/scripts/lint.sh
+9
-9
No files found.
build/scripts/lint.sh
View file @
16565ee9
...
...
@@ -19,6 +19,12 @@ make -n all
docker run
--rm
-v
"
${
PWD
}
/
${
DOCKERFILE_PATH
}
/
${
DOCKERFILE
}
"
:/Dockerfile:ro redcoolbeans/dockerlint
docker run
--rm
--privileged
-v
"
${
PWD
}
/
${
DOCKERFILE_PATH
}
:/root/"
projectatomic/dockerfile-lint dockerfile_lint
-f
${
DOCKERFILE
}
# shell scripts
docker run
--rm
-v
"
${
PWD
}
/build/scripts/lint.sh:/tmp/FileToBeChecked"
chrisdaish/shellcheck
||
EXIT_CODE
=
1
docker run
--rm
-v
"
${
PWD
}
/build/scripts/test.sh:/tmp/FileToBeChecked"
chrisdaish/shellcheck
||
EXIT_CODE
=
1
docker run
--rm
-v
"
${
PWD
}
/build/scripts/deploy.sh:/tmp/FileToBeChecked"
chrisdaish/shellcheck
||
EXIT_CODE
=
1
docker run
--rm
-v
"
${
PWD
}
/build/scripts/requirements.sh:/tmp/FileToBeChecked"
chrisdaish/shellcheck
||
EXIT_CODE
=
1
# composer packages
docker-compose run
--rm
php composer diagnose
||
EXIT_CODE
=
1
docker-compose run
--rm
php composer show
-i
||
EXIT_CODE
=
1
...
...
@@ -26,16 +32,10 @@ docker-compose run --rm php climb || EXIT_CODE=1
# PHP source
docker-compose run
--rm
php vendor/bin/php-cs-fixer fix
--dry-run
--format
=
txt
-v
src
||
EXIT_CODE
=
1
docker run
--rm
-v
"
${
PWD
}
:/project"
jolicode/phaudit phploc src/
docker run
--rm
-v
"
${
PWD
}
:/project"
jolicode/phaudit phpcpd src/
docker run
--rm
-v
"
${
PWD
}
:/project"
jolicode/phaudit phpmd src text cleancode,codesize,controversial,design,naming,unusedcode
docker run
--rm
-v
"
${
PWD
}
:/project"
jolicode/phaudit phpmetrics
--report-html
=
tests/_metrics/report.html src/
# shell scripts
docker run
--rm
-v
"
${
PWD
}
/build/scripts/lint.sh:/tmp/FileToBeChecked"
chrisdaish/shellcheck
||
EXIT_CODE
=
1
docker run
--rm
-v
"
${
PWD
}
/build/scripts/test.sh:/tmp/FileToBeChecked"
chrisdaish/shellcheck
||
EXIT_CODE
=
1
docker run
--rm
-v
"
${
PWD
}
/build/scripts/deploy.sh:/tmp/FileToBeChecked"
chrisdaish/shellcheck
||
EXIT_CODE
=
1
docker run
--rm
-v
"
${
PWD
}
/build/scripts/requirements.sh:/tmp/FileToBeChecked"
chrisdaish/shellcheck
||
EXIT_CODE
=
1
docker run
--rm
-v
"
${
PWD
}
:/project"
jolicode/phaudit phploc src/
>
tests/_lint/loc.txt
docker run
--rm
-v
"
${
PWD
}
:/project"
jolicode/phaudit phpmd src html cleancode,codesize,controversial,design,naming,unusedcode
>
tests/_lint/mess.html
docker run
--rm
-v
"
${
PWD
}
:/project"
jolicode/phaudit phpmetrics
--report-html
=
tests/_lint/metrics.html src/
set
+v
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment