Mercurial > hg > truffle
comparison mx/commands.py @ 4160:338d46581e03
Added clean step to gate.
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 23 Dec 2011 09:28:09 +0100 |
parents | e253ca26b2d5 |
children | 784f7e262d60 |
comparison
equal
deleted
inserted
replaced
4159:e253ca26b2d5 | 4160:338d46581e03 |
---|---|
471 If this commands exits with a 0 exit code, then the source code is in | 471 If this commands exits with a 0 exit code, then the source code is in |
472 a state that would be accepted for integration into the main repository.""" | 472 a state that would be accepted for integration into the main repository.""" |
473 | 473 |
474 start = time.time() | 474 start = time.time() |
475 | 475 |
476 # 1. Checkstyle | 476 # 1. Clean |
477 clean([]) | |
478 | |
479 # 2. Checkstyle | |
477 mx.log(time.strftime('%d %b %Y %H:%M:%S - Running Checkstyle...')) | 480 mx.log(time.strftime('%d %b %Y %H:%M:%S - Running Checkstyle...')) |
478 if mx.checkstyle([]) != 0: | 481 if mx.checkstyle([]) != 0: |
479 mx.abort('Checkstyle warnings were found') | 482 mx.abort('Checkstyle warnings were found') |
480 | 483 |
481 # 2. Canonical mx/projects | 484 # 3. Canonical mx/projects |
482 mx.log(time.strftime('%d %b %Y %H:%M:%S - Ensuring mx/projects files are canonicalized...')) | 485 mx.log(time.strftime('%d %b %Y %H:%M:%S - Ensuring mx/projects files are canonicalized...')) |
483 if mx.canonicalizeprojects([]) != 0: | 486 if mx.canonicalizeprojects([]) != 0: |
484 mx.abort('Rerun "mx canonicalizeprojects" and check-in the modified mx/projects files.') | 487 mx.abort('Rerun "mx canonicalizeprojects" and check-in the modified mx/projects files.') |
485 | 488 |
486 # 3. Build | 489 # 4. Build |
487 mx.log(time.strftime('%d %b %Y %H:%M:%S - Build...')) | 490 mx.log(time.strftime('%d %b %Y %H:%M:%S - Build...')) |
488 build([]) | 491 build([]) |
489 | 492 |
490 # 4. Bootstrap with system assertions enabled | 493 # 5. Bootstrap with system assertions enabled |
491 mx.log(time.strftime('%d %b %Y %H:%M:%S - Bootstrap with -esa...')) | 494 mx.log(time.strftime('%d %b %Y %H:%M:%S - Bootstrap with -esa...')) |
492 vm(['-esa', '-version']) | 495 vm(['-esa', '-version']) |
493 | 496 |
494 # 5. Run unittests | 497 # 6. Run unittests |
495 mx.log(time.strftime('%d %b %Y %H:%M:%S - Running unit tests...')) | 498 mx.log(time.strftime('%d %b %Y %H:%M:%S - Running unit tests...')) |
496 unittest([]) | 499 unittest([]) |
497 | 500 |
498 # 6. Run selected DaCapo benchmarks | 501 # 7. Run selected DaCapo benchmarks |
499 mx.log(time.strftime('%d %b %Y %H:%M:%S - Running DaCapo benchmarks...')) | 502 mx.log(time.strftime('%d %b %Y %H:%M:%S - Running DaCapo benchmarks...')) |
500 dacapo(['eclipse']) | 503 dacapo(['eclipse']) |
501 #dacapo(['tradesoap']) | 504 #dacapo(['tradesoap']) |
502 dacapo(['batik']) | 505 dacapo(['batik']) |
503 dacapo(['avrora']) | 506 dacapo(['avrora']) |