forked from GreggJuanEduardoPH/sinuous
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·52 lines (42 loc) · 1.16 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
sudo: true
language: node_js
node_js:
- "10"
cache:
yarn: true
directories:
- node_modules
# As --depth implies --single-branch, removing this flag means that all branches will be checked out
git:
depth: false
# Make chrome browser available for testing
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
services:
- xvfb
install:
- yarn
addons:
chrome: stable
sauce_connect: true
jobs:
include:
- stage: tests
name: "Unit tests"
script: COVERAGE=true yarn test --single-run
- script:
- git fetch && git checkout origin/gh-pages -- bench/results/results.json
- echo '!/bench/results/dist/' >> .gitignore
- (cd bench && yarn && yarn build-prod)
- (cd bench && (yarn start --silent & yarn bench --count 3 --overwrite vanillajs,react-16.10.2,sinuous-0.23.1))
name: "Benchmark"
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep_history: true
on:
branch: master
after_success:
- yarn run coverage