CI: Ensure browser tests are up-to-date (#5396)
This commit is contained in:
parent
f557c0579b
commit
6fd58ef11c
|
@ -30,13 +30,12 @@ jobs:
|
||||||
- run: node ./bin/cake build:parser
|
- run: node ./bin/cake build:parser
|
||||||
# Build the browser compiler for the headless browser test
|
# Build the browser compiler for the headless browser test
|
||||||
- run: node ./bin/cake build:browser
|
- run: node ./bin/cake build:browser
|
||||||
|
# Build test.html, so that test:browser uses the latest tests
|
||||||
|
- run: node ./bin/cake doc:test
|
||||||
|
|
||||||
# Check that the git diff is clean, to ensure that the updated build output was committed
|
# Check that the git diff is clean, to ensure that the updated build output was committed
|
||||||
- run: git diff --exit-code
|
- run: git diff --exit-code
|
||||||
|
|
||||||
# Build test.html, so that test:browser uses the latest tests
|
|
||||||
- run: node ./bin/cake doc:test
|
|
||||||
|
|
||||||
# Test
|
# Test
|
||||||
- run: node ./bin/cake test
|
- run: node ./bin/cake test
|
||||||
- run: node ./bin/cake test:browser
|
- run: node ./bin/cake test:browser
|
||||||
|
|
2
Cakefile
2
Cakefile
|
@ -310,7 +310,7 @@ buildDocTests = (watch = no) ->
|
||||||
# Helpers
|
# Helpers
|
||||||
testsInScriptBlocks = ->
|
testsInScriptBlocks = ->
|
||||||
output = ''
|
output = ''
|
||||||
for filename in fs.readdirSync testsSourceFolder
|
for filename in fs.readdirSync(testsSourceFolder).sort()
|
||||||
if filename.indexOf('.coffee') isnt -1
|
if filename.indexOf('.coffee') isnt -1
|
||||||
type = 'coffeescript'
|
type = 'coffeescript'
|
||||||
else if filename.indexOf('.litcoffee') isnt -1
|
else if filename.indexOf('.litcoffee') isnt -1
|
||||||
|
|
Loading…
Reference in New Issue