From ce27b0ab7d79f0ba5edc0623da49054a1178ef3a Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Wed, 16 Oct 2019 12:07:48 +0200 Subject: [PATCH] fix(ci): run regular build on osx and windows --- .travis.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 080252a2e..94c35c02c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,18 @@ matrix: allow_failures: - os: windows - os: osx +env: + global: + # https://travis-ci.community/t/windows-builds-time-out-during-cache-restore/4642/4 + - > + DISABLE_WINDOWS_DEFENDER=`powershell -Command + Set-MpPreference -DisableArchiveScanning \\\$true` + - > + DISABLE_WINDOWS_DEFENDER=`powershell -Command + Set-MpPreference -DisableRealtimeMonitoring \\\$true` + - > + DISABLE_WINDOWS_DEFENDER=`powershell -Command + Set-MpPreference -DisableBehaviorMonitoring \\\$true` cache: - npm - yarn @@ -19,9 +31,12 @@ addons: install: - npm run ci:install script: - - npm run ci:build - - npm run ci:test - - npm run ci:lint + - npm run build + - npm run test + - npm run lint after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov notifications: - email: false + email: + if: branch = master + on_success: never + on_failure: always