Permalink
Browse files

travis: extract before_script to other file

  • Loading branch information...
1 parent 2f78c02 commit 8bf8c4adeec699646e49d00f41a0648ed6c558eb @kou kou committed Mar 28, 2013
Showing with 23 additions and 1 deletion.
  1. +1 −1 .travis.yml
  2. +22 −0 travis-before-script.sh
View
@@ -9,7 +9,7 @@ rvm:
- 1.9.3
- 2.0.0
before_script:
- - sudo apt-get install -qq -y libgirepository1.0-dev
+ - ./travis-before-script.sh
- sh -e /etc/init.d/xvfb start
after_script:
- sh -e /ext/init.d/xvfb stop
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# Copyright (C) 2013 Ruby-GNOME2 Project Team
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+
+set -e
+set -u
+
+sudo apt-get install -qq -y libgirepository1.0-dev

0 comments on commit 8bf8c4a

Please sign in to comment.