commit
e3726c776e
5 changed files with 27 additions and 37 deletions
13
.travis.yml
13
.travis.yml
|
|
@ -1,17 +1,19 @@
|
||||||
sudo: required
|
sudo: required
|
||||||
dist: trusty
|
dist: xenial
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- chromium-browser
|
||||||
language: ruby
|
language: ruby
|
||||||
cache: bundler
|
cache: bundler
|
||||||
rvm:
|
rvm:
|
||||||
- 2.5.0@osem --ignore-gemsets
|
|
||||||
branches:
|
branches:
|
||||||
except:
|
except:
|
||||||
- /^depfu/.*$/
|
- /^depfu/.*$/
|
||||||
before_install:
|
before_install:
|
||||||
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
|
- "echo 'gem: --no-ri --no-rdoc' > ~/.gemrc"
|
||||||
- "echo `phantomjs -v`"
|
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
||||||
addons:
|
- gem install bundler -v $(tail -n 1 Gemfile.lock)
|
||||||
chrome: stable
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
on_success: change
|
on_success: change
|
||||||
|
|
@ -23,6 +25,7 @@ notifications:
|
||||||
on_failure: change
|
on_failure: change
|
||||||
before_script:
|
before_script:
|
||||||
- RAILS_ENV=test bundle exec rake db:bootstrap --trace
|
- RAILS_ENV=test bundle exec rake db:bootstrap --trace
|
||||||
|
- RAILS_ENV=test bundle exec bin/rails webdrivers:chromedriver:update
|
||||||
script:
|
script:
|
||||||
- "./travis_script.sh $TEST_SUITE"
|
- "./travis_script.sh $TEST_SUITE"
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,5 @@
|
||||||
FROM opensuse/leap:15
|
FROM opensuse/leap:15
|
||||||
|
|
||||||
# Import google packaging key for chrome
|
|
||||||
COPY google-packaging.key /tmp
|
|
||||||
RUN rpm --import /tmp/google-packaging.key
|
|
||||||
|
|
||||||
# Enable/Disable the repositories we need/don't need
|
|
||||||
RUN zypper rr openSUSE-Leap-15.0-Non-Oss openSUSE-Leap-15.0-Update-Non-Oss; \
|
|
||||||
zypper ar -f https://download.opensuse.org/repositories/devel:/tools/openSUSE_Leap_15.0/devel:tools.repo; \
|
|
||||||
zypper ar -f http://dl.google.com/linux/chrome/rpm/stable/x86_64 google-chrome; \
|
|
||||||
zypper --gpg-auto-import-keys refresh
|
|
||||||
|
|
||||||
# Install our requirements
|
# Install our requirements
|
||||||
RUN zypper -n install --no-recommends \
|
RUN zypper -n install --no-recommends \
|
||||||
# for compiling assets/gems
|
# for compiling assets/gems
|
||||||
|
|
@ -23,13 +13,11 @@ RUN zypper -n install --no-recommends \
|
||||||
# for nokogiri
|
# for nokogiri
|
||||||
libxml2-devel libxslt-devel \
|
libxml2-devel libxslt-devel \
|
||||||
# for the interactive shell
|
# for the interactive shell
|
||||||
ack curl wget w3m vim \
|
ack curl wget w3m vim which \
|
||||||
# for running our tests
|
|
||||||
phantomjs which \
|
|
||||||
# as ruby
|
# as ruby
|
||||||
ruby2.5-devel \
|
ruby2.5-devel \
|
||||||
# as browser for feature tests
|
# as browser for feature tests
|
||||||
google-chrome-stable
|
chromium
|
||||||
|
|
||||||
# Setup sudo
|
# Setup sudo
|
||||||
RUN echo 'osem ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
RUN echo 'osem ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
||||||
|
|
|
||||||
3
Gemfile
3
Gemfile
|
|
@ -244,12 +244,11 @@ end
|
||||||
group :test do
|
group :test do
|
||||||
# as test framework
|
# as test framework
|
||||||
gem 'capybara'
|
gem 'capybara'
|
||||||
gem 'chromedriver-helper'
|
|
||||||
gem 'database_cleaner'
|
gem 'database_cleaner'
|
||||||
gem 'geckodriver-helper'
|
gem 'geckodriver-helper'
|
||||||
gem 'rspec-rails'
|
gem 'rspec-rails'
|
||||||
gem 'selenium-webdriver'
|
|
||||||
gem 'transactional_capybara'
|
gem 'transactional_capybara'
|
||||||
|
gem 'webdrivers'
|
||||||
# for measuring test coverage
|
# for measuring test coverage
|
||||||
gem 'codecov', require: false
|
gem 'codecov', require: false
|
||||||
# for describing models
|
# for describing models
|
||||||
|
|
|
||||||
28
Gemfile.lock
28
Gemfile.lock
|
|
@ -93,13 +93,13 @@ GEM
|
||||||
builder (3.2.3)
|
builder (3.2.3)
|
||||||
byebug (11.0.1)
|
byebug (11.0.1)
|
||||||
cancancan (2.3.0)
|
cancancan (2.3.0)
|
||||||
capybara (3.16.2)
|
capybara (3.26.0)
|
||||||
addressable
|
addressable
|
||||||
mini_mime (>= 0.1.3)
|
mini_mime (>= 0.1.3)
|
||||||
nokogiri (~> 1.8)
|
nokogiri (~> 1.8)
|
||||||
rack (>= 1.6.0)
|
rack (>= 1.6.0)
|
||||||
rack-test (>= 0.6.3)
|
rack-test (>= 0.6.3)
|
||||||
regexp_parser (~> 1.2)
|
regexp_parser (~> 1.5)
|
||||||
xpath (~> 3.2)
|
xpath (~> 3.2)
|
||||||
carrierwave (1.3.1)
|
carrierwave (1.3.1)
|
||||||
activemodel (>= 4.0.0)
|
activemodel (>= 4.0.0)
|
||||||
|
|
@ -112,11 +112,8 @@ GEM
|
||||||
case_transform (0.2)
|
case_transform (0.2)
|
||||||
activesupport
|
activesupport
|
||||||
chartkick (3.2.0)
|
chartkick (3.2.0)
|
||||||
childprocess (0.9.0)
|
childprocess (1.0.1)
|
||||||
ffi (~> 1.0, >= 1.0.11)
|
rake (< 13.0)
|
||||||
chromedriver-helper (2.1.1)
|
|
||||||
archive-zip (~> 0.10)
|
|
||||||
nokogiri (~> 1.8)
|
|
||||||
chronic (0.10.2)
|
chronic (0.10.2)
|
||||||
chunky_png (1.3.11)
|
chunky_png (1.3.11)
|
||||||
climate_control (0.2.0)
|
climate_control (0.2.0)
|
||||||
|
|
@ -285,7 +282,7 @@ GEM
|
||||||
open4 (~> 1.3.4)
|
open4 (~> 1.3.4)
|
||||||
rake
|
rake
|
||||||
mini_magick (4.9.3)
|
mini_magick (4.9.3)
|
||||||
mini_mime (1.0.1)
|
mini_mime (1.0.2)
|
||||||
mini_portile2 (2.4.0)
|
mini_portile2 (2.4.0)
|
||||||
minitest (5.11.3)
|
minitest (5.11.3)
|
||||||
momentjs-rails (2.20.1)
|
momentjs-rails (2.20.1)
|
||||||
|
|
@ -376,7 +373,7 @@ GEM
|
||||||
method_source (~> 0.8.1)
|
method_source (~> 0.8.1)
|
||||||
slop (~> 3.4)
|
slop (~> 3.4)
|
||||||
psych (3.1.0)
|
psych (3.1.0)
|
||||||
public_suffix (3.0.3)
|
public_suffix (3.1.1)
|
||||||
puma (3.12.1)
|
puma (3.12.1)
|
||||||
rack (2.0.7)
|
rack (2.0.7)
|
||||||
rack-openid (1.3.1)
|
rack-openid (1.3.1)
|
||||||
|
|
@ -449,7 +446,7 @@ GEM
|
||||||
recaptcha (4.14.0)
|
recaptcha (4.14.0)
|
||||||
json
|
json
|
||||||
redcarpet (3.4.0)
|
redcarpet (3.4.0)
|
||||||
regexp_parser (1.4.0)
|
regexp_parser (1.6.0)
|
||||||
request_store (1.4.1)
|
request_store (1.4.1)
|
||||||
rack (>= 1.4)
|
rack (>= 1.4)
|
||||||
responders (2.4.1)
|
responders (2.4.1)
|
||||||
|
|
@ -521,8 +518,8 @@ GEM
|
||||||
ffi (~> 1.9)
|
ffi (~> 1.9)
|
||||||
rake
|
rake
|
||||||
selectize-rails (0.12.6)
|
selectize-rails (0.12.6)
|
||||||
selenium-webdriver (3.141.0)
|
selenium-webdriver (3.142.3)
|
||||||
childprocess (~> 0.5)
|
childprocess (>= 0.5, < 2.0)
|
||||||
rubyzip (~> 1.2, >= 1.2.2)
|
rubyzip (~> 1.2, >= 1.2.2)
|
||||||
sexp_processor (4.11.0)
|
sexp_processor (4.11.0)
|
||||||
shellany (0.0.1)
|
shellany (0.0.1)
|
||||||
|
|
@ -591,6 +588,10 @@ GEM
|
||||||
activemodel (>= 5.0)
|
activemodel (>= 5.0)
|
||||||
bindex (>= 0.4.0)
|
bindex (>= 0.4.0)
|
||||||
railties (>= 5.0)
|
railties (>= 5.0)
|
||||||
|
webdrivers (4.1.0)
|
||||||
|
nokogiri (~> 1.6)
|
||||||
|
rubyzip (~> 1.0)
|
||||||
|
selenium-webdriver (>= 3.0, < 4.0)
|
||||||
webmock (3.5.1)
|
webmock (3.5.1)
|
||||||
addressable (>= 2.3.6)
|
addressable (>= 2.3.6)
|
||||||
crack (>= 0.3.2)
|
crack (>= 0.3.2)
|
||||||
|
|
@ -626,7 +627,6 @@ DEPENDENCIES
|
||||||
carrierwave
|
carrierwave
|
||||||
carrierwave-bombshelter
|
carrierwave-bombshelter
|
||||||
chartkick
|
chartkick
|
||||||
chromedriver-helper
|
|
||||||
climate_control
|
climate_control
|
||||||
cloudinary
|
cloudinary
|
||||||
cocoon
|
cocoon
|
||||||
|
|
@ -703,7 +703,6 @@ DEPENDENCIES
|
||||||
ruby-oembed
|
ruby-oembed
|
||||||
sass-rails (>= 4.0.2)
|
sass-rails (>= 4.0.2)
|
||||||
selectize-rails
|
selectize-rails
|
||||||
selenium-webdriver
|
|
||||||
shoulda-matchers
|
shoulda-matchers
|
||||||
skylight
|
skylight
|
||||||
spring-commands-rspec
|
spring-commands-rspec
|
||||||
|
|
@ -718,6 +717,7 @@ DEPENDENCIES
|
||||||
uglifier (>= 1.3.0)
|
uglifier (>= 1.3.0)
|
||||||
unobtrusive_flash (>= 3)
|
unobtrusive_flash (>= 3)
|
||||||
web-console
|
web-console
|
||||||
|
webdrivers
|
||||||
webmock
|
webmock
|
||||||
whenever
|
whenever
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,8 @@ require File.expand_path('../../config/environment', __FILE__)
|
||||||
|
|
||||||
require 'rspec/rails'
|
require 'rspec/rails'
|
||||||
require 'shoulda/matchers'
|
require 'shoulda/matchers'
|
||||||
|
require 'webdrivers'
|
||||||
|
|
||||||
# To avoid confusion on missed migrations - use Rails 4 checker to ensure
|
# To avoid confusion on missed migrations - use Rails 4 checker to ensure
|
||||||
# all migrations applied
|
# all migrations applied
|
||||||
ActiveRecord::Migration.maintain_test_schema!
|
ActiveRecord::Migration.maintain_test_schema!
|
||||||
|
|
@ -21,8 +23,6 @@ ActiveRecord::Migration.maintain_test_schema!
|
||||||
# Keep capybara and the database on the same page
|
# Keep capybara and the database on the same page
|
||||||
require 'transactional_capybara/rspec'
|
require 'transactional_capybara/rspec'
|
||||||
|
|
||||||
require 'selenium/webdriver'
|
|
||||||
|
|
||||||
# Adds rspec helper provided by paper_trail
|
# Adds rspec helper provided by paper_trail
|
||||||
# makes it easier to control when PaperTrail is enabled during testing.
|
# makes it easier to control when PaperTrail is enabled during testing.
|
||||||
require 'paper_trail/frameworks/rspec'
|
require 'paper_trail/frameworks/rspec'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue