Skip to content

Commit 987b0a6

Browse files
authored
Merge pull request #363 from ASU/7.x-dev
7.x dev
2 parents 86a99b3 + ce29c7b commit 987b0a6

File tree

9 files changed

+85
-32
lines changed

9 files changed

+85
-32
lines changed

.travis.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ php:
1010
# make sure we test on latest trusty environment
1111
sudo: required
1212
dist: trusty
13-
group: edge
1413

1514
# Cache Composer & Drush directories.
1615
cache:
@@ -33,8 +32,8 @@ branches:
3332
# TODO - Update from Selenium Server Standalone to alternative Marionette
3433
# https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver
3534
# Addons not working with Firefox. SeleniumHQ issue? Manually adding proper FF version.
36-
#addons:
37-
# firefox: "46.0.1"
35+
addons:
36+
chrome: stable
3837

3938
# Cut down on git depth from default of 50
4039
git:
@@ -50,24 +49,27 @@ before_install:
5049
- sleep 1
5150
# Disable PHP features - XDebug
5251
- phpenv config-rm xdebug.ini
52+
#- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
5353

5454
install:
5555
- sudo apt-get update > /dev/null
5656
- "mysql -e 'create database drupal;'"
5757

58-
# Install Firefox manually until SeleniumHQ fixes the problem with the version not being reported to Travis-CI
59-
- sudo mkdir /usr/local/bin/firefoxhack
60-
- sudo wget --directory-prefix=/tmp http://ftp.mozilla.org/pub/firefox/releases/46.0.1/linux-x86_64/en-US/firefox-46.0.1.tar.bz2
61-
- sudo tar -xjf /tmp/firefox-46.0.1.tar.bz2 -C /usr/local/bin/firefoxhack --strip-components=1
62-
- export PATH="/usr/local/bin/firefoxhack:$PATH"
63-
- echo "Using Firefox version $(firefox --version)"
64-
6558
# Install latest Drush 7.x.
6659
- export PATH="$HOME/.composer/vendor/bin:$PATH"
6760
- composer global require --no-interaction drush/drush:7.*
6861

62+
# get chromedriver
63+
- cd ~/
64+
- wget -N https://chromedriver.storage.googleapis.com/73.0.3683.68/chromedriver_linux64.zip
65+
- unzip ~/chromedriver_linux64.zip -d ~/
66+
- rm ~/chromedriver_linux64.zip
67+
- sudo mv -f ~/chromedriver /usr/local/share/
68+
- sudo chmod +x /usr/local/share/chromedriver
69+
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
70+
6971
# Build Behat dependencies
70-
- cd profiles/openasu/modules/panopoly/panopoly_test/behat
72+
- cd $TRAVIS_BUILD_DIR/profiles/openasu/modules/panopoly/panopoly_test/behat
7173
- composer install --no-interaction
7274
# Build Behat dependencies
7375
- cd ../../../custom/webspark_test/behat
@@ -85,6 +87,8 @@ install:
8587
# Setup files
8688
- sudo chmod -R 777 sites
8789

90+
91+
8892
# Get Selenium
8993
- wget https://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.0.jar
9094
- java -jar selenium-server-standalone-2.53.0.jar > /dev/null 2>&1 &

profiles/openasu/modules/custom/webspark_test/behat/behat.travis.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
11
imports:
22
- behat.common.yml
3+
#
34
default:
45
extensions:
56
Behat\MinkExtension:
7+
selenium2:
8+
# This will probably be the same always, if you follow the guide for browsers below.
9+
wd_host: http://localhost:4444/wd/hub
10+
capabilities:
11+
chrome:
12+
switches:
13+
- "--headless"
14+
- "--disable-gpu"
15+
- "--no-sandbox"
16+
javascript_session: selenium2
17+
browser_name: chrome
618
base_url: http://127.0.0.1:8888
719
files_path: './profiles/openasu/modules/custom/webspark_test/behat'
820
Drupal\DrupalExtension:
921
drush:
1022
root: "/home/travis/build/ASU/webspark-drops-drupal7"
1123
drupal:
1224
drupal_root: "/home/travis/build/ASU/webspark-drops-drupal7"
13-
1425
# Look in the profile modules directory and pull in module subcontexts.
1526
subcontexts:
1627
paths:

profiles/openasu/modules/panopoly/panopoly_test/behat/behat.travis.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,24 @@ imports:
44
default:
55
extensions:
66
Behat\MinkExtension:
7+
selenium2:
8+
# This will probably be the same always, if you follow the guide for browsers below.
9+
wd_host: http://localhost:4444/wd/hub
10+
capabilities:
11+
chrome:
12+
switches:
13+
- "--headless"
14+
- "--disable-gpu"
15+
- "--no-sandbox"
16+
javascript_session: selenium2
17+
browser_name: chrome
718
base_url: http://127.0.0.1:8888
819
files_path: './profiles/openasu/modules/panopoly/panopoly_test/behat'
920
Drupal\DrupalExtension:
1021
drush:
1122
root: "/home/travis/build/ASU/webspark-drops-drupal7"
1223
drupal:
1324
drupal_root: "/home/travis/build/ASU/webspark-drops-drupal7"
14-
1525
# Look in the profile modules directory and pull in module subcontexts.
1626
subcontexts:
1727
paths:

