forked from mysociety/fixmystreet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (38 loc) · 1.32 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
notifications:
email: false
irc:
channels:
- "irc.mysociety.org#fixmystreet"
use_notice: true
skip_join: true
language: perl
perl:
- "5.14"
branches:
only:
- master
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq jhead libgmp-dev
# A couple of other modules that normally come from packages, but no system stuff here
- cpanm -q Carton Locale::gettext Math::BigInt::GMP
# This is because of a bug in its test (it's empty), and SOAP::Lite depends on it.
# Would be good to not have SOAP::Lite as a dependency at all really.
- cpanm -q DIME::Tools --force
# And let's install the same version the carton.lock file currently has.
- cpanm -q MKUTTER/SOAP-Lite-0.715.tar.gz
- sudo locale-gen cy_GB.UTF-8 en_GB.UTF-8 nb_NO.UTF-8 de_CH.UTF-8
install:
- carton install --deployment
before_script:
- psql -c 'create database fms;' -U postgres
- psql fms postgres < db/schema.sql
- psql fms postgres < db/alert_types.sql
- psql fms postgres < db/generate_secret.sql
- >
sed -r -e "s,(FMS_DB_USER:) 'fms',\\1 'postgres',"
conf/general.yml-example > conf/general.yml
- ./bin/cron-wrapper ./bin/make_po FixMyStreet-EmptyHomes
- ./bin/cron-wrapper ./bin/make_emptyhomes_welsh_po
- commonlib/bin/gettext-makemo FixMyStreet
script: "bin/cron-wrapper perl /usr/bin/prove -rl t"