DevFaqCheckListBeforePush

(Difference between revisions)
(How to make sure my integration will not cause harm of other developers?)
 
Line 31: Line 31:
</source>
</source>
-
* a '''checklist''' if you are changing plugins in [http://hg.netbeans.org/main/contrib/ contrib] repository use <tt>-Dcluster.config=experimental</tt>
+
* a '''checklist''' if you are changing plugins in [http://hg.netbeans.org/main/contrib/ contrib] or [http://hg.netbeans.org/otherlicences/ otherlicences] repositories use <tt>-Dcluster.config=experimental</tt>
<source lang="bash">
<source lang="bash">
$ cd <root-of-nb-sources-repository>
$ cd <root-of-nb-sources-repository>
# make your sources up-to-date
# make your sources up-to-date
$ hg pull -u
$ hg pull -u
 +
# the contrib repository has to placed in contrib directory in the top of nb-sources-repository
# the contrib repository has to placed in contrib directory in the top of nb-sources-repository
$ cd <root-of-nb-sources-repository>/contrib
$ cd <root-of-nb-sources-repository>/contrib
Line 41: Line 42:
$ hg pull -u
$ hg pull -u
$ cd ..
$ cd ..
 +
 +
# the otherlicences repository has to placed in otherlicences directory in the top of nb-sources-repository
 +
$ cd <root-of-nb-sources-repository>/otherlicences
 +
# make otherlicences sources up-to-date
 +
$ hg pull -u
 +
$ cd ..
 +
# all sources can be compile
# all sources can be compile
$ ant -Dcluster.config=experimental clean build-nozip
$ ant -Dcluster.config=experimental clean build-nozip

Current revision as of 10:47, 19 December 2013

How to make sure my integration will not cause harm of other developers?

  • All sources can be compile
$ cd <root-of-nb-sources-repository>
# make your sources up-to-date
$ hg pull -u
$ ant clean build-nozip
# expected time: 28 minutes 16 seconds
# measured on Intel(R) Core(TM) i5 CPU @ 2.67GHz, -Xmx1024m -XX:MaxPermSize=512m -Xms512m
  • all essential tests are passing
$ ant commit-validation
# expected time: 9 minutes 54 seconds
$ ant check-sigtests-version -Dsigtest.fail.on.error=true
# expected time: 10 minutes 44 seconds
  • avoid broken links in Javadoc
$ ant -Djavadoc.fail.on.error=true build-javadoc
# expected time: 9 minutes 6 seconds
# the file checklinks-errors.xml should contain no broken links
$ cat nbbuild/build/javadoc/checklinks-errors.xml
  • a checklist if you are changing plugins in contrib or otherlicences repositories use -Dcluster.config=experimental
$ cd <root-of-nb-sources-repository>
# make your sources up-to-date
$ hg pull -u
 
# the contrib repository has to placed in contrib directory in the top of nb-sources-repository
$ cd <root-of-nb-sources-repository>/contrib
# make contrib sources up-to-date
$ hg pull -u
$ cd ..
 
# the otherlicences repository has to placed in otherlicences directory in the top of nb-sources-repository
$ cd <root-of-nb-sources-repository>/otherlicences
# make otherlicences sources up-to-date
$ hg pull -u
$ cd ..
 
# all sources can be compile
$ ant -Dcluster.config=experimental clean build-nozip
# expected time: 28 minutes 58 seconds
# basic tests
$ ant -Dcluster.config=experimental commit-validation
# signature constistency
$ ant -Dcluster.config=experimental check-sigtests-version -Dsigtest.fail.on.error=true
# check broken links
$ ant -Dcluster.config=experimental -Djavadoc.fail.on.error=true build-javadoc
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo