Skip to content

Commit

Permalink
travis: extract before_script to other file
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 28, 2013
1 parent 2f78c02 commit 8bf8c4a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -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
22 changes: 22 additions & 0 deletions travis-before-script.sh
@@ -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.