forked from alibaba/rax
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
37 lines (30 loc) · 717 Bytes
/
.travis.yml
File metadata and controls
37 lines (30 loc) · 717 Bytes
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
sudo: required
language: node_js
before_install:
- npm i -g npm@6
- npm i eslint -g
node_js:
- "8"
- "12"
before_script:
- npm run setup
script:
- npm run lint:nofix
- npm run test
jobs:
include:
- stage: bench
addons:
apt:
sources: google-chrome
packages: google-chrome-stable
skip_cleanup: true
# https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-services-xvfb
services:
- xvfb
script: npm run bench
stages:
- test # default stage
- name: bench
# require the branch name to be master (note for PRs this is the base branch name)
if: (branch = master AND type != pull_request) OR branch =~ ^bench