-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (28 loc) · 857 Bytes
/
.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
sudo: required
language: perl
perl:
- "5.24"
addons:
apt:
packages:
- postgresql-9.5
- postgresql-contrib-9.5
postgresql: 9.5
env:
global:
- SL_HOST=127.0.0.1
before_install:
- psql -c "CREATE USER vagrant WITH PASSWORD 'password'" -U postgres
- psql -c "CREATE DATABASE scrabblicious OWNER=vagrant" -U postgres
- psql -c "CREATE EXTENSION IF NOT EXISTS pgcrypto" scrabblicious -U postgres
- cp -a $TRAVIS_BUILD_DIR/scrabblicious.sample.conf $TRAVIS_BUILD_DIR/scrabblicious.development.conf
- cp -a $TRAVIS_BUILD_DIR/scrabblicious.sample.conf $TRAVIS_BUILD_DIR/scrabblicious.production.conf
install:
- cpanm -n Carton
- carton install --deployment --cached
- carton exec perl script/scrabblicious migrate --latest
script:
- carton exec prove -rl
after_failure: "cat ~/.cpanm/build.log"
notifications:
email: true