Source code

Revision control

Other Tools

1
#!/bin/bash
2
3
export SHELL=/bin/bash
4
export TASKCLUSTER_ROOT_URL="https://taskcluster.net"
5
# Display required for `browser_parsable_css` tests
6
export DISPLAY=:99.0
7
# Required to support the unicode in the output
8
export LC_ALL=C.UTF-8
9
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16 -extension RANDR
10
11
# Pull latest m-c and update tip
12
cd /mozilla-central && hg pull && hg update -C
13
14
# Build Activity Stream and copy the output to m-c
15
cd /activity-stream && npm install . && npm run buildmc
16
17
# Build latest m-c with Activity Stream changes
18
cd /mozilla-central && rm -rf ./objdir-frontend && ./mach build \
19
&& ./mach lint browser/components/newtab \
20
&& ./mach lint -l codespell browser/locales/en-US/browser/newtab \
21
&& ./mach test browser/components/newtab/test/browser --headless \
22
&& ./mach test browser/components/newtab/test/xpcshell \
23
&& ./mach test --log-tbpl test_run_log \
24
browser/base/content/test/about/browser_aboutHome_search_telemetry.js \
25
browser/base/content/test/static/browser_parsable_css.js \
26
browser/base/content/test/tabs/browser_new_tab_in_privileged_process_pref.js \
27
browser/components/enterprisepolicies/tests/browser/browser_policy_set_homepage.js \
28
browser/components/extensions/test/browser/browser_ext_topSites.js \
29
browser/components/preferences/in-content/tests/browser_hometab_restore_defaults.js \
30
browser/components/preferences/in-content/tests/browser_newtab_menu.js \
31
browser/components/preferences/in-content/tests/browser_search_subdialogs_within_preferences_1.js \
32
browser/components/search/test/browser/browser_google_behavior.js \
33
browser/modules/test/browser/browser_UsageTelemetry_content.js \
34
&& ! grep -q TEST-UNEXPECTED test_run_log \
35
&& RUN_FIND_DUPES=1 ./mach package \
36
&& ./mach test --appname=dist all_files_referenced --headless