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
1ddcffd5
There was a problem fetching the pipeline summary.
Commit
1ddcffd5
authored
7 years ago
by
Andrea Michelotti
Browse files
Options
Downloads
Plain Diff
Merge branch 'experimental' into development
parents
29bfbda7
545d0693
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+10
-9
10 additions, 9 deletions
.gitlab-ci.yml
.gitlab-ci.yml~
+88
-0
88 additions, 0 deletions
.gitlab-ci.yml~
with
98 additions
and
9 deletions
.gitlab-ci.yml
+
10
−
9
View file @
1ddcffd5
...
...
@@ -71,11 +71,12 @@ ubuntu1604_x86_64:
-
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
# - cmake -DCHAOS_WAN=ON -DCHAOS_CCS=ON -DCERN_ROOT=$INSTALL_DIR -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR -DCMAKE_BUILD_TYPE=PROFILE . |& tee $DISTRIB_PREFIX/bundle.configuration.log
-
cmake -DCHAOS_WAN=ON -DCHAOS_BUILD_ID=${CI_PIPELINE_ID} -DCHAOS_CCS=ON -DCERN_ROOT=$INSTALL_DIR -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR . |& tee $DISTRIB_PREFIX/bundle.configuration.log
-
cmake -DCHAOS_WAN=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
-
make -j 4 install
-
source $INSTALL_DIR/chaos_env.sh
-
cd chaosframework/ccs;qmake;echo "* compiling CCS";make -j 4 >& $DISTRIB_PREFIX/ccs.compilation.log ;cp ccs $INSTALL_DIR/bin;
-
cd ../../
#
- source $INSTALL_DIR/chaos_env.sh
#
- cd chaosframework/ccs;qmake;echo "* compiling CCS";make -j 4 >& $DISTRIB_PREFIX/ccs.compilation.log ;cp ccs $INSTALL_DIR/bin;
#
- cd ../../
-
tar cfz $DISTRIB_NAME.tar.gz -C /usr/local/chaos chaos-distrib
artifacts
:
name
:
"
$DISTRIB_NAME.tar.gz"
...
...
@@ -117,9 +118,9 @@ ubuntu1404_x86_64:
-
repo sync
-
cmake -DCHAOS_WAN=ON -DCHAOS_BUILD_ID=${CI_PIPELINE_ID} -DCHAOS_CCS=ON -DCERN_ROOT=$INSTALL_DIR -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR .
-
make -j 4 install
-
source $INSTALL_DIR/chaos_env.sh
-
cd chaosframework/ccs;qmake;echo "* compiling CCS";make -j 4 >& $DISTRIB_PREFIX/ccs.compilation.log;cp ccs $INSTALL_DIR/bin;
-
cd ../../
#
- source $INSTALL_DIR/chaos_env.sh
#
- cd chaosframework/ccs;qmake;echo "* compiling CCS";make -j 4 >& $DISTRIB_PREFIX/ccs.compilation.log;cp ccs $INSTALL_DIR/bin;
#
- cd ../../
-
tar cfz $DISTRIB_NAME.tar.gz -C /usr/local/chaos chaos-distrib
artifacts
:
name
:
"
$DISTRIB_NAME.tar.gz"
...
...
@@ -207,8 +208,8 @@ deploy_stage:
-
scp chaos-distrib-$CI_COMMIT_REF_NAME-build_arm_linux26.tar.gz chaosweb@opensource.lnf.infn.it:/var/www/html/binary/chaos/arm/
-
scp chaos-distrib-$CI_COMMIT_REF_NAME-build_i686_static_linux26.tar.gz chaosweb@opensource.lnf.infn.it:/var/www/html/binary/chaos/i686/
-
scp chaos-distrib-$CI_COMMIT_REF_NAME-build_i686_dynamic_linux26.tar.gz chaosweb@opensource.lnf.infn.it:/var/www/html/binary/chaos/i686/
-
if [
$CI_COMMIT_REF_NAME
== "development" ];then echo "deploying in LNF DEVELOPMENT infrastructure"; tar xfz $DISTRIB_NAME.tar.gz -C /usr/local/chaos;cd $DISTRIB_PREFIX;source chaos_env.sh;./tools/chaos_deploy.sh tools/config/lnf/test/chaos-infrastructure.txt;fi
-
if [
$CI_COMMIT_REF_NAME == "master
" ];then echo "deploying in LNF MASTER infrastructure"; tar xfz $DISTRIB_NAME.tar.gz -C /usr/local/chaos;cd $DISTRIB_PREFIX;source chaos_env.sh;./tools/chaos_deploy.sh tools/config/lnf/production/chaos-infrastructure.txt;fi
-
if [
"$DEPLOY_DESTINATION"
== "development" ];then echo "deploying in LNF DEVELOPMENT infrastructure"; tar xfz $DISTRIB_NAME.tar.gz -C /usr/local/chaos;cd $DISTRIB_PREFIX;source chaos_env.sh;./tools/chaos_deploy.sh
-c
tools/config/lnf/test/chaos-infrastructure.txt
-i /usr/local/chaos/chaos-distrib
;fi
-
if [
"$DEPLOY_DESTINATION" == "production
" ];then echo "deploying in LNF MASTER infrastructure"; tar xfz $DISTRIB_NAME.tar.gz -C /usr/local/chaos;cd $DISTRIB_PREFIX;source chaos_env.sh;./tools/chaos_deploy.sh
-c
tools/config/lnf/production/chaos-infrastructure.txt
-i /usr/local/chaos/chaos-distrib;cd tools/config/lnf/production; ./update_libera.sh
;fi
allow_failure
:
true
...
...
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml~
0 → 100644
+
88
−
0
View file @
1ddcffd5
stages:
- build
- deploy
before_script:
- export NOW=$(date +"%Y%m%d-%H%M%S")
- export TAR_NAME_POSTFIX=$NOW
- echo $CHAOS_DEPLOY_PRIVATE_KEY >> /builds/bisegni/chaosframework/deploy.key
- chmod 600 /builds/bisegni/chaosframework/deploy.key
build_framework_x86_64:
stage: build
image: baltig.infn.it:4567/bisegni/chaos-docker-compilation:latest
script:
- echo "Working directory:"$PWD
- echo "Artifact name:"$TAR_NAME_POSTFIX
- cmake .
- make clean
- make -j 4
- make install
#- tar -zcf /builds/bisegni/chaosframework/chaos-distrib-x86_64-Linux_$TAR_NAME_POSTFIX.tgz /builds/bisegni/chaosframework/chaos-distrib-x86_64-Linux
#- ls -la
#- scp -v -i /builds/bisegni/chaosframework/deploy.key -o StrictHostKeyChecking=no /builds/bisegni/chaosframework/chaos-distrib-x86_64-Linux_$TAR_NAME_POSTFIX.tgz chaosweb@opensource.lnf.infn.it:/var/www/html/binary/chaos/
cache:
key: "$CI_BUILD_REF_NAME/x86_64"
paths:
- /builds/bisegni/chaosframework/config/CHACHE
- /builds/bisegni/chaosframework/external-x86_64-Linux
- /builds/bisegni/chaosframework/chaos-distrib-x86_64-Linux
only:
- development
- master
build_framework_arm:
stage: build
image: baltig.infn.it:4567/bisegni/chaos-docker-compilation:latest
script:
- echo "Working directory:"$PWD
- echo "Artifact name:"$TAR_NAME_POSTFIX
- cmake -DCHAOS_TARGET=armhf
- make clean
- make -j 4
- make install
#- tar -zcf /builds/bisegni/chaosframework/chaos-distrib-armhf_$TAR_NAME_POSTFIX.tgz /builds/bisegni/chaosframework/chaos-distrib-armhf
#- ls -la
#- scp -v -i /builds/bisegni/chaosframework/deploy.key -o StrictHostKeyChecking=no /builds/bisegni/chaosframework/chaos-distrib-x86_64-Linux_$TAR_NAME_POSTFIX.tgz chaosweb@opensource.lnf.infn.it:/var/www/html/binary/chaos/
cache:
key: "$CI_BUILD_REF_NAME/arm"
paths:
- /builds/bisegni/chaosframework/config/CHACHE
- /builds/bisegni/chaosframework/external-armhf
- /builds/bisegni/chaosframework/chaos-distrib-armhf
only:
- development
- master
deploy_framework_x86_64:
stage: deploy
image: baltig.infn.it:4567/bisegni/chaos-docker-compilation:latest
script:
- ls -la /builds/bisegni/chaosframework/chaos-distrib-x86_64-Linux/bin
- ls -la /builds/bisegni/chaosframework/chaos-distrib-x86_64-Linux/lib
- ls -la /builds/bisegni/chaosframework/chaos-distrib-x86_64-Linux/include
- echo "scp /builds/bisegni/chaosframework/chaos-distrib-x86_64-Linux_$TAR_NAME_POSTFIX.tgz chaosweb@opensource.lnf.infn.it:/var/www/html/binary/chaos/"
cache:
key: "$CI_BUILD_REF_NAME/x86_64"
paths:
- /builds/bisegni/chaosframework/chaos-distrib-x86_64-Linux
only:
- development
- master
deploy_framework_arm:
stage: deploy
image: baltig.infn.it:4567/bisegni/chaos-docker-compilation:latest
script:
- ls -la /builds/bisegni/chaosframework/chaos-distrib-armhf/bin
- ls -la /builds/bisegni/chaosframework/chaos-distrib-armhf/lib
- ls -la /builds/bisegni/chaosframework/chaos-distrib-armhf/include
- echo "scp /builds/bisegni/chaosframework/chaos-distrib-armhf_$TAR_NAME_POSTFIX.tgz chaosweb@opensource.lnf.infn.it:/var/www/html/binary/chaos/"
cache:
key: "$CI_BUILD_REF_NAME/arm"
paths:
- /builds/bisegni/chaosframework/chaos-distrib-armhf
only:
- development
- master
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