Skip to content
Snippets Groups Projects
Commit 1bbc5ab3 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #11895 Test E2E

parent 9fb6bb0b
No related branches found
No related tags found
No related merge requests found
services:
- postgres:10.1
- httpd:latest
variables:
POSTGRES_DB: "MaarchCourrier"
......@@ -31,10 +32,6 @@ before_script:
job_e2e:
image: php:7.4-apache
services:
- postgres:10.1
- httpd:latest
- selenium/standalone-firefox
stage: test
script:
- service apache2 start
......@@ -57,11 +54,11 @@ job_e2e:
- npm install npm@latest -g
- npm set registry https://registry.npmjs.org/
- npm install
- npm run build
- npm run build-prod
- apt-get install -yqq openjdk-11-jdk
- sed 's/<databaseserver>.*<\/databaseserver>/<databaseserver>postgres<\/databaseserver>/;s/<databasepassword>.*<\/databasepassword>/<databasepassword><\/databasepassword>/;s/<databasename>.*<\/databasename>/<databasename>MaarchCourrier<\/databasename>/;s/<databaseuser>.*<\/databaseuser>/<databaseuser>maarch<\/databaseuser>/' apps/maarch_entreprise/xml/config.xml.default > apps/maarch_entreprise/xml/config.xml
- curl -o /dev/null --silent --head --write-out '%{http_code}\n' http://127.0.0.1/MaarchCourrier
# - firefox --version
- firefox --version
- npm run ee-launch --host=selenium__standalone-firefox
artifacts:
paths:
......
......@@ -13,6 +13,11 @@ apt-get install -y libpq-dev libxml2-dev libxslt1-dev libpng-dev unoconv xpdf-ut
&& pecl install xdebug-2.9.3 \
&& docker-php-ext-enable xdebug \
&& docker-php-ext-install gd \
&& FIREFOX_URL="https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-US" \
&& ACTUAL_URL=$(curl -Ls -o /dev/null -w %{url_effective} $FIREFOX_URL) \
&& curl --silent --show-error --location --fail --retry 3 --output /tmp/firefox.tar.bz2 $ACTUAL_URL \
&& tar -xvjf /tmp/firefox.tar.bz2 -C /opt \
&& ln -s /opt/firefox/firefox /usr/local/bin/firefox \
&& a2enmod rewrite \
&& touch directory.txt \
&& echo "<Directory /var/www/html>" >> directory.txt \
......
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