Skip to content
Snippets Groups Projects
Commit 95336110 authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3206755: Add drupal-ckeditor-plugins composer repository to Varbase...

Issue #3206755: Add drupal-ckeditor-plugins composer repository to Varbase profile to use the Static composer repository generator
parent e85f6557
No related branches found
No related tags found
No related merge requests found
dist: xenial
language: php
php:
- 7.3
services:
- mysql
- xvfb
mysql:
database: test_varbase9000xxc
username: root
encoding: utf8
cache:
bundler: true
directories:
- "$HOME/.composer/cache"
- "$HOME/.drush/cache"
- "$HOME/.npm"
- "$HOME/.selenium/cache"
env:
- AFATG=01-website-base-requirements
- AFATG=02-user-management
- AFATG=03-admin-management
- AFATG=04-content-structure
- AFATG=05-content-management
matrix:
exclude:
# Automated Functional Acceptance Testing group: 01 website base requirements
- php: 7.3
env: AFATG=01-website-base-requirements
# Automated Functional Acceptance Testing group: 02 user management
- php: 7.3
env: AFATG=02-user-management
# Automated Functional Acceptance Testing group: 03 admin management
- php: 7.3
env: AFATG=03-admin-management
# Automated Functional Acceptance Testing group: 04 content structure
- php: 7.3
env: AFATG=04-content-structure
# Automated Functional Acceptance Testing group: 05 content-management
- php: 7.3
env: AFATG=05-content-management
before_install:
- phpenv config-rm xdebug.ini
- phpenv rehash
- COMPOSER_AUTH_PATH="$HOME/.composer/auth.json"
- if [[ -f $COMPOSER_AUTH_PATH ]]; then rm $COMPOSER_AUTH_PATH; fi
- composer self-update
- composer --version
# Composer Configurations.
- export PATH="$HOME/.composer/vendor/bin:$TRAVIS_BUILD_DIR/bin:$PATH"
- export COMPOSER_EXIT_ON_PATCH_FAILURE=1
# PHP Configurations.
- echo 'max_execution_time = 1200' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini ;
- echo 'max_input_time = 180' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini ;
- echo 'max_input_vars = 10000' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini ;
- echo 'memory_limit = -1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini ;
- echo 'error_reporting = E_ALL' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini ;
- echo 'post_max_size = 64M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini ;
- echo 'upload_max_filesize = 32M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini ;
- echo 'max_file_uploads = 40' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini ;
- echo 'sendmail_path = /bin/true' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini ;
- phpenv rehash
# Download Latest Chrome Driver.
- CHROME_DRIVER_VERSION=$(wget -qO- chromedriver.storage.googleapis.com/LATEST_RELEASE);
- echo $CHROME_DRIVER_VERSION;
- wget http://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip
- unzip chromedriver_linux64.zip
- chmod +x chromedriver
- mkdir -p $HOME/.composer/vendor/bin
- mv -f chromedriver $HOME/.composer/vendor/bin/
- rm chromedriver_linux64.zip
# Update to latest Chrome browser.
- export CHROME_BIN=/usr/bin/google-chrome
- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
- sudo apt-get clean
- sudo apt-get update
- sudo apt-get install dpkg
- sudo dpkg -i google-chrome-stable_current_amd64.deb
- rm google-chrome-stable_current_amd64.deb
- google-chrome --version
# Run selenium standalone server.
- SELENIUM="$HOME/.selenium/cache/selenium-server-standalone-2.53.1.jar";
- if [[ ! -f $SELENIUM ]]; then wget -O $SELENIUM http://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.1.jar; fi
- java -jar $SELENIUM -port 4445 > /dev/null 2>&1 &
- echo "[ OK ] Starting Selenium on the 4445 port ..."
install:
- git checkout $TRAVIS_COMMIT
## Build with the composer.
- composer install --no-interaction
## Install with drush.
- cd docroot
- drush site-install varbase --yes --site-name='Test Varbase9000xxc' --account-name=webmaster --account-pass=dD.123123ddd --account-mail=webmaster@vardot.com --db-url="mysql://root:@localhost/test_varbase9000xxc" varbase_multilingual_configuration.enable_multilingual=true varbase_extra_components.vmi=true varbase_extra_components.varbase_heroslider_media=true varbase_extra_components.varbase_carousels=true varbase_extra_components.varbase_search=true varbase_extra_components.varbase_blog=true varbase_extra_components.varbase_auth=true
- drush pm-enable varbase_development --yes
- drush pm-enable varbase_styleguide --yes
- drush pm-enable varbase_landing --yes
- drush pm-enable varbase_media_instagram --yes
- drush pm-enable varbase_media_twitter --yes
- drush pm-enable varbase_api --yes
- drush pm-enable social_auth_google --yes
- drush pm-enable social_auth_facebook --yes
- drush pm-enable social_auth_twitter --yes
- drush pm-enable social_auth_linkedin --yes
- drush pm-enable varbase_content_planner --yes
- drush config-set system.performance css.preprocess 0 --yes
- drush config-set system.performance js.preprocess 0 --yes
- drush config-set system.logging error_level all --yes
- drush cr
before_script:
- drush runserver --default-server=builtin 8080 &>/dev/null &
- sleep 5
script:
- cd ./profiles/varbase
- behat --strict tests/features/varbase/step1-init-tests/
- behat --strict tests/features/varbase/step2-apply-tests/$AFATG
# - behat --strict tests/features/varbase/step3-cleanup-tests/ # no need as we build every time.
matrix:
fast_finish: true
......@@ -66,9 +66,7 @@
"npm-asset/blazy": "~1.0",
"npm-asset/slick-carousel": "~1.0",
"npm-asset/ace-builds": "~1.0",
"swagger-api/swagger-ui": "~3.0",
"drupal-ckeditor-plugin/link": "~4.0",
"drupal-ckeditor-plugin/fakeobjects": "~4.0"
"swagger-api/swagger-ui": "~3.0"
},
"require-dev": {
"drupal/core-dev": "~9.0",
......@@ -146,8 +144,7 @@
{"name": "ace", "package": "npm-asset/ace-builds"},
{"name": "jquery-ui-touch-punch", "package": "bower-asset/jqueryui-touch-punch"},
{"name": "imagesloaded", "package": "npm-asset/imagesloaded"},
{"name": "swagger-ui", "package": "swagger-api/swagger-ui"},
{"name": "fakeobjects", "package": "drupal-ckeditor-plugin/fakeobjects"}
{"name": "swagger-ui", "package": "swagger-api/swagger-ui"}
]
},
"enable-patching": true,
......
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