Bypass often-corrupt node_modules/.bin/grunt.cmd on windows (#1481)

FREEBIE
This commit is contained in:
Scott Nonnenberg 2017-09-14 16:05:31 -07:00
parent c2c9cd0aa2
commit c6d461c579
No known key found for this signature in database
GPG key ID: A4931C09644C654B
2 changed files with 5 additions and 4 deletions

View file

@ -10,19 +10,18 @@ install:
- set PATH=C:\Ruby23-x64\bin;%PATH% - set PATH=C:\Ruby23-x64\bin;%PATH%
- ps: Install-Product node 6 x64 - ps: Install-Product node 6 x64
- yarn install - yarn install
- type node_modules\.bin\grunt.cmd
build_script: build_script:
- yarn run icon-gen - yarn run icon-gen
- del /f images\emoji\apple - del /f images\emoji\apple
- mkdir images\emoji\apple - mkdir images\emoji\apple
- xcopy /Q components\emojidata\img-apple-64 images\emoji\apple - xcopy /Q components\emojidata\img-apple-64 images\emoji\apple
- node_modules\.bin\grunt - node build\grunt.js
- node_modules\.bin\build --em.environment=%SIGNAL_ENV% --publish=never - node_modules\.bin\build --em.environment=%SIGNAL_ENV% --publish=never
test_script: test_script:
- node_modules\.bin\grunt test-release:win - node build\grunt.js test-release:win
- node_modules\.bin\grunt test - node build\grunt.js test
artifacts: artifacts:
- path: dist/*.* - path: dist/*.*

2
build/grunt.js Normal file
View file

@ -0,0 +1,2 @@
// because grunt.cmd is totally flakey on windows
require('grunt').cli();