Verified Commit 208eb212 authored by Alexandre Morin's avatar Alexandre Morin
Browse files

Update gitlab ci - comment unit test

parent dbd83118
Pipeline #3498 passed with stage
in 4 minutes and 11 seconds
......@@ -19,162 +19,164 @@ cache:
- cache/Cypress
- node_modules
unit-tests:php-7.3:
image: php:7.3-apache
stage: tests
before_script:
- apt-get update > /dev/null
- mkdir -p /usr/share/man/man1
- mkdir -p /usr/share/man/man7
- apt-get install cron -yqq > /dev/null
- apt-get install libreoffice -yqq > /dev/null
- bash ci/docker_install_php.sh > /dev/null
- bash ci/docker_install_database.sh > /dev/null
script:
- useradd -m -g www-data maarch
- export APACHE_RUN_USER=maarch
- mkdir -p /var/www/html/
- cp -R /builds/maarch/maarchRM/ /var/www/maarchRM/
- mv /var/www/maarchRM/ /var/www/laabs/
- cd /var/www/laabs
- cp data/maarchRM/conf/vhost.conf.default data/maarchRM/conf/vhost.conf
- cp data/maarchRM/conf/configuration.ini.default data/maarchRM/conf/configuration.ini
- cp data/maarchRM/conf/confvars.ini.default data/maarchRM/conf/confvars.ini
- mkdir -p /var/www/laabs/data/maarchRM/repository/archives_1 /var/www/laabs/data/maarchRM/repository/archives_2
- chown -R maarch:www-data /var/www
- chmod -R 775 /var/www
- cd /etc/apache2/sites-available/
- touch maarchRM.conf
- echo "Include /var/www/laabs/data/maarchRM/conf/vhost.conf" >> maarchRM.conf
- a2ensite maarchRM.conf
- a2dissite 000-default.conf
- a2enmod rewrite
- a2enmod env
- service apache2 start
- curl --location -s --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit-7.phar
- chmod +x /usr/local/bin/phpunit
- phpunit --coverage-text --colors=never -c /var/www/laabs/phpunit.xml
except:
- master
unit-tests:php-7.2:
image: php:7.2-apache
stage: tests
before_script:
- apt-get update > /dev/null
- mkdir -p /usr/share/man/man1
- mkdir -p /usr/share/man/man7
- apt-get install cron -yqq > /dev/null
- apt-get install libreoffice -yqq > /dev/null
- bash ci/docker_install_php.sh > /dev/null
- bash ci/docker_install_database.sh > /dev/null
script:
- useradd -m -g www-data maarch
- export APACHE_RUN_USER=maarch
- mkdir -p /var/www/html/
- cp -R /builds/maarch/maarchRM/ /var/www/maarchRM/
- mv /var/www/maarchRM/ /var/www/laabs/
- cd /var/www/laabs
- cp data/maarchRM/conf/vhost.conf.default data/maarchRM/conf/vhost.conf
- cp data/maarchRM/conf/configuration.ini.default data/maarchRM/conf/configuration.ini
- cp data/maarchRM/conf/confvars.ini.default data/maarchRM/conf/confvars.ini
- mkdir -p /var/www/laabs/data/maarchRM/repository/archives_1 /var/www/laabs/data/maarchRM/repository/archives_2
- chown -R maarch:www-data /var/www
- chmod -R 775 /var/www
- cd /etc/apache2/sites-available/
- touch maarchRM.conf
- echo "Include /var/www/laabs/data/maarchRM/conf/vhost.conf" >> maarchRM.conf
- a2ensite maarchRM.conf
- a2dissite 000-default.conf
- a2enmod rewrite
- a2enmod env
- service apache2 start
- curl --location -s --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit-7.phar
- chmod +x /usr/local/bin/phpunit
- phpunit --coverage-text --colors=never -c /var/www/laabs/phpunit.xml
only:
- develop
unit-tests:php-7.1:
image: php:7.1-apache
stage: tests
before_script:
- apt-get update > /dev/null
- mkdir -p /usr/share/man/man1
- mkdir -p /usr/share/man/man7
- apt-get install cron -yqq > /dev/null
- apt-get install libreoffice -yqq > /dev/null
- bash ci/docker_install_php.sh > /dev/null
- bash ci/docker_install_database.sh > /dev/null
script:
- useradd -m -g www-data maarch
- export APACHE_RUN_USER=maarch
- mkdir -p /var/www/html/
- cp -R /builds/maarch/maarchRM/ /var/www/maarchRM/
- mv /var/www/maarchRM/ /var/www/laabs/
- cd /var/www/laabs
- cp data/maarchRM/conf/vhost.conf.default data/maarchRM/conf/vhost.conf
- cp data/maarchRM/conf/configuration.ini.default data/maarchRM/conf/configuration.ini
- cp data/maarchRM/conf/confvars.ini.default data/maarchRM/conf/confvars.ini
- mkdir -p /var/www/laabs/data/maarchRM/repository/archives_1 /var/www/laabs/data/maarchRM/repository/archives_2
- chown -R maarch:www-data /var/www
- chmod -R 775 /var/www
- cd /etc/apache2/sites-available/
- touch maarchRM.conf
- echo "Include /var/www/laabs/data/maarchRM/conf/vhost.conf" >> maarchRM.conf
- a2ensite maarchRM.conf
- a2dissite 000-default.conf
- a2enmod rewrite
- a2enmod env
- service apache2 start
- curl --location -s --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit-7.phar
- chmod +x /usr/local/bin/phpunit
- phpunit --coverage-text --colors=never -c /var/www/laabs/phpunit.xml
only:
- develop
unit-tests:php-7.0:
image: php:7.0-apache
stage: tests
before_script:
- apt-get update > /dev/null
- mkdir -p /usr/share/man/man1
- mkdir -p /usr/share/man/man7
- apt-get install cron -yqq > /dev/null
- apt-get install libreoffice -yqq > /dev/null
- bash ci/docker_install_php.sh > /dev/null
- bash ci/docker_install_database.sh > /dev/null
script:
- useradd -m -g www-data maarch
- export APACHE_RUN_USER=maarch
- mkdir -p /var/www/html/
- cp -R /builds/maarch/maarchRM/ /var/www/maarchRM/
- mv /var/www/maarchRM/ /var/www/laabs/
- cd /var/www/laabs
- cp data/maarchRM/conf/vhost.conf.default data/maarchRM/conf/vhost.conf
- cp data/maarchRM/conf/configuration.ini.default data/maarchRM/conf/configuration.ini
- cp data/maarchRM/conf/confvars.ini.default data/maarchRM/conf/confvars.ini
- mkdir -p /var/www/laabs/data/maarchRM/repository/archives_1 /var/www/laabs/data/maarchRM/repository/archives_2
- chown -R maarch:www-data /var/www
- chmod -R 775 /var/www
- cd /etc/apache2/sites-available/
- touch maarchRM.conf
- echo "Include /var/www/laabs/data/maarchRM/conf/vhost.conf" >> maarchRM.conf
- a2ensite maarchRM.conf
- a2dissite 000-default.conf
- a2enmod rewrite
- a2enmod env
- service apache2 start
- curl --location -s --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit-7.phar
- chmod +x /usr/local/bin/phpunit
- phpunit --coverage-text --colors=never -c /var/www/laabs/phpunit.xml
only:
- develop
#unit-tests:php-7.3:
# image: php:7.3-apache
# stage: tests
# before_script:
# - apt-get update > /dev/null
# - mkdir -p /usr/share/man/man1
# - mkdir -p /usr/share/man/man7
# - apt-get install cron -yqq > /dev/null
# - apt-get install libreoffice -yqq > /dev/null
# - bash ci/docker_install_php.sh > /dev/null
# - bash ci/docker_install_database.sh > /dev/null
# script:
# - useradd -m -g www-data maarch
# - export APACHE_RUN_USER=maarch
# - mkdir -p /var/www/html/
# - cp -R /builds/maarch/maarchRM/ /var/www/maarchRM/
# - mv /var/www/maarchRM/ /var/www/laabs/
# - cd /var/www/laabs
# - cp data/maarchRM/conf/vhost.conf.default data/maarchRM/conf/vhost.conf
# - cp data/maarchRM/conf/configuration.ini.default data/maarchRM/conf/configuration.ini
# - cp data/maarchRM/conf/confvars.ini.default data/maarchRM/conf/confvars.ini
# - mkdir -p /var/www/laabs/data/maarchRM/repository/archives_1 /var/www/laabs/data/maarchRM/repository/archives_2
# - chown -R maarch:www-data /var/www
# - chmod -R 775 /var/www
# - cd /etc/apache2/sites-available/
# - touch maarchRM.conf
# - echo "Include /var/www/laabs/data/maarchRM/conf/vhost.conf" >> maarchRM.conf
# - a2ensite maarchRM.conf
# - a2dissite 000-default.conf
# - a2enmod rewrite
# - a2enmod env
# - service apache2 start
# - curl --location -s --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit-7.phar
# - chmod +x /usr/local/bin/phpunit
# - phpunit --coverage-text --colors=never -c /var/www/laabs/phpunit.xml
# except:
# - master
#
#unit-tests:php-7.2:
# image: php:7.2-apache
# stage: tests
# before_script:
# - apt-get update > /dev/null
# - mkdir -p /usr/share/man/man1
# - mkdir -p /usr/share/man/man7
# - apt-get install cron -yqq > /dev/null
# - apt-get install libreoffice -yqq > /dev/null
# - bash ci/docker_install_php.sh > /dev/null
# - bash ci/docker_install_database.sh > /dev/null
# script:
# - useradd -m -g www-data maarch
# - export APACHE_RUN_USER=maarch
# - mkdir -p /var/www/html/
# - cp -R /builds/maarch/maarchRM/ /var/www/maarchRM/
# - mv /var/www/maarchRM/ /var/www/laabs/
# - cd /var/www/laabs
# - cp data/maarchRM/conf/vhost.conf.default data/maarchRM/conf/vhost.conf
# - cp data/maarchRM/conf/configuration.ini.default data/maarchRM/conf/configuration.ini
# - cp data/maarchRM/conf/confvars.ini.default data/maarchRM/conf/confvars.ini
# - mkdir -p /var/www/laabs/data/maarchRM/repository/archives_1 /var/www/laabs/data/maarchRM/repository/archives_2
# - chown -R maarch:www-data /var/www
# - chmod -R 775 /var/www
# - cd /etc/apache2/sites-available/
# - touch maarchRM.conf
# - echo "Include /var/www/laabs/data/maarchRM/conf/vhost.conf" >> maarchRM.conf
# - a2ensite maarchRM.conf
# - a2dissite 000-default.conf
# - a2enmod rewrite
# - a2enmod env
# - service apache2 start
# - curl --location -s --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit-7.phar
# - chmod +x /usr/local/bin/phpunit
# - phpunit --coverage-text --colors=never -c /var/www/laabs/phpunit.xml
# only:
# - develop
#
#unit-tests:php-7.1:
# image: php:7.1-apache
# stage: tests
# before_script:
# - apt-get update > /dev/null
# - mkdir -p /usr/share/man/man1
# - mkdir -p /usr/share/man/man7
# - apt-get install cron -yqq > /dev/null
# - apt-get install libreoffice -yqq > /dev/null
# - bash ci/docker_install_php.sh > /dev/null
# - bash ci/docker_install_database.sh > /dev/null
# script:
# - useradd -m -g www-data maarch
# - export APACHE_RUN_USER=maarch
# - mkdir -p /var/www/html/
# - cp -R /builds/maarch/maarchRM/ /var/www/maarchRM/
# - mv /var/www/maarchRM/ /var/www/laabs/
# - cd /var/www/laabs
# - cp data/maarchRM/conf/vhost.conf.default data/maarchRM/conf/vhost.conf
# - cp data/maarchRM/conf/configuration.ini.default data/maarchRM/conf/configuration.ini
# - cp data/maarchRM/conf/confvars.ini.default data/maarchRM/conf/confvars.ini
# - mkdir -p /var/www/laabs/data/maarchRM/repository/archives_1 /var/www/laabs/data/maarchRM/repository/archives_2
# - chown -R maarch:www-data /var/www
# - chmod -R 775 /var/www
# - cd /etc/apache2/sites-available/
# - touch maarchRM.conf
# - echo "Include /var/www/laabs/data/maarchRM/conf/vhost.conf" >> maarchRM.conf
# - a2ensite maarchRM.conf
# - a2dissite 000-default.conf
# - a2enmod rewrite
# - a2enmod env
# - service apache2 start
# - curl --location -s --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit-7.phar
# - chmod +x /usr/local/bin/phpunit
# - phpunit --coverage-text --colors=never -c /var/www/laabs/phpunit.xml
# only:
# - develop
#
#unit-tests:php-7.0:
# image: php:7.0-apache
# stage: tests
# before_script:
# - apt-get update > /dev/null
# - mkdir -p /usr/share/man/man1
# - mkdir -p /usr/share/man/man7
# - apt-get install cron -yqq > /dev/null
# - apt-get install libreoffice -yqq > /dev/null
# - bash ci/docker_install_php.sh > /dev/null
# - bash ci/docker_install_database.sh > /dev/null
# script:
# - useradd -m -g www-data maarch
# - export APACHE_RUN_USER=maarch
# - mkdir -p /var/www/html/
# - cp -R /builds/maarch/maarchRM/ /var/www/maarchRM/
# - mv /var/www/maarchRM/ /var/www/laabs/
# - cd /var/www/laabs
# - cp data/maarchRM/conf/vhost.conf.default data/maarchRM/conf/vhost.conf
# - cp data/maarchRM/conf/configuration.ini.default data/maarchRM/conf/configuration.ini
# - cp data/maarchRM/conf/confvars.ini.default data/maarchRM/conf/confvars.ini
# - mkdir -p /var/www/laabs/data/maarchRM/repository/archives_1 /var/www/laabs/data/maarchRM/repository/archives_2
# - chown -R maarch:www-data /var/www
# - chmod -R 775 /var/www
# - cd /etc/apache2/sites-available/
# - touch maarchRM.conf
# - echo "Include /var/www/laabs/data/maarchRM/conf/vhost.conf" >> maarchRM.conf
# - a2ensite maarchRM.conf
# - a2dissite 000-default.conf
# - a2enmod rewrite
# - a2enmod env
# - service apache2 start
# - curl --location -s --output /usr/local/bin/phpunit https://phar.phpunit.de/phpunit-7.phar
# - chmod +x /usr/local/bin/phpunit
# - phpunit --coverage-text --colors=never -c /var/www/laabs/phpunit.xml
# only:
# - develop
functional-test:cypress:
image: cypress/base:10
stage: tests
script:
- mv /builds/maarch/maarchRM/cypress.json /builds/maarch/maarchRM/cypress.json.old
- mv /builds/maarch/maarchRM/cypress.json.ci /builds/maarch/maarchRM/cypress.json
- npm ci
- $(npm bin)/cypress verify
- $(npm bin)/cypress run
......
{
"baseUrl" : "http://preview.maarchrm.com/"
"baseUrl" : "http://maarchrm/"
}
\ No newline at end of file
{
"baseUrl" : "http://preview.maarchrm.com/"
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment