Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
Try another variation of the travis config!
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed Nov 4, 2015
1 parent db52891 commit 71dfce5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
@@ -1,8 +1,11 @@
before_script:
- "mkdir -p /tmp/bin"
- "cd /tmp/bin && wget http://chromium.googlecode.com/files/chromedriver_linux32_16.0.902.0.zip && unzip chromedriver_linux32_16.0.902.0.zip"
- "export PATH=/tmp/bin:$PATH "
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script: "bundle exec rake travis"
script: "bundle exec rake test && bundle exec cucumber features"
rvm:
- 2.1.7
sudo: false
Expand Down
10 changes: 0 additions & 10 deletions Rakefile 100644 → 100755
Expand Up @@ -14,13 +14,3 @@ desc "Run tests"
task :spec do
task("test").execute
end

task :travis do
puts "Grabbing chromedriver..."
mkdir_p "/tmp/bin"
system "cd /tmp/bin && wget http://chromium.googlecode.com/files/chromedriver_linux32_16.0.902.0.zip && unzip chromedriver_linux32_16.0.902.0.zip"

puts "Starting to run tests..."
system("export PATH=/tmp/bin:$PATH && export DISPLAY=:99.0 && bundle exec rake test && bundle exec cucumber features")
raise "`rake test` failed!" unless $?.exitstatus == 0
end

0 comments on commit 71dfce5

Please sign in to comment.