Commit 9d45a16112a66466d8c008dbb3cc02d0949d3106
Exists in
staging
and in
1 other branch
Merge branch 'master' into pre-staging
Showing
5 changed files
with
21 additions
and
4 deletions
Show diff stats
.travis.yml
| @@ -23,6 +23,9 @@ addons: | @@ -23,6 +23,9 @@ addons: | ||
| 23 | - libreadline-dev | 23 | - libreadline-dev |
| 24 | - libsqlite3-dev | 24 | - libsqlite3-dev |
| 25 | - libxslt1-dev | 25 | - libxslt1-dev |
| 26 | + artifacts: | ||
| 27 | + paths: | ||
| 28 | + - $(ls tmp/artifact* | tr "\n" ":") | ||
| 26 | 29 | ||
| 27 | git: | 30 | git: |
| 28 | submodules: false | 31 | submodules: false |
lib/tasks/ci.rake
| @@ -57,7 +57,8 @@ namespace :ci do | @@ -57,7 +57,8 @@ namespace :ci do | ||
| 57 | 57 | ||
| 58 | sh 'ruby', '-Itest', *tests unless tests.empty? | 58 | sh 'ruby', '-Itest', *tests unless tests.empty? |
| 59 | sh 'cucumber', *features unless features.empty? | 59 | sh 'cucumber', *features unless features.empty? |
| 60 | - sh 'xvfb-run', '-a', 'cucumber', '-p', 'selenium', *features unless features.empty? | 60 | + sh 'xvfb-run', '-a', '--server-args="-screen 0, 1280x1024x24"', |
| 61 | + 'cucumber', '-p', 'selenium', *features unless features.empty? | ||
| 61 | 62 | ||
| 62 | changed_plugins.each do |plugin| | 63 | changed_plugins.each do |plugin| |
| 63 | if $broken_plugins.include?(plugin) | 64 | if $broken_plugins.include?(plugin) |
lib/tasks/selenium.rake
| 1 | desc 'Runs Seleniun acceptance tests' | 1 | desc 'Runs Seleniun acceptance tests' |
| 2 | task :selenium do | 2 | task :selenium do |
| 3 | puts "Firefox version = #{`firefox --version`}" | 3 | puts "Firefox version = #{`firefox --version`}" |
| 4 | - sh "xvfb-run -a cucumber -p selenium --format #{ENV['CUCUMBER_FORMAT'] || 'progress'}" | 4 | + sh "xvfb-run -a --server-args=\"-screen 0, 1280x1024x24\" cucumber -p selenium --format #{ENV['CUCUMBER_FORMAT'] || 'progress'}" |
| 5 | end | 5 | end |
test/functional/mailconf_controller_test.rb
| @@ -71,8 +71,10 @@ class MailconfControllerTest < ActionController::TestCase | @@ -71,8 +71,10 @@ class MailconfControllerTest < ActionController::TestCase | ||
| 71 | env = Environment.default | 71 | env = Environment.default |
| 72 | env.force_www = true | 72 | env.force_www = true |
| 73 | env.save! | 73 | env.save! |
| 74 | + env.domains.delete_all | ||
| 75 | + env.domains.create! name: 'example.com' | ||
| 74 | get :index, :profile => 'ze' | 76 | get :index, :profile => 'ze' |
| 75 | - assert_tag :tag => 'li', :content => /ze@colivre.net/ | 77 | + assert_tag :tag => 'li', :content => /ze@example.com/ |
| 76 | end | 78 | end |
| 77 | 79 | ||
| 78 | should 'not display www in email address when force_www=false' do | 80 | should 'not display www in email address when force_www=false' do |
| @@ -80,8 +82,10 @@ class MailconfControllerTest < ActionController::TestCase | @@ -80,8 +82,10 @@ class MailconfControllerTest < ActionController::TestCase | ||
| 80 | env = Environment.default | 82 | env = Environment.default |
| 81 | env.force_www = false | 83 | env.force_www = false |
| 82 | env.save! | 84 | env.save! |
| 85 | + env.domains.delete_all | ||
| 86 | + env.domains.create! name: 'example.com' | ||
| 83 | get :index, :profile => 'ze' | 87 | get :index, :profile => 'ze' |
| 84 | - assert_tag :tag => 'li', :content => /ze@colivre.net/ | 88 | + assert_tag :tag => 'li', :content => /ze@example.com/ |
| 85 | end | 89 | end |
| 86 | 90 | ||
| 87 | should 'create task to environment admin when enable email' do | 91 | should 'create task to environment admin when enable email' do |