Browse Source

installons cpanm à la main

Sniperovitch 8 years ago
parent
commit
a84fa87ee5
2 changed files with 7 additions and 5 deletions
  1. 2 5
      .travis.yml
  2. 5 0
      build.sh

+ 2 - 5
.travis.yml

@@ -1,6 +1,4 @@
-language: perl
-perl:
-  - "5.24"
+language: c
 branches:
 branches:
   except:
   except:
     - refactoring
     - refactoring
@@ -18,7 +16,7 @@ before_install:
   - sudo apt-get install -y texlive-latex-extra
   - sudo apt-get install -y texlive-latex-extra
   - sudo apt-get install -y python-pip
   - sudo apt-get install -y python-pip
   - sudo pip install pandoc-latex-environment
   - sudo pip install pandoc-latex-environment
-  - "cpanm Etherpad Config::YAML URI::Encode"
+  - ./build.sh
 notifications:
 notifications:
   irc:
   irc:
     channels:
     channels:
@@ -29,6 +27,5 @@ notifications:
       - "%{commit_message}"
       - "%{commit_message}"
     use_notice: true
     use_notice: true
 script:
 script:
-  - ./build.sh
   - ./test_cocktail_01 && ./test_cocktail_02 && ./test_cocktail_03
   - ./test_cocktail_01 && ./test_cocktail_02 && ./test_cocktail_03
 
 

+ 5 - 0
build.sh

@@ -2,4 +2,9 @@
 cd && git clone https://github.com/hugoroy/exegetesDoc.git
 cd && git clone https://github.com/hugoroy/exegetesDoc.git
 cd -
 cd -
 cp -v cocktail.conf.smp cocktail.conf
 cp -v cocktail.conf.smp cocktail.conf
+curl -L https://cpanmin.us | perl - App::cpanminus
+~/perl5/bin/cpanm local::lib
+~/perl5/bin/cpanm URI::Encode Etherpad Config::YAML
 
 
+# Add path to ~/perl5 modules to ~/.bashrc
+echo '[ $SHLVL -eq 1 ] && eval "$(perl -I$HOME/perl5/lib/perl5 -Mlocal::lib)"' >> ~/.bashrc