Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
45
gaia/tests/ci/unit-tests-in-b2g/before_script
Executable file
45
gaia/tests/ci/unit-tests-in-b2g/before_script
Executable file
|
|
@ -0,0 +1,45 @@
|
|||
#! /bin/bash -v
|
||||
|
||||
# not using -e here because we use code failure for other things here.
|
||||
RETRY=30
|
||||
myself=`basename $0`
|
||||
|
||||
log() {
|
||||
echo "LOG $myself: $@"
|
||||
}
|
||||
|
||||
waiting_port() {
|
||||
log "Waiting for embedded httpd server on port $1..."
|
||||
for i in $(seq 1 $RETRY); do
|
||||
nc -z localhost $1
|
||||
if [ $? -eq 0 ]; then
|
||||
log "Success!"
|
||||
return
|
||||
fi
|
||||
log "Waited $i seconds."
|
||||
sleep 1
|
||||
done
|
||||
log "Failed :("
|
||||
exit 1
|
||||
}
|
||||
|
||||
make node_modules
|
||||
|
||||
echo "Starting test-agent-server"
|
||||
make test-agent-server &
|
||||
|
||||
echo 'Starting Mulet'
|
||||
|
||||
MULET_PATH="./firefox/firefox-bin"
|
||||
if [ ! -x "$MULET_PATH" ] ; then
|
||||
# set the path for Mac OS X
|
||||
MULET_PATH="./firefox/Contents/MacOS/firefox-bin"
|
||||
fi
|
||||
|
||||
# if we still don't have it, fail
|
||||
if [ ! -x "$MULET_PATH" ] ; then
|
||||
echo "mulet path doesn't exists"
|
||||
exit 1
|
||||
fi
|
||||
$MULET_PATH -profile `pwd`/profile-debug app://test-agent.gaiamobile.org/ &
|
||||
waiting_port 8080
|
||||
9
gaia/tests/ci/unit-tests-in-b2g/install
Executable file
9
gaia/tests/ci/unit-tests-in-b2g/install
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
#! /bin/bash -ve
|
||||
echo 'Downloading Mulet'
|
||||
make mulet
|
||||
|
||||
echo 'Downloading & installing node dependencies'
|
||||
make common-install
|
||||
|
||||
echo 'Downloading xulrunner-sdk and making profile for testing (more than 5 minutes)'
|
||||
NO_LOCK_SCREEN=1 DEBUG=1 DESKTOP=0 WGET_OPTS=-nv make
|
||||
7
gaia/tests/ci/unit-tests-in-b2g/script
Executable file
7
gaia/tests/ci/unit-tests-in-b2g/script
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#! /bin/bash -vex
|
||||
|
||||
./node_modules/test-agent/bin/js-test-agent test \
|
||||
--this-chunk=${THIS_CHUNK:=1} \
|
||||
--total-chunks=${TOTAL_CHUNKS:=1} \
|
||||
--server ws://localhost:8789 \
|
||||
--reporter ${REPORTER:=spec}
|
||||
Loading…
Reference in a new issue