This repository has been archived by the owner on May 26, 2020. It is now read-only.
forked from mysociety/alavetelitheme
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
38 lines (38 loc) · 1.51 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
language: ruby
branches:
only:
- master
- develop
rvm:
- 1.9.3
- 2.0.0
env:
global:
- S3_REGION=us-east-1
- S3_BUCKET_NAME=alaveteli-bundle-cache
- secure: "cbZMhxbih4k2syqykwVprnBBTyD9Rk9pVhwM2W1Oa3Y9QIn79giL2yTUrJi3+bapHHFedWstG1wkLxEalc/Ei1G4vWYDqXiOtdzYR/WMqqCyd8royrkusist+rVcolvZ2dTCu8uvmteQ6sE3/FsoayTlYJmWCNFWhAiWayaai8Q="
before_install:
- gem update --system 2.1.11
- gem install rake --version=0.9.2.2
- git submodule update --init --recursive
- psql -c "create database template_utf8 template template0 encoding 'UTF-8';" -U postgres
- psql -c "update pg_database set datistemplate=true where datname='template_utf8';" -U postgres
- psql -c "create database foi_test template template_utf8;" -U postgres
- cp config/database.yml-test config/database.yml
- cp config/general.yml-example config/general.yml
- cp config/newrelic.yml-example config/newrelic.yml
- sudo apt-get update
- export DEBIAN_FRONTEND=noninteractive
- sudo apt-get -y install exim4-daemon-light
- sudo apt-get -y install `cut -d " " -f 1 config/packages | egrep -v "(^#|wkhtml|bundler|^ruby$|^ruby1.9.1$|^rubygems$|^rake)"`
- RAILS_ENV=test ./script/rails-post-deploy
- RAILS_ENV=test ./script/update-xapian-index
install: echo 'Bundle installed through script/rails-post-deploy'
notifications:
irc: "irc.freenode.org#alaveteli"
email:
recipients:
addons:
code_climate:
repo_token: ee19b27266ded8ab2d2c4e65c66a79fc58b11ff9c4bd84673ae21b1a565f3e6d