mirror of
https://github.com/mirego/accent.git
synced 2024-09-11 18:58:14 +03:00
55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
# Use Travis container-based infrastructure
|
|
sudo: false
|
|
|
|
# Elixir baby!
|
|
language: 'elixir'
|
|
|
|
elixir: 1.8.1
|
|
otp_release: 21.2.5
|
|
node_js: 10.14.1
|
|
|
|
cache:
|
|
directories:
|
|
- _build
|
|
- deps
|
|
- node_modules
|
|
- webapp/node_modules
|
|
- cli/node_modules
|
|
- jipt/node_modules
|
|
|
|
# Make sure PostgreSQL is running
|
|
addons:
|
|
postgresql: 9.6
|
|
apt:
|
|
packages:
|
|
- libyaml-dev
|
|
|
|
# Set global environment variables
|
|
env:
|
|
global:
|
|
- NODE_VERSION: '10.14.1'
|
|
- 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 i --no-audit --no-color
|
|
- npm i --prefix webapp --no-audit --no-color
|
|
- npm i --prefix cli --no-audit --no-color
|
|
- npm i --prefix jipt --no-audit --no-color
|
|
- 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
|
|
- npm --prefix cli run build
|
|
- npm --prefix jipt run build-production
|
|
- mix coveralls.travis
|