language: ruby
sudo: required
dist: bionic

env:
  - CXX=g++-4.8

addons:
  postgresql: "9.5"
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - g++-4.8

cache:
  bundler: true
  directories:
    - node_modules

services:
  - postgresql

before_install:
  - cp config/secrets.example.yml config/secrets.yml
  - cp config/ci.database.yml config/database.yml
  - cp .env.example .env
  - nvm install 10.17.0
  - nvm use 10.17.0
  - npm install -g yarn

install:
  - bundle install --path vendor/bundle
  - yarn

before_script:
  - export CHROME_BIN=chromium-browser
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - bundle exec rails db:create
  - bundle exec rails db:schema:load

script:
  - ./bin/ci
  - yarn test

language: ruby
sudo: required
dist: trusty

env:
  - CXX=g++-4.8

addons:
  postgresql: "9.5"
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - g++-4.8

cache:
  bundler: true
  directories:
    - node_modules

services:
  - postgresql

before_install:
  - cp config/secrets.example.yml config/secrets.yml
  - cp config/ci.database.yml config/database.yml
  - cp .env.example .env
  - nvm install 10.17.0
  - nvm use 10.17.0
  - npm install -g yarn

install:
  - bundle install --path vendor/bundle
  - yarn

before_script:
  - export CHROME_BIN=chromium-browser
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - bundle exec rails db:create
  - bundle exec rails db:schema:load

script:
  - ./bin/ci
  - yarn test

Revert "bump dist to bionic to get ruby 2.5"
Revert "bump dist to bionic to get ruby 2.5"

This reverts commit 1cea28d344a340bcf28bca7eef90c81fddf6b9ea.
