forked from ProtoSchool/protoschool.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
39 lines (39 loc) · 797 Bytes
/
.travis.yml
File metadata and controls
39 lines (39 loc) · 797 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
38
39
os:
- linux
dist: xenial
language: node_js
node_js:
- lts/*
addons:
chrome: stable
apt:
packages:
- libgconf-2-4
cache:
# Caches $HOME/.npm when npm ci is default script command
# Caches node_modules in all other cases
npm: true
directories:
# we also need to cache folder with Cypress binary
- ~/.cache
install:
- npm ci
script:
- npm run scripts:build:data -- --dry-run=false
- npm run build
- npm run test:jest
- npm run cy:serve &
- npm run cy:run
- kill $(jobs -p) || true
notifications:
email: false
deploy:
provider: pages
local_dir: dist
target_branch: master
cleanup: true
token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep_history: true
fqdn: proto.school
on:
branch: code