This repository has been archived by the owner on Aug 10, 2021. It is now read-only.
forked from romul/spree_editor
-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153 from spree-contrib/update-travis-configuration
[SD-969] Update travis configuration
- Loading branch information
Showing
5 changed files
with
58 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,46 @@ | ||
sudo: required | ||
dist: trusty | ||
|
||
script: | ||
- bundle exec rake test_app | ||
- bundle exec rake spec | ||
os: linux | ||
dist: bionic | ||
|
||
addons: | ||
chrome: stable | ||
postgresql: 9.4 | ||
apt: | ||
sources: | ||
- google-chrome | ||
packages: | ||
- google-chrome-stable | ||
|
||
env: | ||
- DB=mysql | ||
- DB=postgres | ||
services: | ||
- mysql | ||
- postgresql | ||
|
||
language: ruby | ||
|
||
rvm: | ||
- 2.5.1 | ||
- 2.4.4 | ||
- 2.3.8 | ||
- 2.6 | ||
|
||
env: | ||
- DB=mysql | ||
- DB=postgres | ||
|
||
gemfile: | ||
- gemfiles/spree_3_5.gemfile | ||
- gemfiles/spree_3_7.gemfile | ||
- gemfiles/spree_4_0.gemfile | ||
- gemfiles/spree_4_1.gemfile | ||
- gemfiles/spree_master.gemfile | ||
|
||
matrix: | ||
jobs: | ||
allow_failures: | ||
- gemfile: gemfiles/spree_master.gemfile | ||
exclude: | ||
- rvm: 2.3.8 | ||
gemfile: gemfiles/spree_4_0.gemfile | ||
- rvm: 2.4.4 | ||
gemfile: gemfiles/spree_4_0.gemfile | ||
- rvm: 2.3.8 | ||
gemfile: gemfiles/spree_master.gemfile | ||
- rvm: 2.4.4 | ||
gemfile: gemfiles/spree_master.gemfile | ||
- rvm: 2.5.1 | ||
gemfile: gemfiles/spree_3_5.gemfile | ||
|
||
before_script: | ||
- CHROME_MAIN_VERSION=`google-chrome-stable --version | sed -E 's/(^Google Chrome |\.[0-9]+ )//g'` | ||
- CHROMEDRIVER_VERSION=`curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROME_MAIN_VERSION"` | ||
- curl "https://chromedriver.storage.googleapis.com/${CHROMEDRIVER_VERSION}/chromedriver_linux64.zip" -O | ||
- unzip chromedriver_linux64.zip -d ~/bin | ||
- nvm install 14 | ||
|
||
script: | ||
- bundle exec rake test_app | ||
- bundle exec rake spec | ||
|
||
before_install: | ||
- mysql -u root -e "GRANT ALL ON *.* TO 'travis'@'%';" | ||
- wget -N https://chromedriver.storage.googleapis.com/2.35/chromedriver_linux64.zip -P ~/ | ||
- unzip ~/chromedriver_linux64.zip -d ~/ | ||
- rm ~/chromedriver_linux64.zip | ||
- sudo mv -f ~/chromedriver /usr/local/share/ | ||
- sudo chmod +x /usr/local/share/chromedriver | ||
- sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver | ||
- mysql -u root -e "GRANT ALL ON *.* TO 'travis'@'%';" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module Select2Helper | ||
def select2_choose(id, options) | ||
options[:query] ||= options[:choose] | ||
|
||
page.execute_script %Q{ | ||
$('#s2id_#{id} .select2-offscreen') | ||
.trigger('keydown') | ||
.val('#{options[:query]}') | ||
.trigger('keyup'); | ||
} | ||
|
||
if options[:first] | ||
find('.select2-highlighted .select2-match').click | ||
else | ||
find('.select2-result-label', text: options[:choose]).click | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters