/
.travis.yml
58 lines (47 loc) · 3.48 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
language: node_js
cache: yarn
os:
- linux
- osx
node_js:
- 10
- 12
- node
# matrix:
# fast_finish: true
# include:
# - name: "Windows build"
# os: windows
# cache: false # windows cache uploads are slow
# env: YARN_GPG=no # starts gpg-agent that never exits
# node_js: 10
# - name: "Windows build"
# os: windows
# cache: false # windows cache uploads are slow
# env: YARN_GPG=no # starts gpg-agent that never exits
# node_js: 12
# - name: "Windows build"
# os: windows
# cache: false # windows cache uploads are slow
# env: YARN_GPG=no # starts gpg-agent that never exits
# node_js: node
before_install:
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then powershell -command 'Set-MpPreference -DisableRealtimeMonitoring $true' ; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then export NODEPATH=$(where.exe node.exe) ; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then export PROJECTDIR=$(pwd) ; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then export YARNCACHE=$(yarn cache dir) ; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then export TEMPDIR=$LOCALAPPDATA\\Temp ; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then powershell Add-MpPreference -ExclusionProcess ${NODEPATH} ; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then powershell Add-MpPreference -ExclusionPath ${YARNCACHE} ; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then powershell Add-MpPreference -ExclusionPath ${PROJECTDIR} ; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then powershell Add-MpPreference -ExclusionPath ${TEMPDIR} ; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then echo "DisableArchiveScanning..." ; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableArchiveScanning \$true'" ; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then echo "DisableBehaviorMonitoring..." ; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableBehaviorMonitoring \$true'" ; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then echo "DisableRealtimeMonitoring..." ; fi
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then powershell Start-Process -PassThru -Wait PowerShell -ArgumentList "'-Command Set-MpPreference -DisableRealtimeMonitoring \$true'" ; fi
install: yarn --ignore-scripts --frozen-lockfile --non-interactive
script:
- yarn build
- yarn test