forked from salesforce/refocus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
56 lines (45 loc) · 1.02 KB
/
.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
54
55
56
language: node_js
node_js:
- "8"
# safelist - only do branch build for "master" (keep doing PR builds for
# every pr)
branches:
only:
- master
# Set sudo to false for "container-based" environment, a fast boot time
# environment in which sudo commands are not available.
sudo: false
# By default, travis clones repositories to a depth of 50 commits, which is
# only really useful if you are performing git operations. Please note that if
# you use a depth of 1 and have a queue of jobs, Travis CI won’t build commits
# that are in the queue when you push a new commit.
git:
depth: 2
# cache:
# timeout: 3600
# directories:
# - node_modules
env:
global:
- NODE_ENV=build
- CXX=g++-4.8
addons:
postgresql: "9.6"
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
services:
- redis-server
script:
- npm run jscs-enforce
- npm run checkdb
- npm run test-travis
before_install:
- npm install -g npm@^5.7.0
install:
- npm ci
cache:
directories:
- "$HOME/.npm"