Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(954)

Side by Side Diff: masters/master.chromiumos/Makefile

Issue 3777004: Fix imports and bring over a missing file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build/
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | masters/master.chromiumos/master.cfg » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # -*- makefile -*- 1 # -*- makefile -*-
2 2
3 # This is a simple makefile which lives in a buildmaster/buildslave 3 # This is a simple makefile which lives in a buildmaster/buildslave
4 # directory (next to the buildbot.tac file). It allows you to start/stop the 4 # directory (next to the buildbot.tac file). It allows you to start/stop the
5 # master or slave by doing 'make start' or 'make stop'. 5 # master or slave by doing 'make start' or 'make stop'.
6 6
7 # The 'reconfig' target will tell a buildmaster to reload its config file. 7 # The 'reconfig' target will tell a buildmaster to reload its config file.
8 8
9 # Note that a relative PYTHONPATH entry is relative to the current directory. 9 # Note that a relative PYTHONPATH entry is relative to the current directory.
10 10
11 # On the Mac, the buildbot is started via the launchd mechanism as a 11 # On the Mac, the buildbot is started via the launchd mechanism as a
12 # LaunchAgent to give the slave a proper Mac UI environment for tests. In 12 # LaunchAgent to give the slave a proper Mac UI environment for tests. In
13 # order for this to work, the plist must be present and loaded by launchd, and 13 # order for this to work, the plist must be present and loaded by launchd, and
14 # the user must be logged in to the UI. The plist is loaded by launchd at user 14 # the user must be logged in to the UI. The plist is loaded by launchd at user
15 # login (and the job may have been initially started at that time too). Our 15 # login (and the job may have been initially started at that time too). Our
16 # Mac build slaves are all set up this way, and have auto-login enabled, so 16 # Mac build slaves are all set up this way, and have auto-login enabled, so
17 # "make start" should just work and do the right thing. 17 # "make start" should just work and do the right thing.
18 # 18 #
19 # When using launchd to start the job, it also needs to be used to stop the 19 # When using launchd to start the job, it also needs to be used to stop the
20 # job. Otherwise, launchd might try to restart the job when stopped manually 20 # job. Otherwise, launchd might try to restart the job when stopped manually
21 # by SIGTERM. Using SIGHUP for reconfig is safe with launchd. 21 # by SIGTERM. Using SIGHUP for reconfig is safe with launchd.
22 # 22 #
23 # Because it's possible to have more than one slave on a machine (for testing), 23 # Because it's possible to have more than one slave on a machine (for testing),
24 # this tests to make sure that the slave is in the known slave location, 24 # this tests to make sure that the slave is in the known slave location,
25 # /b/slave, which is what the LaunchAgent operates on. 25 # /b/slave, which is what the LaunchAgent operates on.
26 USE_LAUNCHD := \ 26 USE_LAUNCHD := \
27 $(shell [ -f ~/Library/LaunchAgents/org.chromium.buildbot.master.chromeos.plis t ] && \ 27 $(shell [ -f ~/Library/LaunchAgents/org.chromium.buildbot.master.chromiumos.pl ist ] && \
28 [ "$$(pwd -P)" = "/b/master.chromeos" ] && \ 28 [ "$$(pwd -P)" = "/b/build/masters/master.chromiumos" ] && \
29 echo 1) 29 echo 1)
30 30
31 start: 31 start:
32 ifneq ($(USE_LAUNCHD),1) 32 ifneq ($(USE_LAUNCHD),1)
33 » PYTHONPATH=../scripts:../scripts/master:../scripts/common:../scripts/pri vate:../pylibs python ../scripts/common/twistd --no_save -y buildbot.tac 33 » PYTHONPATH=../../third_party/buildbot_7_12:../../third_party/twisted_8_1 :../../scripts:../../third_party:../../site_config:../../../build_internal/site_ config:. python ../../scripts/common/twistd --no_save -y buildbot.tac
34 else 34 else
35 » launchctl start org.chromium.buildbot.master.chromeos 35 » launchctl start org.chromium.buildbot.master.chromiumos
36 endif 36 endif
37 37
38 stop: 38 stop:
39 ifneq ($(USE_LAUNCHD),1) 39 ifneq ($(USE_LAUNCHD),1)
40 if `test -f twistd.pid`; then kill `cat twistd.pid`; fi; 40 if `test -f twistd.pid`; then kill `cat twistd.pid`; fi;
41 else 41 else
42 » launchctl stop org.chromium.buildbot.master.chromeos 42 » launchctl stop org.chromium.buildbot.master.chromiumos
43 endif 43 endif
44 44
45 reconfig: 45 reconfig:
46 kill -HUP `cat twistd.pid` 46 kill -HUP `cat twistd.pid`
47 47
48 log: 48 log:
49 tail -F twistd.log 49 tail -F twistd.log
50 50
51 wait: 51 wait:
52 while `test -f twistd.pid`; do sleep 1; done; 52 while `test -f twistd.pid`; do sleep 1; done;
53 53
54 restart: stop wait start log 54 restart: stop wait start log
OLDNEW
« no previous file with comments | « no previous file | masters/master.chromiumos/master.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698