mirror of
https://github.com/msojocs/wx-compiler.git
synced 2025-07-19 00:00:04 +08:00
test
This commit is contained in:
parent
8b0ed3be8e
commit
1a81a9a8b2
@ -37,7 +37,6 @@ docker run -d -i\
|
||||
--env=XVFB_SCREEN=0\
|
||||
--env=XVFB_RESOLUTION=320x240x8\
|
||||
--env=DISPLAY=:95\
|
||||
--rm\
|
||||
--hostname=DESKTOP-1TV4OA1\
|
||||
--name=wine\
|
||||
--shm-size=1g\
|
||||
@ -47,9 +46,16 @@ docker run -d -i\
|
||||
-p 8083:8083\
|
||||
scottyhardy/docker-wine:latest\
|
||||
wine /workspace/cache/nwjs-sdk-v$nw_version-win-x64/nw.exe
|
||||
i=0
|
||||
until $(curl --output /dev/null --silent --head --fail http://127.0.0.1:8083/check); do
|
||||
printf '.'
|
||||
curl http://127.0.0.1:8083/check
|
||||
sleep 1
|
||||
let i=$i+1
|
||||
if [ $i -ge 5 ];then
|
||||
echo "error"
|
||||
docker ps -a
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
echo "success"
|
@ -6,13 +6,8 @@ import linux from '../../../runner/module-linux'
|
||||
import windows from '../../../runner/module-windows'
|
||||
import * as fs from 'fs'
|
||||
|
||||
windows.start()
|
||||
describe("wcc - module", function () {
|
||||
this.beforeAll(function(done) {
|
||||
this.timeout(120000)
|
||||
windows.start()
|
||||
console.log('start success!')
|
||||
done()
|
||||
})
|
||||
this.afterAll(() => {
|
||||
windows.close()
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user