mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
* Fixing rpm spec Provides and Obsoletes to be more specific Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com> * Fixing local build script to use dist/rpmbuild and topdir for build - This prevents polluting users main rpmbuild Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com> * Setting goflags during `make test` and turning off missing buildid - without goflags, unit tests take a while as they dont use vendor - providing -mod=vendor does not seem to help - missing gnu build ids in go binaries can cause warnings Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com> * Removing GOFLAGS from spec and adding build_flags to test target Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com> * Unsetting any goflags for make test in openshift ci Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com> * Removing the set +x from local build script Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com> * Adding rpm tests Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com> * Removing last rm -rf Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com> * Reverting to explicitly setting GOFLAGS for make test - It appears that while `-mod=vendor` flag is available for `go test` it is sometimes not respected - It is therefore, better to just set GOFLAGS only for make test - More investigation is needed to find better solution, but we should not break stuff relation to testing and release, where we should not be pulling from outside world Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com> * Cleaning up rpm-prepare Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com> * Removing unnessasary newline Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com> * Adding version file to spec for any future automation to have easier time Signed-off-by: Mohammed Zeeshan Ahmed <mohammed.zee1000@gmail.com>
12 lines
301 B
Bash
Executable File
12 lines
301 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
if [[ ! -d dist/rpmbuild ]]; then
|
|
echo "Cannot build as artifacts are not generated. Run scrips/rpm-prepare.sh first"
|
|
exit 1
|
|
fi
|
|
|
|
top_dir="`pwd`/dist/rpmbuild"
|
|
echo "Building locally"
|
|
rpmbuild --define "_topdir `echo $top_dir`" -ba dist/rpmbuild/SPECS/openshift-odo.spec
|