forked from qmk/qmk_configurator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (35 loc) · 942 Bytes
/
.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
addons:
apt:
packages:
# Ubuntu 16+ does not install this dependency by default, so we need to install it ourselves
- libgconf-2-4
language: node_js
node_js:
- 11.12 # need this version for Jest 24, prior versions have SYMBOL bugs
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:
- yarn install
- npx cypress install
script:
- yarn run prettier:check
- yarn run prettier:json:check
- yarn run lint
- yarn run test:cypress:ci
# Echo the travis commit to env file to be set in the build process
- echo VUE_APP_TRAVIS_COMMIT=$TRAVIS_COMMIT >> .env.production
- yarn run build
deploy:
provider: pages
skip_cleanup: true
local_dir: dist
github_token: $GH_TOKEN
keep_history: false
fqdn: config.qmk.fm
on:
branch: master