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