Skip to content
Snippets Groups Projects
Commit d81d53ce authored by Jason Hiser's avatar Jason Hiser
Browse files

added clean support for nightly testing

parent 2f744d74
No related branches found
No related tags found
No related merge requests found
Pipeline #178 passed
......@@ -5,6 +5,39 @@ before_script:
after_script:
- "echo Test Complete."
stages:
- clean
- build
- test
#
# Cleaning
#
#template
.do-clean: &do-clean
stage: clean
script:
- ./cicd_tests/do-clean.sh
# per os items
do-clean-ubuntu18:
<<: *do-clean
tags:
- ubuntu18
variables:
OS: 'ubuntu18'
# per os items
do-clean-ubuntu16:
<<: *do-clean
tags:
- ubuntu18
variables:
OS: 'ubuntu16'
#
# building
......@@ -16,9 +49,6 @@ after_script:
stage: build
script:
- ./cicd_tests/do-build.sh
artifacts:
paths:
- "./ps-install-*"
# per os items
......
......@@ -29,8 +29,6 @@ main()
dropdb $PGDATABASE 2>/dev/null || true ; ./postgres_setup.sh
cd $orig_dir
rm -rf ps-install-$OS
cp -R $CICD_MODULE_WORK_DIR/peasoup_umbrella/installed ps-install-$OS
}
main "$@"
#/bin/bash
set -e
set -x
main()
{
# gather info for debugging later, probably not necessary
pwd
hostname
whoami
env|grep CICD
if [[ $CICD_NIGHTLY == 1 ]] ; then
rm -rf $CICD_MODULE_WORK_DIR/peasoup_umbrella
fi
}
main "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment