forked from qmk/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor of CI * add build step
- Loading branch information
Showing
1 changed file
with
32 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,32 @@ | ||
dist: xenial | ||
services: | ||
- xvfb # adds X server for nightwatch/selenium/chromedriver | ||
language: node_js | ||
node_js: | ||
- 11.12 # need this version for Jest 24, prior versions have SYMBOL bugs | ||
before_script: | ||
- git clone --single-branch --branch config https://github.com/qmk/qmk_configurator config | ||
- cp config/ga-production.js src/ | ||
- yarn install | ||
- yarn build | ||
script: bash ./deploy.sh | ||
branches: | ||
only: | ||
- master | ||
notifications: | ||
webhooks: | ||
urls: | ||
- https://webhooks.gitter.im/e/428080202c6aa8650101 | ||
on_success: always # options: [always|never|change] default: always | ||
on_failure: always # options: [always|never|change] default: always | ||
on_start: never # options: [always|never|change] default: always | ||
dist: xenial | ||
services: | ||
- xvfb # adds X server for nightwatch/selenium/chromedriver | ||
language: node_js | ||
node_js: | ||
- 11.12 # need this version for Jest 24, prior versions have SYMBOL bugs | ||
|
||
install: | ||
- yarn install | ||
|
||
script: | ||
- yarn run lint | ||
- yarn run test:unit | ||
- yarn run test:e2e | ||
- yarn run build | ||
|
||
deploy: | ||
provider: pages | ||
skip_cleanup: true | ||
local_dir: dist | ||
github_token: $GH_TOKEN | ||
keep_history: true | ||
on: | ||
branch: master | ||
|
||
notifications: | ||
webhooks: | ||
urls: | ||
- https://webhooks.gitter.im/e/428080202c6aa8650101 | ||
on_success: always # options: [always|never|change] default: always | ||
on_failure: always # options: [always|never|change] default: always | ||
on_start: never # options: [always|never|change] default: always |