forked from openfoodfacts/openfoodfacts-server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
59 lines (59 loc) · 1.76 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
os: linux
language: generic
dist: bionic
branches:
except:
- l10n_master
env: COVERAGE=1
cache:
directories:
- $HOME/.npm
- node_modules
- $HOME/.cache
- $HOME/perl5
addons:
apt:
packages:
- cpanminus
- tesseract-ocr
- graphviz
# Packages from ./cpanfile
- libwww-perl
- libimage-magick-perl
- libxml-encoding-perl
- libtext-unaccent-perl
- libmime-lite-perl
- libcache-memcached-fast-perl
- libjson-pp-perl
- libclone-perl
- libcrypt-passwdmd5-perl
- libencode-detect-perl
- libgraphics-color-perl
- libbarcode-zbar-perl
- libxml-feedpp-perl
- liburi-find-perl
- libxml-simple-perl
- libexperimental-perl
- libapache2-request-perl
- libdigest-md5-perl
- libtime-local-perl
- libdbd-pg-perl
before_install:
- nvm install --lts
- cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
install:
- cpanm --quiet --installdeps --notest --skip-satisfied .
- npm install
- npm run build
- ln -s $TRAVIS_BUILD_DIR/lib/ProductOpener/Config_off.pm $TRAVIS_BUILD_DIR/lib/ProductOpener/Config.pm
- cp $TRAVIS_BUILD_DIR/lib/ProductOpener/Config2_sample.pm $TRAVIS_BUILD_DIR/lib/ProductOpener/Config2.pm
- ln -s $TRAVIS_BUILD_DIR/lib/ProductOpener/SiteLang_off.pm $TRAVIS_BUILD_DIR/lib/ProductOpener/SiteLang.pm
- sed -i -e 's|\$server_domain = "openfoodfacts.org";|\$server_domain = "off.travis-ci.org";|g' $TRAVIS_BUILD_DIR/lib/ProductOpener/Config2.pm
- sed -i -e 's|\/home\/off|'$TRAVIS_BUILD_DIR'|g' $TRAVIS_BUILD_DIR/lib/ProductOpener/Config2.pm
before_script:
- perl -CS -I$TRAVIS_BUILD_DIR/lib $TRAVIS_BUILD_DIR/scripts/build_lang.pl
- node scripts/refresh_taxonomies.js
script:
- npm test
after_failure:
- cat $HOME/.cpanm/build.log