Skip to content
Snippets Groups Projects
Commit 6dd41a81 authored by Alan Nelson's avatar Alan Nelson
Browse files

Merge branch 'laravel-dusk' into 'develop'

Laravel dusk

See merge request !82
parents 889d89a7 ba94c5af
Branches
No related tags found
2 merge requests!85PHP Container Updates,!82Laravel dusk
......@@ -26,6 +26,20 @@ Make PHP Unit Test:
except:
- schedules
Make PHP Browser Test:
stage: build
tags:
- linux
- dockerd
script:
- make php-browser-test
only:
changes:
- php-browser-test/*
- php-browser-test/**/*
except:
- schedules
Make Android Build:
stage: build
tags:
......
......@@ -40,6 +40,20 @@ Publish PHP Unit Test:
except:
- schedules
Publish PHP Browser Test:
<<: *push_to_registry
variables:
IMG_NAME: "php-browser-test"
needs: ["Make PHP Browser Test"]
only:
refs:
- master
changes:
- php-browser-test/*
- php-browser-test/**/*
except:
- schedules
Publish Android Build:
<<: *push_to_registry
variables:
......
......@@ -20,12 +20,13 @@ BUILD_ARGS := --build-arg VCS_REF=$(GIT_COMMIT)
.PHONY: all clean test $(DOCKERFILES) static-code-analysis mobile delete_dangling_images security publish utility dotnet
all: php-lint php-unit-test mobile static-code-analysis utility detect-secrets dependency-check xml-lint
all: php-lint php-unit-test php-browser-test mobile static-code-analysis utility detect-secrets dependency-check xml-lint
# Image Groups
####################
php-lint: php-lint_5.6 php-lint_7.0 php-lint_7.1 php-lint_7.2 php-lint_7.3 php-lint_7.4 php-lint_8.0 php-lint_8.1 php-lint_8.2 php-lint_latest
php-unit-test: php-unit-test_5.6 php-unit-test_7.0 php-unit-test_7.1 php-unit-test_7.2 php-unit-test_7.3 php-unit-test_7.4 php-unit-test_8.0 php-unit-test_8.1 php-unit-test_8.2 php-unit-test_latest
php-browser-test: php-browser-test_8.2 php-browser-test_latest
mobile: android-build-server
static-code-analysis: static-code-analysis_latest static-code-analysys_php static-code-analysys_python static-code-analysys_android
utility: alpine-ssh-client merge-request-check
......@@ -95,6 +96,14 @@ php-unit-test_8.2: php-unit-test/8.2/Dockerfile
php-unit-test_latest: php-unit-test_8.2
docker tag ${REPO_ORG}/php-unit-test:8.2 ${REPO_ORG}/php-unit-test:latest
# PHP Unit Test Images
####################
php-browser-test_8.2: php-browser-test/8.2/Dockerfile
docker build $(BUILD_ARGS) -t ${REPO_ORG}/php-browser-test:8.2 -f php-browser-test/8.2/Dockerfile php-browser-test/8.2
php-browser-test_latest: php-browser-test_8.2
docker tag ${REPO_ORG}/php-browser-test:8.2 ${REPO_ORG}/php-browser-test:latest
# Mobile Applications
####################
android-build-server: android-build-server/Dockerfile
......
FROM its-registry.unl.edu/unl-its/docker-ci/php-unit-test:8.2
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="PHP 8.2 Browser Tester" \
org.label-schema.description="Perform chromedriver browser tests in PHP (Ex. Laravel Dusk)" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vendor="University of Nebraska - Lincoln" \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0" \
maintainer="Alan Nelson <alan.nelson@nebraska.edu>"
RUN apk add --no-cache chromium-chromedriver
COPY ./browser-test-entrypoint.sh /usr/local/bin/browser-test-entrypoint
RUN chown root:root /usr/local/bin/browser-test-entrypoint \
&& chmod 755 /usr/local/bin/browser-test-entrypoint
ENTRYPOINT ["/usr/local/bin/browser-test-entrypoint"]
CMD ["sh"]
#!/bin/sh
set -e
chromedriver --allowed-ips="127.0.0.1" > /dev/null &
exec "$@"
\ No newline at end of file
......@@ -5,7 +5,7 @@ ARG VCS_REF
ARG VERSION
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="PHP 8.2 Unit Tester" \
org.label-schema.description="" \
org.label-schema.description="Perform unit tests in PHP (Ex. PHPUnit)" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vendor="University of Nebraska - Lincoln" \
org.label-schema.version=$VERSION \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment