forked from mirego/accent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (37 loc) · 850 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Use Travis container-based infrastructure
sudo: false
# Elixir baby!
language: 'elixir'
elixir: 1.6.4
otp_release: 20.2.1
node_js: 9.5.0
cache:
directories:
- _build
- deps
# Make sure PostgreSQL is running
addons:
postgresql: 9.6
apt:
packages:
- libyaml-dev
# Set global environment variables
env:
global:
- NODE_VERSION: '9.5.0'
- MIX_ENV: 'test'
- SECRET_KEY_BASE: 'lolwut'
- DATABASE_URL: 'postgres://localhost/accent_web_test'
# Output Travis server IP for debugging
before_install:
- 'echo `curl --verbose http://jsonip.com`'
- npm config set spin false
- npm --prefix webapp install
- npm --prefix webapp run build-production
# Create database and prepare the application
before_script:
- mix compile
- mix ecto.setup
script:
- ./priv/scripts/ci-check.sh
- mix coveralls.travis