Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
chaos_bundle_compilation
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
chaos-lnf-control
chaos_bundle_compilation
Commits
f13dff07
Commit
f13dff07
authored
6 years ago
by
Andrea Michelotti
Browse files
Options
Downloads
Patches
Plain Diff
added also ubuntu18.04
parent
ac4f4368
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#11649
failed
6 years ago
Stage: build
Stage: test
Stage: deploy
Stage: docker
Stage: publish
Changes
1
Pipelines
7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+61
-1
61 additions, 1 deletion
.gitlab-ci.yml
with
61 additions
and
1 deletion
.gitlab-ci.yml
+
61
−
1
View file @
f13dff07
...
...
@@ -144,6 +144,33 @@ ubuntu1604_x86_64:
expire_in
:
2 day
when
:
always
ubuntu1804_x86_64
:
stage
:
build
tags
:
-
shared
image
:
baltig.infn.it:4567/chaos-lnf-control/chaos_bundle_compilation:1804
script
:
-
mkdir -p $INSTALL_DIR
-
repo init -q --no-clone-bundle -u git@baltig.infn.it:chaos-lnf-control/chaos_repo_bundle.git -b $CI_COMMIT_REF_NAME
-
repo sync
-
cd chaosframework;export CHAOS_LIB_HASH=`git log -n 1 --pretty="%h"`;cd -;
-
if ! cmake -DCHAOS_ARCHITECTURE_TEST=ON -DCHAOS_VERSION_MAJOR="$CI_COMMIT_REF_NAME.$CHAOS_LIB_HASH" -DCHAOS_VERSION_MINOR="$CI_JOB_STAGE.$CI_COMMIT_SHA" -DCHAOS_WAN=ON -DOPENCV=$INSTALL_DIR -DIDS=ON -DENABLE_MEMCACHE=ON -DCHAOS_CCS=ON -DCHAOS_BUILD_ID=${CI_PIPELINE_ID} -DCERN_ROOT=$INSTALL_DIR -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR . |& tee $DISTRIB_PREFIX/bundle.configuration.log;then cat /tmp/cmake.log;fi
-
if ! make -j 4 install |& tee $INSTALL_DIR/bundle.compilation.log;then tar cfz compilation.tar.gz $INSTALL_DIR/bundle.compilation.log;exit 1;fi
-
git clone git@baltig.infn.it:chaos-lnf-control/luminometer.git
-
cd luminometer ;git checkout $CI_COMMIT_REF_NAME
-
cd chaos/src;cmake -DCMAKE_MODULE_PATH=$INSTALL_DIR -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR .
-
make -j 4 install
-
cd ../../../
-
scripts/strip_symbols.sh $INSTALL_DIR
-
tar cfz $DISTRIB_NAME.tar.gz -C /usr/local/chaos chaos-distrib
artifacts
:
name
:
"
$DISTRIB_NAME.tar.gz"
paths
:
-
./*.tar.gz
expire_in
:
2 day
when
:
always
centos7_x86_64
:
stage
:
build
tags
:
...
...
@@ -329,6 +356,37 @@ ubuntu1604_test_x86_64:
expire_in
:
3 day
when
:
always
ubuntu1804_test_x86_64
:
stage
:
test
dependencies
:
-
ubuntu1804_x86_64
services
:
-
name
:
couchbase/server:community-3.1.3
alias
:
couchbase
-
name
:
baltig.infn.it:4567/chaos-lnf-control/chaos_bundle_compilation/mongo:3.4
alias
:
mongo
image
:
baltig.infn.it:4567/chaos-lnf-control/chaos_bundle_compilation:1804
script
:
-
tar xfz $DISTRIB_NAME.tar.gz -C /usr/local/chaos/
-
$INSTALL_DIR/tools/dbinit.sh couchbase mongo
-
repo init -q --no-clone-bundle -u git@baltig.infn.it:chaos-lnf-control/chaos_repo_bundle.git -b $CI_COMMIT_REF_NAME
-
repo sync
-
cp -r tools $INSTALL_DIR
-
cp -r common/test/js $INSTALL_DIR/tools
-
export PPROF_PATH=$INSTALL_DIR/bin/pprof;
-
source $INSTALL_DIR/chaos_env.sh
-
if ! $INSTALL_DIR/bin/TestFramework;then export HEAPCHECK=strict; echo "*retrying with heap check"; $INSTALL_DIR/bin/TestFramework; exit 1;fi
-
if ! $INSTALL_DIR/tools/chaos_test.sh -d $INSTALL_DIR/tools/test;then export HEAPCHECK=normal; tar cfvz test-log.tar.gz -C /usr/local/chaos/chaos-distrib log;echo "* retrying test in debug mode";export CHAOS_DEBUG_CMD_TOOL="gdb";if ! $INSTALL_DIR/tools/chaos_test.sh -d $INSTALL_DIR/tools/test;then tar cfvz test-log-debug.tar.gz -C /usr/local/chaos/chaos-distrib log;fi;exit 1;fi
-
$INSTALL_DIR/tools/chaos_services.sh stop
-
tar cfz test-log-ok.tar.gz -C /usr/local/chaos/chaos-distrib log
artifacts
:
name
:
"
test-log.tar.gz"
paths
:
-
./test-log*.tar.gz
expire_in
:
3 day
when
:
always
centos7_test_x86_64
:
...
...
@@ -401,7 +459,8 @@ deploy_stage:
-
lnf
dependencies
:
-
ubuntu1404_x86_64
-
ubuntu1604_x86_64
-
ubuntu1604_x86_64
-
ubuntu1804_x86_64
-
centos7_x86_64
-
build_i686_dynamic_linux26
-
build_arm_linux26
...
...
@@ -411,6 +470,7 @@ deploy_stage:
-
scripts/accept_merge_request.sh $CI_COMMIT_REF_NAME
-
if [ -e chaos-osx10-distrib.tar.gz ];then scp chaos-osx10-distrib.tar.gz chaosweb@opensource.lnf.infn.it:/var/www/html/binary/chaos/$CI_COMMIT_REF_NAME/$ARCH/osx/;fi
-
scp chaos-distrib-$CI_COMMIT_REF_NAME-ubuntu-16.04-x86_64.tar.gz chaosweb@opensource.lnf.infn.it:/var/www/html/binary/chaos/$CI_COMMIT_REF_NAME/$ARCH/ubuntu/16.04/chaos-distrib.tar.gz
-
scp chaos-distrib-$CI_COMMIT_REF_NAME-ubuntu-18.04-x86_64.tar.gz chaosweb@opensource.lnf.infn.it:/var/www/html/binary/chaos/$CI_COMMIT_REF_NAME/$ARCH/ubuntu/18.04/chaos-distrib.tar.gz
-
scp chaos-distrib-$CI_COMMIT_REF_NAME-centos-7-x86_64.tar.gz chaosweb@opensource.lnf.infn.it:/var/www/html/binary/chaos/$CI_COMMIT_REF_NAME/$ARCH/centos/7/chaos-distrib.tar.gz
-
scp chaos-distrib-$CI_COMMIT_REF_NAME-ubuntu-14.04-x86_64.tar.gz chaosweb@opensource.lnf.infn.it:/var/www/html/binary/chaos/$CI_COMMIT_REF_NAME/$ARCH/ubuntu/14.04/chaos-distrib.tar.gz
-
scp chaos-distrib-$CI_COMMIT_REF_NAME-build_arm_linux26.tar.gz chaosweb@opensource.lnf.infn.it:/var/www/html/binary/chaos/$CI_COMMIT_REF_NAME/arm/chaos-distrib-$CI_COMMIT_REF_NAME-build_arm_linux26.tar.gz
...
...
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