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
33
gaia/tests/ci/unit-tests-in-firefox/before_script
Executable file
33
gaia/tests/ci/unit-tests-in-firefox/before_script
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
#! /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
|
||||
}
|
||||
|
||||
echo "Starting test-agent-server"
|
||||
make test-agent-server &
|
||||
|
||||
echo 'Starting Firefox'
|
||||
|
||||
FIREFOX=`find firefox -name "firefox" | tail -n 1`
|
||||
$FIREFOX -profile `pwd`/profile-debug "app://test-agent.gaiamobile.org" &
|
||||
waiting_port 8080
|
||||
14
gaia/tests/ci/unit-tests-in-firefox/install
Executable file
14
gaia/tests/ci/unit-tests-in-firefox/install
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#! /bin/bash -ve
|
||||
make node_modules
|
||||
|
||||
echo 'Downloading Firefox'
|
||||
DEBUG=* ./node_modules/.bin/mozilla-download --product firefox \
|
||||
--channel tinderbox \
|
||||
--branch mozilla-central \
|
||||
$PWD/firefox
|
||||
|
||||
echo 'Downloading & installing node dependencies'
|
||||
make common-install
|
||||
|
||||
echo 'Downloading xulrunner-sdk and making profile for testing (more than 5 minutes)'
|
||||
DEBUG=1 DESKTOP=0 WGET_OPTS=-nv make
|
||||
3
gaia/tests/ci/unit-tests-in-firefox/script
Executable file
3
gaia/tests/ci/unit-tests-in-firefox/script
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#! /bin/bash -v
|
||||
|
||||
make test-agent-test REPORTER=Dot
|
||||
Loading…
Reference in a new issue