dist: trusty
language: ruby
rvm:
  - 2.3.1
  - 2.5.3

# User container based travis infrastructure which allows caching
# features for open source projects.
sudo: false
cache:
  bundler: true
  directories:
    - node_modules

env:
  - PUBLISH_THEME_DOC=true COVERALLS_PARALLEL=true

services:
  - redis-server

before_install:
  - nvm install stable
  - gem update bundler

before_script:
  - bin/npm ci
  - bin/npm run build
  - bin/rake pageflow:dummy
  - bin/rake app:assets:precompile

script:
  - bin/rspec
  - bin/teaspoon
  - bin/npm test

after_success:
  - bundle exec publish-pageflow-theme-doc

notifications:
  webhooks: https://coveralls.io/webhook?service_name=travis-ci

addons:
  chrome: stable

dist: xenial
language: ruby
rvm:
  - 2.3.1
  - 2.5.3

# User container based travis infrastructure which allows caching
# features for open source projects.
sudo: false
cache:
  bundler: true
  directories:
    - node_modules

env:
  - PUBLISH_THEME_DOC=true COVERALLS_PARALLEL=true

services:
  - redis-server
  - mysql

before_install:
  - nvm install stable
  - gem update bundler

before_script:
  - bin/npm ci
  - bin/npm run build
  - bin/rake pageflow:dummy
  - bin/rake app:assets:precompile

script:
  - bin/rspec
  - bin/teaspoon
  - bin/npm test

after_success:
  - bundle exec publish-pageflow-theme-doc

notifications:
  webhooks: https://coveralls.io/webhook?service_name=travis-ci

addons:
  chrome: stable

Update Travis Ubuntu to xenial
Update Travis Ubuntu to xenial

Xenial has MySQL 5.7 as default, and MySQL 5.7 has a higher limit for
key prefix length by default. This means that varchar(255)-type
columns are possible even when using utf8mb4 and not utf8mb3: 255*4
exceeds MySQL 5.5's default of 767 bytes, but not MySQL 5.7's default
of 3072 bytes.

REDMINE-17010
