Skip to content
Snippets Groups Projects
Commit 2cdc0a2b authored by Raul Barreras's avatar Raul Barreras
Browse files

Merge branch 'master' into 'develop'

Sync develop with master

See merge request !29
parents 5e2a316c c7294dea
No related branches found
No related tags found
2 merge requests!34develop to master,!29Sync develop with master
......@@ -27,13 +27,21 @@ Make All Images:
script:
- make
test:
Test Sonar Scanner:
stage: test
tags:
- dockerd
script:
- docker run --rm its-registry.unl.edu/unl-its/docker-ci/static-code-analysis sonar-scanner -v
Test PHP Lint:
stage: test
tags:
- linux, dockerd
script:
- t/php-lint/tests.sh
Push to Container Registry:
after_script:
- rm -f /var/lib/gitlab-runner/.docker/config.json
......
......@@ -12,7 +12,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.schema-version="1.0" \
maintainer="J.R. Barreras <barreras@unl.edu>"
ENV SONAR_SCANNER_VERSION 3.3.0.1492
ENV SONAR_SCANNER_VERSION 4.0.0.1744
WORKDIR /opt
......
......@@ -12,7 +12,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.schema-version="1.0" \
maintainer="Alan Nelson <alan.nelson@nebraska.edu>"
ENV SONAR_SCANNER_VERSION 3.2.0.1227
ENV SONAR_SCANNER_VERSION 4.0.0.1744
ENV SONAR_HOME /opt/sonar-scanner
ENV PATH ${PATH}:${SONAR_HOME}
......
TMP_DIR=`mktemp -d`
chmod 777 ${TMP_DIR}
touch "${TMP_DIR}/dumb php file with spaces.php"
touch "${TMP_DIR}/ddumb_php_file_without_spaces.php"
touch "${TMP_DIR}/$(printf '\u03c0').php"
docker run --rm -v "${TMP_DIR}:/work" its-registry.unl.edu/unl-its/docker-ci/php-lint:latest php-lint -d /work
RET=$?
rm -rf ${TMP_DIR}
if [ $RET -eq 0 ]; then
echo "PASS";
else
echo "FAIL";
fi
exit $RES
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment