diff --git a/.travis.yml b/.travis.yml index 8dee6461..8c9eac73 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,7 @@ script: "bundle exec rake travis" -before_script: "sh -e /etc/init.d/xvfb start" +before_script: ./bin/ci/before_build.sh rvm: - 1.9.2 - - 1.9.3 notifications: email: - didier@nocoffee.fr diff --git a/bin/ci/before_build.sh b/bin/ci/before_build.sh new file mode 100755 index 00000000..b352bae5 --- /dev/null +++ b/bin/ci/before_build.sh @@ -0,0 +1,3 @@ +#!/bin/sh +sh -e /etc/init.d/xvfb start +echo "echo \"127.0.0.1 test.example.com\" >> /etc/hosts" | sudo sh