diff --git a/.travis.yml b/.travis.yml
index 46d7d524be0ff28a9983949bbc76238bbad69e67..684bfb214da0e28bac9e23de85a7ea5418eb2789 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,8 +2,7 @@ language: ruby
 sudo: false
 cache: bundler
 before_install:
- - git clone https://github.com/jnavila/po4a.git
- - cd po4a && git checkout git_doc && cd ..
+ - sh ci/install_po4a.sh
 script:
  - sh ci/build.sh
 addons:
diff --git a/ci/install_po4a.sh b/ci/install_po4a.sh
new file mode 100644
index 0000000000000000000000000000000000000000..05e3caeef7ded20db07298609ccbbea1885b89ea
--- /dev/null
+++ b/ci/install_po4a.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+git clone https://github.com/jnavila/po4a.git
+cd po4a && git checkout git_doc && cd ..