From ace4ba1b4e201a23ac77f3896c4cdc8b242693fe Mon Sep 17 00:00:00 2001 From: Vincent LE GOFF Date: Wed, 7 Aug 2019 01:18:01 +0200 Subject: [PATCH] refactor of CI (#460) * refactor of CI * add build step --- .travis.yml | 54 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 32 insertions(+), 22 deletions(-) diff --git a/.travis.yml b/.travis.yml index 1c31dbf8a941..846fbff2fb8e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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