Attempt to fix build flakiness using "npm ci"
This commit is contained in:
parent
163d6f7c54
commit
429888cc6d
|
|
@ -2,7 +2,7 @@ init:
|
||||||
- git config --global core.autocrlf true
|
- git config --global core.autocrlf true
|
||||||
install:
|
install:
|
||||||
- git submodule update --init --recursive
|
- git submodule update --init --recursive
|
||||||
- ps: Install-Product node 8 x64
|
- ps: Install-Product node 10 x64
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,8 @@ before_install:
|
||||||
/usr/local/lib/; fi
|
/usr/local/lib/; fi
|
||||||
install:
|
install:
|
||||||
- . $HOME/.nvm/nvm.sh
|
- . $HOME/.nvm/nvm.sh
|
||||||
- nvm install 8.9.4
|
- nvm install 10.13.0
|
||||||
- nvm use 8.9.4
|
- nvm use 10.13.0
|
||||||
- npm install -g selenium-standalone
|
- npm install -g selenium-standalone
|
||||||
- selenium-standalone install
|
- selenium-standalone install
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export TEST_CHROME_BINARY=`which google-chrome-stable`; fi
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export TEST_CHROME_BINARY=`which google-chrome-stable`; fi
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
<Target Name="EnsureNpmRestored" Condition="!Exists('node_modules')">
|
<Target Name="EnsureNpmRestored" Condition="!Exists('node_modules')">
|
||||||
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." />
|
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." />
|
||||||
<Exec Command="npm install" />
|
<Exec Command="npm ci" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="RunWebpack" AfterTargets="ResolveReferences" Inputs="@(WebpackInputs)" Outputs="dist\blazor.webassembly.js;dist\blazor.server.js" DependsOnTargets="EnsureNpmRestored">
|
<Target Name="RunWebpack" AfterTargets="ResolveReferences" Inputs="@(WebpackInputs)" Outputs="dist\blazor.webassembly.js;dist\blazor.server.js" DependsOnTargets="EnsureNpmRestored">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue