-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
53 lines (44 loc) · 896 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
46
47
48
49
50
51
52
53
language: ruby
sudo: required
dist: trusty
env:
- CXX=g++-4.8 RAILS_GROUPS=build
addons:
postgresql: "13.4"
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
cache:
bundler: true
directories:
- node_modules
- client/node_modules
- client/apps/hello_world/node_modules
branches:
only:
- master
- staging
- stable
services:
- postgresql
before_install:
- cp config/secrets.yml.example config/secrets.yml
- cp config/ci.database.yml config/database.yml
- cp .env.example .env
- nvm install 14.18.2
- nvm use 14.18.2
- 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