Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
p1transform
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
p1transform
Commits
22a1c556
Commit
22a1c556
authored
5 years ago
by
Jason Hiser
Browse files
Options
Downloads
Patches
Plain Diff
added p1 testing
parent
cc0847b0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#3920
failed
5 years ago
Stage: clean
Stage: build
Stage: test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab-ci.yml
+108
-0
108 additions, 0 deletions
.gitlab-ci.yml
cicd_tests/do-build.sh
+38
-0
38 additions, 0 deletions
cicd_tests/do-build.sh
cicd_tests/do-clean.sh
+23
-0
23 additions, 0 deletions
cicd_tests/do-clean.sh
cicd_tests/test-p1.sh
+20
-0
20 additions, 0 deletions
cicd_tests/test-p1.sh
with
189 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
108
−
0
View file @
22a1c556
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'
This diff is collapsed.
Click to expand it.
cicd_tests/do-build.sh
0 → 100755
+
38
−
0
View file @
22a1c556
#/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
"
$@
"
This diff is collapsed.
Click to expand it.
cicd_tests/do-clean.sh
0 → 100755
+
23
−
0
View file @
22a1c556
#/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
"
$@
"
This diff is collapsed.
Click to expand it.
cicd_tests/test-p1.sh
0 → 100755
+
20
−
0
View file @
22a1c556
#!/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
$*
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment