Skip to content
Snippets Groups Projects
Commit ba94c5af authored by Chris Galusha's avatar Chris Galusha Committed by Alan Nelson
Browse files

Laravel dusk

parent 889d89a7
No related branches found
No related tags found
2 merge requests!85PHP Container Updates,!82Laravel dusk
...@@ -26,6 +26,20 @@ Make PHP Unit Test: ...@@ -26,6 +26,20 @@ Make PHP Unit Test:
except: except:
- schedules - 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: Make Android Build:
stage: build stage: build
tags: tags:
......
...@@ -40,6 +40,20 @@ Publish PHP Unit Test: ...@@ -40,6 +40,20 @@ Publish PHP Unit Test:
except: except:
- schedules - 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: Publish Android Build:
<<: *push_to_registry <<: *push_to_registry
variables: variables:
......
...@@ -20,12 +20,13 @@ BUILD_ARGS := --build-arg VCS_REF=$(GIT_COMMIT) ...@@ -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 .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 # 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-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-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 mobile: android-build-server
static-code-analysis: static-code-analysis_latest static-code-analysys_php static-code-analysys_python static-code-analysys_android 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 utility: alpine-ssh-client merge-request-check
...@@ -95,6 +96,14 @@ php-unit-test_8.2: php-unit-test/8.2/Dockerfile ...@@ -95,6 +96,14 @@ php-unit-test_8.2: php-unit-test/8.2/Dockerfile
php-unit-test_latest: php-unit-test_8.2 php-unit-test_latest: php-unit-test_8.2
docker tag ${REPO_ORG}/php-unit-test:8.2 ${REPO_ORG}/php-unit-test:latest 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 # Mobile Applications
#################### ####################
android-build-server: android-build-server/Dockerfile 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 ...@@ -5,7 +5,7 @@ ARG VCS_REF
ARG VERSION ARG VERSION
LABEL org.label-schema.build-date=$BUILD_DATE \ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="PHP 8.2 Unit Tester" \ 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.vcs-ref=$VCS_REF \
org.label-schema.vendor="University of Nebraska - Lincoln" \ org.label-schema.vendor="University of Nebraska - Lincoln" \
org.label-schema.version=$VERSION \ 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