forked from openfoodfacts/openfoodfacts-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (37 loc) · 1.89 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: perl
perl:
- "system"
env: COVERAGE=1
cache:
directories:
- $HOME/.npm
- $HOME/.cache
- $HOME/perl5
addons:
apt:
packages:
- libapache2-request-perl
- libimage-magick-perl
- libbarcode-zbar-perl
- tesseract-ocr
- graphviz
sudo: false
before_install:
- npm install -g bower
- npm install -g jshint
- cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
install:
- cpanm --quiet --installdeps --notest --skip-satisfied .
- bower install
- ln -s /home/travis/build/openfoodfacts/openfoodfacts-server/lib/ProductOpener/Config_off.pm /home/travis/build/openfoodfacts/openfoodfacts-server/lib/ProductOpener/Config.pm
- cp /home/travis/build/openfoodfacts/openfoodfacts-server/lib/ProductOpener/Config2_sample.pm /home/travis/build/openfoodfacts/openfoodfacts-server/lib/ProductOpener/Config2.pm
- ln -s /home/travis/build/openfoodfacts/openfoodfacts-server/lib/ProductOpener/SiteLang_off.pm /home/travis/build/openfoodfacts/openfoodfacts-server/lib/ProductOpener/SiteLang.pm
- sed -i -e 's/\$server_domain = "openfoodfacts.org";/\$server_domain = "off.travis-ci.org";/g' /home/travis/build/openfoodfacts/openfoodfacts-server/lib/ProductOpener/Config2.pm
- sed -i -e 's/\$www_root = "\/home\/off\/html";/\$www_root = "\/home\/travis\/build\/openfoodfacts\/openfoodfacts-server\/html";/g' /home/travis/build/openfoodfacts/openfoodfacts-server/lib/ProductOpener/Config2.pm
- sed -i -e 's/\$data_root = "\/home\/off";/\$data_root = "\/home\/travis\/build\/openfoodfacts\/openfoodfacts-server";/g' /home/travis/build/openfoodfacts/openfoodfacts-server/lib/ProductOpener/Config2.pm
script:
- prove -l
- perl -c -CS -I/home/travis/build/openfoodfacts/openfoodfacts-server/lib lib/startup_apache2.pl
- jshint --show-non-errors html/js/product-multilingual.js html/js/search.js
notifications:
slack: openfoodfacts:Pre9ZXKFH1CYtix8DeJAaFi2