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_SCREEN=0\
|
||||||
--env=XVFB_RESOLUTION=320x240x8\
|
--env=XVFB_RESOLUTION=320x240x8\
|
||||||
--env=DISPLAY=:95\
|
--env=DISPLAY=:95\
|
||||||
--rm\
|
|
||||||
--hostname=DESKTOP-1TV4OA1\
|
--hostname=DESKTOP-1TV4OA1\
|
||||||
--name=wine\
|
--name=wine\
|
||||||
--shm-size=1g\
|
--shm-size=1g\
|
||||||
@ -47,9 +46,16 @@ docker run -d -i\
|
|||||||
-p 8083:8083\
|
-p 8083:8083\
|
||||||
scottyhardy/docker-wine:latest\
|
scottyhardy/docker-wine:latest\
|
||||||
wine /workspace/cache/nwjs-sdk-v$nw_version-win-x64/nw.exe
|
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
|
until $(curl --output /dev/null --silent --head --fail http://127.0.0.1:8083/check); do
|
||||||
printf '.'
|
printf '.'
|
||||||
curl http://127.0.0.1:8083/check
|
curl http://127.0.0.1:8083/check
|
||||||
sleep 1
|
sleep 1
|
||||||
|
let i=$i+1
|
||||||
|
if [ $i -ge 5 ];then
|
||||||
|
echo "error"
|
||||||
|
docker ps -a
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
echo "success"
|
echo "success"
|
@ -6,13 +6,8 @@ import linux from '../../../runner/module-linux'
|
|||||||
import windows from '../../../runner/module-windows'
|
import windows from '../../../runner/module-windows'
|
||||||
import * as fs from 'fs'
|
import * as fs from 'fs'
|
||||||
|
|
||||||
|
windows.start()
|
||||||
describe("wcc - module", function () {
|
describe("wcc - module", function () {
|
||||||
this.beforeAll(function(done) {
|
|
||||||
this.timeout(120000)
|
|
||||||
windows.start()
|
|
||||||
console.log('start success!')
|
|
||||||
done()
|
|
||||||
})
|
|
||||||
this.afterAll(() => {
|
this.afterAll(() => {
|
||||||
windows.close()
|
windows.close()
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user