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:
OverSu 2026-09-30 23:13:03 +02:00
commit b38dea0597
25901 changed files with 9982925 additions and 369 deletions

View file

@ -0,0 +1,10 @@
#! /bin/bash -ve
echo "Downloading Mulet"
make mulet
# Install virtualenv and radicale on Travis.
make caldav-server-install
echo "Building test profile"
PROFILE_FOLDER=profile-test make

View file

@ -0,0 +1,75 @@
'use strict';
/* global require, process */
var fs = require('fs'),
request = require('request');
var PULL_REQUEST_URL_PATTERN =
'https://api.github.com/repos/mozilla-b2g/gaia/pulls/[id]/files',
MARIONETTE_TEST_FILE_NAME_PATTERN =
/apps\/[a-z]+\/test\/marionette\/[\w\/]+_test.js/;
/**
* Get file name list of marionette test in the current pull request on Travis.
*/
var PullRequestMarionetteTest = (function() {
/**
* Get files in a pull request.
*
* @param {String|Number} id The pull request id.
* @param {Function} callback Function with the pull request files array.
*/
function getPullRequestFiles(id, callback) {
// Configure the request
var options = {
url: PULL_REQUEST_URL_PATTERN.replace('[id]', id),
method: 'GET',
headers: { 'User-Agent': 'FirefoxOS-Gaia-Travis' }
};
request(options, function(error, response, body) {
if (!error && response.statusCode == 200) {
var json = JSON.parse(body),
fileNames = [];
json.forEach(function(file) {
fileNames.push(file.filename);
});
if (callback && typeof(callback) === 'function') {
callback(fileNames);
}
} else {
throw new Error('Cannot access GitHub API.');
}
});
}
// Main function.
function execute() {
// Pull request ID for the current Travis job.
var pullRequestId = process.env.TRAVIS_PULL_REQUEST;
getPullRequestFiles(pullRequestId, function(fileNames) {
var testFileNames = [],
returnString = '';
testFileNames = fileNames.filter(function(filename) {
// Get the marionette test file list in the patch.
if (filename.match(MARIONETTE_TEST_FILE_NAME_PATTERN) &&
fs.existsSync(filename)) {
return true;
}
});
if (testFileNames.length > 0) {
returnString = testFileNames.toString().split(',').join(' ');
}
console.log(returnString);
});
}
return {
execute: execute
};
})();
PullRequestMarionetteTest.execute();

View file

@ -0,0 +1,33 @@
#! /bin/bash -v
###############################################################################
# For having stable marionette tests, #
# we run specfic marionette tests for 30 times on Travis. #
###############################################################################
MARIONETTE_TEST_FILE_NAMES=$(node tests/ci/marionette_js_stable_check/pull-request-marionette-test)
if [ ${#MARIONETTE_TEST_FILE_NAMES} -gt 0 ]; then
TEST_RESULT=0
MAKE_BUILD="PROFILE_FOLDER=profile-test make"
RUN_SPECIFIC_TESTS="make test-integration-test TEST_FILES=\"$MARIONETTE_TEST_FILE_NAMES\" REPORTER=spec"
# We only build once
eval ${MAKE_BUILD}
# Then we would run tests for six times
for i in {1..6}
do
eval ${RUN_SPECIFIC_TESTS}
if [ $? -ne 0 ]; then
TEST_RESULT=1
fi
done
if [ $TEST_RESULT -eq 1 ]; then
echo "The marionette tests are not passed for 6 times continually."
exit 1
fi
else
echo "The pull request has no marionette test to run."
fi