summaryrefslogtreecommitdiffstats
path: root/ci/build.sh
AgeCommit message (Collapse)AuthorFilesLines
2017-08-23Migrates Apex to PythonTim Rozet1-1/+1
Removes all bash libraries and converts almost all of the code to a mixture of Python and Ansible. utils.sh and clean.sh still exist. clean.sh will be migrated fully to clean.py in another patch. The Apex Python package is now built into the opnfv-apex-common RPM. To install locally do 'pip3 install .'. To deploy: opnfv-deploy -d <file> -n <file> --image-dir /root/apex/.build -v --debug Non-python files (THT yaml, settings files, ansible playbooks) are all installed into /usr/share/opnfv-apex/. The RPM will copy settings files into /etc/opnfv-apex/. JIRA: APEX-317 Change-Id: I3232f0329bcd13bce5a28da6a8c9c84d0b048024 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-05-17Refactors build script for ApexTim Rozet1-198/+6
Changes Include: - Build has been refactored into python - Caching now packs into multiple unique tar files which are logged into a journal file - Multiple files and journal allow for multiple apex builds to run simultaenously while minimizing risk of collision between cache reading and writing - Build dependency packages updated and will install when missing via ansible - If more than 2 caches exist then prune the oldest cache Change-Id: Iae703253eb6034aee42bf33153bb6e434d3cec48 Signed-off-by: Tim Rozet <trozet@redhat.com>
2017-05-09Updating Apex to OpenStack OcataDan Radez1-2/+5
- power management updated to virtualbmc, pxe_ssh is deprecated - removing custom tacker build - removing custom congress build - disabling yum update in undercloud on the cli instead of in a patch - Undercloud is direct kernel booted now, there are no kernel and initrd in the disk image from upstream - remove OpenDaylight previous to Carbon JIRA: APEX-433 JIRA: APEX-432 JIRA: APEX-431 Change-Id: I6963f16e65eacade5607a3082b58b6150331406c Signed-off-by: Dan Radez <dradez@redhat.com>
2016-12-08Fixes and cleans up build/cache directory usageTim Rozet1-30/+29
Changes include: - Building is isolated to a .build directory that is git ignored - Caching is isolated to a .cache directory that is git ignored - Build scripts have been variablized, and relative paths have been removed - Unused files removed - build.sh, make file cleaned up - Fixed broken building of markupsafe and jinja2 packages - make clean-cache will remove the cache now - per item cleans are removed in place of simple clean .build now - includes fix for OSC issue with LP# 1642301 Change-Id: I42b8e4eb694bf0a2c398858814f8b73785931896 Signed-off-by: Tim Rozet <trozet@redhat.com>
2016-12-06Merge "Updates to Caching"Tim Rozet1-6/+35
2016-12-01Adding a release RPMDan Radez1-0/+12
JIRA: APEX-351 Change-Id: I9b8b74073287005221a7a3f6dfe2d52a7d1cf667 Signed-off-by: Dan Radez <dradez@redhat.com>
2016-12-01Updates to CachingDan Radez1-6/+35
- updates cache to use the cache dir as a linked representation of the build dir - fixing cache build/extract JIRA: APEX-325 Change-Id: I80bf67e5d55ca2e069ca72e6b47303368bda0433 Signed-off-by: Dan Radez <dradez@redhat.com>
2016-10-12Consolidate ODL SFC RPM into ODL RPMDan Radez1-3/+0
OVS NSH can be installed at deploy time. Change-Id: Ie875ada99053df95c6534e269f4dd627396489bc JIRA: APEX-324 Signed-off-by: Dan Radez <dradez@redhat.com>
2016-08-17Moving rpm spec files to a sub directoryDan Radez1-5/+5
Change-Id: I10eebc955cae5006155e045accf2924c393ab522 Signed-off-by: Dan Radez <dradez@redhat.com>
2016-07-06forcing rpm-check if files added to the commitDan Radez1-2/+2
Change-Id: I88514fe95121ecc7e6e4cbb41f529404c815bf06 Signed-off-by: Dan Radez <dradez@redhat.com>
2016-06-27adding a force-build-rpms check in the commit messageDan Radez1-1/+3
force-build-rpms Change-Id: I70d101b78608414ad5ffb745e6d8a64f59850f61 Signed-off-by: Dan Radez <dradez@redhat.com>
2016-06-10converting apex ip_utils unit tests to noseDan Radez1-20/+0
Change-Id: I54205d217807fd5499a71571ef8bed7c684fe944 Signed-off-by: Dan Radez <dradez@redhat.com>
2016-06-08Removes blocking build due to coverage failuresTim Rozet1-2/+1
Change-Id: Ife0f4b0d3c59512ce378f7e2b7bf1f5d98e9cada Signed-off-by: Tim Rozet <trozet@redhat.com>
2016-06-07Enabling python coverage tests in build.shDan Radez1-0/+21
Change-Id: Iececedb03a60dd0bfc1ad6ef1275f6a0427350eb Signed-off-by: Dan Radez <dradez@redhat.com>
2016-06-05Fix rpm build errorFeng Pan1-3/+3
- Fix common rpm spec syntax error - Fix build.sh check for spec file changes. Change-Id: I84b54c87356a092af480957ad4b2e93ec577539b Signed-off-by: Feng Pan <fpan@redhat.com>
2016-06-04Fixes build cachingTim Rozet1-11/+11
JIRA: APEX-167 Change-Id: Ibb9d69eb4326911a5c62fc9f10b02ccf191a3046 Signed-off-by: Tim Rozet <trozet@redhat.com>
2016-05-25Fixes nic template missing in spec and error catchingTim Rozet1-0/+11
Issue where jinja 2 templates were missing from spec file. Also adds error checking to make sure the nic templates were correctly generated. There was an error with dependencies missing on the build server - this patch includes a fix to make sure it is installed before trying to make. Change-Id: I7989ccf297a4e0d81326cccc06b2132018e7d8ae Signed-off-by: Tim Rozet <trozet@redhat.com>
2016-05-19Allows for specifying CPUs and RAM for VMs in virtual deploymentsTim Rozet1-1/+1
Changes Include: - All VMs (undercloud and overcloud) now default to 4 vCPUs - Allow specifying number of vCPUs per overcloud VM with --virtual-cpus <number> - Allow specifying amount of RAM per overcloud VM with --virtual-ram <size in GB> - Undercloud now uses 10GiB of RAM to avoid OOM JIRA: APEX-111 Change-Id: I541c669b869a90134bc8af25786fe3b1a557376b Signed-off-by: Tim Rozet <trozet@redhat.com>
2016-04-21Adds python IP utility libraryFeng Pan1-0/+9
Changes include: - IP utility library in python 3 that supports both IPv4 and IPv6 address generation. This library currently includes a single function of generating IP ranges or single IP for a given CIDR. More functionality will be added at a later time to support features such as IP address calculation. - Updated common-function.sh to use python library to generate IP ranges. All existing bash functions are preserved, so any callers will get identical IP ranges as before. - Add dependency to python3 for opnfv-apex-common package. - Add python dependency to build.sh No change is made to interface related functions. Change-Id: Idc6998754f9f3c7a3868ec5b5768f3bb5f78cd90 Signed-off-by: Feng Pan <fpan@redhat.com>
2016-04-05Makefile & build.sh updates for RPM BuildingDan Radez1-5/+38
- fix the undercloud dependancy chain so the tarball gets rolled now - adding rpm-check jobs for each of the rpms, this runs the build but doesn't spit out the rpm file - added conditionals for rpm-check commands, only take the time to run them if the Makefile or specs have changed Change-Id: I9731b278d06d92deb3f69066ba4468e64647582d Signed-off-by: Dan Radez <dradez@redhat.com>
2016-03-23updating vm creation for virt deploymentDan Radez1-378/+80
- replacing brbm with logical names br-netname - replacing instack-virt-setup with tripleo scripts JIRA: APEX-90, APEX-80 Change-Id: I58a15dee8de882e034c8af8a3368ca0647741b13 Signed-off-by: Dan Radez <dradez@redhat.com>
2015-11-13changing copying to linking to save time and space on the buildDan Radez1-6/+6
Change-Id: I6a0a63f04c0693b9dd2f4a137475ef00c2377455
2015-11-04adding --atime-preseve to try and fix cachingDan Radez1-2/+2
Change-Id: I6446058a5ab1dd37659e553ad41d9fd9b0f9bd25
2015-10-16cleaning up some thingsDan Radez1-4/+4
- clearing out the glance image builds, we download those from RDO - cleaning out the underlay attachment, that should happen in the deployment - no need to start the instack VM back up since the glance images are being downloaded Change-Id: I82098c9e908d58a704ce8b183d902032dd056be5 Signed-off-by: Dan Radez <dradez@redhat.com>
2015-10-16updates to the instack VMDan Radez1-2/+5
- increasing memory and vcpus for the VM - dumping yum cache - virt-sparsifying the instack disk image - remove cleaning stack dir so we actually cache its contents Change-Id: Ie35a2daeba69a1b53a749ef3423ac6356408ff97 Signed-off-by: Dan Radez <dradez@redhat.com>
2015-10-01adding master support for buildingDan Radez1-5/+15
updating build.sh to use RDO manager ensuring jenkins will build properly Change-Id: Id7660c49650a85958e5ff0153d9b5cc6255cb6ad Signed-off-by: Dan Radez <dradez@redhat.com>
2015-08-14Adding initial build scripts based on RDO managerDan Radez1-0/+398
Change-Id: Ib5f8ed4dfcaa42bcefcf2a7914c201a887beeacd Signed-off-by: Dan Radez <dradez@redhat.com>