forked from openfoodfacts/openfoodfacts-server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
44 lines (44 loc) · 1.42 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
branches:
except:
- l10n_master
language: perl
perl:
- "system"
env: COVERAGE=1
cache:
yarn: true
directories:
- $HOME/.npm
- node_modules
- $HOME/.cache
- $HOME/perl5
addons:
apt:
packages:
- libapache2-request-perl
- libimage-magick-perl
- libbarcode-zbar-perl
- tesseract-ocr
- graphviz
sudo: false
before_install:
- nvm install --lts
- cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
install:
- cpanm --quiet --installdeps --notest --skip-satisfied .
- yarn install
- yarn 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 refresh_taxonomies.js
script:
- yarn test
notifications:
slack: openfoodfacts:Pre9ZXKFH1CYtix8DeJAaFi2