Skip to content

Commit eb2c2ac

Browse files
committed
Deployed the Drupal modules via composer
1 parent f12ba5f commit eb2c2ac

File tree

1,249 files changed

+109402
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,249 files changed

+109402
-15
lines changed

composer.lock

+1,008-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
._*
3+
*~
4+
*.kpf
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
set -e $DRUPAL_TI_DEBUG
4+
5+
# Ensure the right Drupal version is installed.
6+
# Note: This function is re-entrant.
7+
drupal_ti_ensure_drupal
8+
9+
# Turn on PhantomJS for functional Javascript tests
10+
phantomjs --ssl-protocol=any --ignore-ssl-errors=true $DRUPAL_TI_DRUPAL_DIR/vendor/jcalderonzumba/gastonjs/src/Client/main.js 8510 1024 768 2>&1 >> /dev/null &
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
# @file
3+
# Simple script to run the tests via travis-ci.
4+
5+
set -e $DRUPAL_TI_DEBUG
6+
7+
export ARGS=( $DRUPAL_TI_SIMPLETEST_JS_ARGS )
8+
9+
if [ -n "$DRUPAL_TI_SIMPLETEST_GROUP" ]
10+
then
11+
ARGS=( "${ARGS[@]}" "$DRUPAL_TI_SIMPLETEST_GROUP" )
12+
fi
13+
14+
15+
cd "$DRUPAL_TI_DRUPAL_DIR"
16+
{ php "$DRUPAL_TI_SIMPLETEST_FILE" --php $(which php) "${ARGS[@]}" || echo "1 fails"; } | tee /tmp/simpletest-result.txt
17+
18+
egrep -i "([1-9]+ fail[s]?)|(Fatal error)|([1-9]+ exception[s]?)" /tmp/simpletest-result.txt && exit 1
19+
exit 0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
# @file
2+
# .travis.yml - Drupal for Travis CI Integration
3+
#
4+
# Template provided by https://github.com/LionsAd/drupal_ti.
5+
#
6+
# Based for simpletest upon:
7+
# https://github.com/sonnym/travis-ci-drupal-module-example
8+
9+
language: php
10+
11+
sudo: false
12+
13+
dist: precise
14+
15+
php:
16+
- 7
17+
- 5.6
18+
- 5.5
19+
20+
branches:
21+
except:
22+
- "7.x-1.x"
23+
24+
matrix:
25+
fast_finish: true
26+
27+
env:
28+
global:
29+
- PHANTOMJS2_VERSION="2.0.0"
30+
# add composer's global bin directory to the path
31+
# see: https://github.com/drush-ops/drush#install---composer
32+
- PATH="$PATH:$HOME/.composer/vendor/bin"
33+
34+
# Configuration variables.
35+
- DRUPAL_TI_MODULE_NAME="commerce"
36+
- DRUPAL_TI_SIMPLETEST_GROUP="commerce"
37+
38+
# Define runners and environment vars to include before and after the
39+
# main runners / environment vars.
40+
#- DRUPAL_TI_SCRIPT_DIR_BEFORE="./drupal_ti/before"
41+
#- DRUPAL_TI_SCRIPT_DIR_AFTER="./drupal_ti/after"
42+
43+
# The environment to use, supported are: drupal-7, drupal-8
44+
- DRUPAL_TI_ENVIRONMENT="drupal-8"
45+
- DRUPAL_TI_CORE_BRANCH="8.4.x"
46+
47+
# Drupal specific variables.
48+
- DRUPAL_TI_DB="drupal_travis_db"
49+
- DRUPAL_TI_DB_URL="mysql://root:@127.0.0.1/drupal_travis_db"
50+
# Note: Do not add a trailing slash here.
51+
- DRUPAL_TI_WEBSERVER_URL="http://127.0.0.1"
52+
- DRUPAL_TI_WEBSERVER_PORT="8080"
53+
54+
# Simpletest specific commandline arguments, the DRUPAL_TI_SIMPLETEST_GROUP is appended at the end.
55+
- DRUPAL_TI_SIMPLETEST_ARGS="--verbose --color --concurrency 20 --url $DRUPAL_TI_WEBSERVER_URL:$DRUPAL_TI_WEBSERVER_PORT --types Simpletest,PHPUnit-Unit,PHPUnit-Kernel,PHPUnit-Functional"
56+
- DRUPAL_TI_SIMPLETEST_JS_ARGS="--verbose --color --concurrency 1 --url $DRUPAL_TI_WEBSERVER_URL:$DRUPAL_TI_WEBSERVER_PORT --types PHPUnit-FunctionalJavascript"
57+
58+
# === Behat specific variables.
59+
# This is relative to $TRAVIS_BUILD_DIR
60+
- DRUPAL_TI_BEHAT_DIR="./tests/behat"
61+
# These arguments are passed to the bin/behat command.
62+
- DRUPAL_TI_BEHAT_ARGS=""
63+
# Specify the filename of the behat.yml with the $DRUPAL_TI_DRUPAL_DIR variables.
64+
- DRUPAL_TI_BEHAT_YML="behat.yml.dist"
65+
# This is used to setup Xvfb.
66+
- DRUPAL_TI_BEHAT_SCREENSIZE_COLOR="1280x1024x16"
67+
# The version of selenium that should be used.
68+
- DRUPAL_TI_BEHAT_SELENIUM_VERSION="2.44"
69+
# Set DRUPAL_TI_BEHAT_DRIVER to "selenium" to use "firefox" or "chrome" here.
70+
- DRUPAL_TI_BEHAT_DRIVER="phantomjs"
71+
- DRUPAL_TI_BEHAT_BROWSER="firefox"
72+
73+
# PHPUnit specific commandline arguments.
74+
- DRUPAL_TI_PHPUNIT_ARGS=""
75+
# Specifying the phpunit-core src/ directory is useful when e.g. a vendor/
76+
# directory is present in the module directory, which phpunit would then
77+
# try to find tests in. This option is relative to $TRAVIS_BUILD_DIR.
78+
#- DRUPAL_TI_PHPUNIT_CORE_SRC_DIRECTORY="./tests/src"
79+
80+
# Code coverage via coveralls.io
81+
- DRUPAL_TI_COVERAGE="satooshi/php-coveralls:0.6.*"
82+
# This needs to match your .coveralls.yml file.
83+
- DRUPAL_TI_COVERAGE_FILE="build/logs/clover.xml"
84+
85+
# Debug options
86+
#- DRUPAL_TI_DEBUG="-x -v"
87+
# Set to "all" to output all files, set to e.g. "xvfb selenium" or "selenium",
88+
# etc. to only output those channels.
89+
#- DRUPAL_TI_DEBUG_FILE_OUTPUT="selenium xvfb webserver"
90+
91+
matrix:
92+
# [[[ SELECT ANY OR MORE OPTIONS ]]]
93+
#- DRUPAL_TI_RUNNERS="phpunit"
94+
- DRUPAL_TI_RUNNERS="simpletest"
95+
#- DRUPAL_TI_RUNNERS="behat"
96+
#- DRUPAL_TI_RUNNERS="phpunit simpletest behat"
97+
98+
mysql:
99+
database: drupal_travis_db
100+
username: root
101+
encoding: utf8
102+
103+
before_install:
104+
# Remove xdebug. We aren't generating code coverage, and it slows down Composer.
105+
- phpenv config-rm xdebug.ini || true
106+
# Add the oauth token to prevent GitHub timeouts.
107+
- git config --global github.accesstoken $GITHUB_OAUTH_TOKEN
108+
- composer global require "hirak/prestissimo:^0.3"
109+
- composer global require "lionsad/drupal_ti:dev-master#396d11d200005eb68491d24170da0a98ae7f51b3"
110+
- composer global require "squizlabs/php_codesniffer:2.*"
111+
- composer global require "drupal/coder:8.2.*"
112+
- phpcs --config-set installed_paths $HOME/.composer/vendor/drupal/coder/coder_sniffer
113+
- drupal-ti before_install
114+
115+
install:
116+
- drupal-ti install
117+
- mkdir travis-phantomjs
118+
- wget https://s3.amazonaws.com/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2
119+
- tar -xvf $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -C $PWD/travis-phantomjs
120+
- export PATH=$PWD/travis-phantomjs:$PATH
121+
- phantomjs --version
122+
123+
before_script:
124+
- drupal-ti --include ".travis-before-script.sh"
125+
- drupal-ti before_script
126+
127+
script:
128+
- phpcs --standard=phpcs.xml src -s
129+
- phpcs --standard=phpcs.xml modules -s
130+
- phpcs --standard=phpcs.xml tests -s
131+
- phpcs --standard=phpcs.xml commerce.module
132+
133+
- drupal-ti script
134+
- drupal-ti --include ".travis-simpletest-js.sh"
135+
136+
after_script:
137+
- drupal-ti after_script
138+
139+
notifications:
140+
email: false

0 commit comments

Comments
 (0)