Skip to content

Commit

Permalink
refactor of CI (qmk#460)
Browse files Browse the repository at this point in the history
* refactor of CI

* add build step
  • Loading branch information
zekth authored and yanfali committed Aug 6, 2019
1 parent 208c507 commit ace4ba1
Showing 1 changed file with 32 additions and 22 deletions.
54 changes: 32 additions & 22 deletions .travis.yml
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

0 comments on commit ace4ba1

Please sign in to comment.