profiles/openasu/modules/panopoly/panopoly_test/behat/features/video_widget.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Feature: Add video widget
1212
And I click "Add video" in the "CTools modal" region
1313
Then I should see "Configure new Add video"
1414

15-
@api @javascript @panopoly_widgets @webspark_broken @webspark_ignore
15+
@api @javascript @panopoly_widgets
1616
Scenario: Add a YouTube video
1717
When I fill in "Testing video" for "edit-title"
1818
When I click "Browse"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
/***
4+
* Implements hook_enable()
5+
*/
6+
function asu_gcse_enable() {
7+
user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('search Google CSE'));
8+
}

profiles/openasu/modules/webspark_featurescustom/asu_gcse/css/asu_gcse.css

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
/* GOOGLE SEARCH */
22

33
/* Removes border that's being added to nav pills on hover */
4+
/*
45
.page-search #top-content #tabs .nav-pills li a:hover {
56
border: none !important;
6-
}
7+
}*/
78

89
/* Forces ASU brand standard button styling */
10+
/*
911
.page-search #top-content #tabs .nav-pills > li.active > a {
1012
background-color: #8c1d40 !important;
1113
color: #ffffff !important;
@@ -26,7 +28,7 @@
2628
color: #2a2a2a !important;
2729
font-weight: 400 !important;
2830
}
29-
31+
*/
3032
/* Hides various unneeded elements on the page (e.g. the ad area, the extra search box, files showing in results, etc) */
3133
.page-search .gsc-wrapper .gsc-adBlock,
3234
.page-search .gsc-search-box,
@@ -115,5 +117,32 @@
115117
/* Forces search box and search submit button onto the same line */
116118
.page-search .search-form .container-inline div,
117119
.page-search .search-form #edit-submit {
118-
display: inline-block !important;
120+
display: inline-block;
121+
}
122+
123+
.page-search #top-content #tabs .nav-pills > li.active > a, .page-search #top-content #tabs .nav-pills > li.active > a:hover {
124+
background-color: transparent;
125+
color: #2a2a2a;
126+
border-bottom: 5px solid #a30046;
127+
padding-left: 0;
128+
padding-right: 0;
129+
margin-right: 2.2em;
130+
border-radius: 0;
131+
font-size: 18px;
132+
}
133+
134+
.page-search #top-content #tabs .nav-pills li a, .page-search #top-content #tabs .nav-pills li a:hover {
135+
background-color: transparent;
136+
color: #2a2a2a;
137+
font-weight: 400;
138+
padding-left: 0;
139+
padding-right: 0;
140+
margin-right: 2.2em;
141+
border-radius: 0;
142+
font-size: 18px;
143+
}
144+
145+
.page-search #top-content #tabs .nav-pills li a:hover {
146+
color: #000;
147+
border-bottom: 5px solid #a30046;
119148
}

profiles/openasu/modules/webspark_featurescustom/asu_gcse/js/asu_gcse.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@
3333
// Forced a document title, because it doesn't reflect the h1 title (on both search pages)
3434
document.title = "Search Results | " + asu_site_title;
3535

36+
var thetitle = $('#page-title');
3637
// Set page title (h1) to 'Search Results' (on both search pages)
37-
$('#page-title').text("Search Results");
38+
thetitle.text("Search Results");
3839

3940
// If the first nav pill URL matches the node_search form ('search/node') then proceed
4041
if (first_nav_pill_url && first_nav_pill_url.indexOf(node_search) != -1) {

profiles/openasu/openasu.make

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ projects[panopoly_test][patch][137] = patches/webspark-847_panopoly-test-137-upd
5656
projects[panopoly_test][patch][1370] = patches/webspark-847_behat_common.patch
5757
projects[panopoly_test][patch][142] = patches/webspark-944_add-init-config-tests-panopoly-test.patch
5858
projects[panopoly_test][patch][143] = patches/webspark-1066-panopoly-test-v146.patch
59-
projects[panopoly_test][patch][1640] = patches/v1.64-behat-test-disable-video-test.patch
6059

6160
; ASU-specific, Webspark-agnostic modules (/custom directory contents)
6261
;projects[asu_drupal_modules][type] = module
@@ -166,6 +165,10 @@ projects[google_appliance][version] = 1.14
166165
projects[google_appliance][type] = module
167166
projects[google_appliance][subdir] = contrib
168167

168+
projects[google_cse][version] = 2.5
169+
projects[google_cse][type] = module
170+
projects[google_cse][subdir] = contrib
171+
169172
projects[maxlength][version] = 3.2-beta2
170173
projects[maxlength][type] = module
171174
projects[maxlength][subdir] = contrib

profiles/openasu/patches/v1.64-behat-test-disable-video-test.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)