Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/commands/build
blob: 9d8b51bca363bd73f1612e31b7738a082fb13533 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/python -u

import argparse
import sys

import common

from devbot import build
from devbot import system

parser = argparse.ArgumentParser()
parser.add_argument("module", nargs="?", help="name of the module to build")
parser.add_argument("--full", action="store_true", help="force a full build")
args = parser.parse_args()

common.setup(log_name="build")

if args.module:
    if not build.build_one(args.module):
        sys.exit(1)
else:
    if not system.check(lazy=True):
        sys.exit(1)

    if not build.pull(lazy=True):
        sys.exit(1)

    if not build.build(full=args.full):
        sys.exit(1)