Attempt to fix build flakiness using "npm ci"

This commit is contained in:
Steve Sanderson 2018-11-26 19:54:43 +00:00
parent 163d6f7c54
commit 429888cc6d
3 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ init:
- git config --global core.autocrlf true
install:
- git submodule update --init --recursive
- ps: Install-Product node 8 x64
- ps: Install-Product node 10 x64
branches:
only:
- master

View File

@ -26,8 +26,8 @@ before_install:
/usr/local/lib/; fi
install:
- . $HOME/.nvm/nvm.sh
- nvm install 8.9.4
- nvm use 8.9.4
- nvm install 10.13.0
- nvm use 10.13.0
- npm install -g selenium-standalone
- selenium-standalone install
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export TEST_CHROME_BINARY=`which google-chrome-stable`; fi

View File

@ -18,7 +18,7 @@
<Target Name="EnsureNpmRestored" Condition="!Exists('node_modules')">
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." />
<Exec Command="npm install" />
<Exec Command="npm ci" />
</Target>
<Target Name="RunWebpack" AfterTargets="ResolveReferences" Inputs="@(WebpackInputs)" Outputs="dist\blazor.webassembly.js;dist\blazor.server.js" DependsOnTargets="EnsureNpmRestored">