Skip to content
Snippets Groups Projects
Commit 22a1c556 authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

added p1 testing

parent cc0847b0
No related branches found
No related tags found
No related merge requests found
Pipeline #3920 failed
before_script:
- "source ~gitlab-runner/cicd_support/cicd_support.shinc"
after_script:
- "echo Test Complete."
stages:
- clean
- build
- test
#
# Cleaning
#
#template
.do-clean: &do-nightly-clean
stage: clean
script:
- ./cicd_tests/do-clean.sh
# per os items
do-nightly-clean-ubuntu18:
<<: *do-nightly-clean
tags:
- ubuntu18
variables:
OS: 'ubuntu18'
do-nightly-clean-ubuntu16:
<<: *do-nightly-clean
tags:
- ubuntu16
variables:
OS: 'ubuntu16'
do-nightly-clean-centos76:
<<: *do-nightly-clean
tags:
- centos76
variables:
OS: 'centos76'
#
# building
#
# template
.do-build: &do-build
stage: build
script:
- ./cicd_tests/do-build.sh
# per os items
do-build-ubuntu18:
<<: *do-build
tags:
- ubuntu18
variables:
OS: 'ubuntu18'
do-build-ubuntu16:
<<: *do-build
tags:
- ubuntu16
variables:
OS: 'ubuntu16'
do-build-centos76:
<<: *do-build
tags:
- centos76
variables:
OS: 'centos76'
#
# simple test.
#
# template
.simple: &simple
stage: test
script:
- ./cicd_tests/test-p1.sh
simple-ubuntu16:
<<: *simple
tags:
- ubuntu16
variables:
OS: 'ubuntu16'
simple-ubuntu18:
<<: *simple
tags:
- ubuntu18
variables:
OS: 'ubuntu18'
#/bin/bash
set -e
set -x
main()
{
# gather info for debugging later, probably not necessary
pwd
hostname
whoami
env|grep "^CICD"
git submodule sync
git submodule update --init --recursive
local orig_dir=$(pwd)
# puts cfi_umbrella (and all submodules) in CICD_MODULE_WORK_DIR
cicd_setup_module_dependency allnp/peasoup_umbrella.git p1_umbrella
# Build $PSZ, cleanup db.
cd $CICD_MODULE_WORK_DIR/p1_umbrella
source set_env_vars
sudo ./get-peasoup-packages.sh all
./build-all.sh
dropdb $PGDATABASE 2>/dev/null || true ; ./postgres_setup.sh
# build p1 dir
cd $orig_dir
time rsync -a --exclude='.git' $CICD_TO_TEST_DIR/ /tmp/p1_test
cd /tmp/p1_test
source set_env_var
scons -j 3
}
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/p1_umbrella
rm -rf /tmp/p1_test
fi
}
main "$@"
#!/bin/bash
set -e
set -x
cd $CICD_MODULE_WORK_DIR/p1_umbrella
source set_env_vars
cd /tmp/p1_test
source set_env_var
main()
{
cd $CICD_MODULE_WORK_DIR/p1_umbrella
cd examples
./test_cmds.sh -c "rida_p1" -l -a "bzip2 tcpdump"
exit 0
}
main $*
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment