ramverma | af74a62 | 2018-07-31 18:25:39 +0100 | [diff] [blame] | 1 | // |
| 2 | // ============LICENSE_START======================================================= |
| 3 | // Copyright (C) 2016-2018 Ericsson. All rights reserved. |
| 4 | // ================================================================================ |
| 5 | // This file is licensed under the CREATIVE COMMONS ATTRIBUTION 4.0 INTERNATIONAL LICENSE |
| 6 | // Full license text at https://creativecommons.org/licenses/by/4.0/legalcode |
| 7 | // |
| 8 | // SPDX-License-Identifier: CC-BY-4.0 |
| 9 | // ============LICENSE_END========================================================= |
| 10 | // |
| 11 | // @author Sven van der Meer (sven.van.der.meer@ericsson.com) |
| 12 | // |
| 13 | |
| 14 | == Build with standard Tests |
| 15 | |
| 16 | Use Maven to for a standard build with standard tests. |
| 17 | |
| 18 | [IMPORTANT] |
| 19 | .Some tests have specific timing Requirements |
| 20 | ==== |
| 21 | Some of the tests have very specific timing requirements. |
| 22 | If run on a low-powered build machine, or if the build machine is on high load, those tests might fail and the whole build might fail as well. |
| 23 | If this happens, reduce the load on your build machine and restart the build. |
| 24 | ==== |
| 25 | |
| 26 | [width="100%",options="header",cols="5a,5a"] |
| 27 | |==================== |
| 28 | | Unix, Cygwin | Windows |
| 29 | | |
| 30 | [source%nowrap,sh,numbered] |
| 31 | ---- |
| 32 | # cd /usr/local/src/apex |
| 33 | # mvn clean install |
| 34 | ---- |
| 35 | | |
| 36 | [source%nowrap,bat,numbered] |
| 37 | ---- |
| 38 | >c: |
| 39 | >cd \dev\apex |
| 40 | >mvn clean install |
| 41 | ---- |
| 42 | |==================== |
| 43 | |
liamfallon | a41c877 | 2018-09-05 15:46:31 +0100 | [diff] [blame] | 44 | The build takes about 10 minutes with tests on a standard development laptop. |
ramverma | af74a62 | 2018-07-31 18:25:39 +0100 | [diff] [blame] | 45 | It should run through without errors, but with a lot of messages from the build process. |
| 46 | If build with tests (i.e. without `-DskipTests`), there will be error messages and stack trace prints from some tests. |
| 47 | This is normal, as long as the build finishes successful. |