accent/.travis.yml
2018-12-08 15:24:01 -05:00

47 lines
874 B
YAML

# Use Travis container-based infrastructure
sudo: false
# Elixir baby!
language: 'elixir'
elixir: 1.7.4
otp_release: 20.2.1
node_js: 9.5.0
cache:
directories:
- _build
- deps
- webapp/node_modules
# 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