-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
53 lines (44 loc) · 1.04 KB
/
.travis.yml
File metadata and controls
53 lines (44 loc) · 1.04 KB
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
dist: trusty
services:
- postgresql
env:
# Use test credentials for sequelize
- NODE_ENV=test
sudo: required
before_install:
# Repo for Yarn
- sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- sudo apt-get update -qq
- sudo apt-get install -y -qq yarn=1.5.1-1
addons:
chrome: stable
language: node_js
node_js:
- "9"
cache:
yarn: true
directories:
- ./client/node_modules
- ./server/node_modules
install:
- yarn run client-server:install
script:
# Use Chromium instead of Chrome.
# - export CHROME_BIN=chromium-browser
# Initialize database: create, migrate, seed
- xvfb-run -a yarn run db
# Run backend
- xvfb-run -a yarn run server &
# Run linter
- xvfb-run -a yarn run client:lint
# Run unit tests
- xvfb-run -a yarn run client:unit
# Run e2e tests
- xvfb-run -a yarn run client:e2e
# - sleep 3
after_script:
# Stop backend
- pkill node
notifications:
email: false