Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vagrant-boxen
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Piotr Maślanka
vagrant-boxen
Commits
8edec6ee
There was a problem fetching the latest pipeline status.
Commit
8edec6ee
authored
8 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
build test
parent
db9e9cb2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#591
failed with stage
in 35 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+114
-44
114 additions, 44 deletions
.gitlab-ci.yml
make.py
+9
-8
9 additions, 8 deletions
make.py
with
123 additions
and
52 deletions
.gitlab-ci.yml
+
114
−
44
View file @
8edec6ee
.job_template
:
&box_build_job
build_cassandra
:
only
:
-
master
-
/^cassandra\-(.*)$/
stage
:
build
stage
:
build
before_script
:
-
python make.py
-
cp *.sh $BOX/
-
cp SkeletonVagrantfile $BOX/Vagrantfile
tags
:
tags
:
-
vagrant
-
vagrant
-
develop19216822423
-
develop19216822423
before_script
:
-
python make.py
-
cp *.sh cassandra/
-
cp SkeletonVagrantfile cassandra/Vagrantfile
-
cd cassandra
script
:
script
:
-
vagrant up
-
vagrant up
-
vagrant package --out
$BOX
.box
-
vagrant package --out
cassandra
.box
-
mv -f
$BOX
.box /var/www/html/dev/vagrant/
$BOX
.box
-
mv -f
cassandra
.box /var/www/html/dev/vagrant/
cassandra
.box
-
vagrant box remove
$PREFIX/$BOX
-
vagrant box remove
henrietta//cassandra
-
vagrant box add
$PREFIX/$BOX
file:///var/www/html/dev/vagrant/
$BOX
.box
-
vagrant box add
henrietta//cassandra
file:///var/www/html/dev/vagrant/
cassandra
.box
-
cd ..
-
cd ..
after_script
:
after_script
:
-
vagrant destroy -f
-
vagrant destroy -f
-
cd ..
build_.git
:
<<
:
*box_build_job
variables
:
BOX
:
"
.git"
PREFIX
:
"
henrietta/"
only
:
-
master
-
/^.git\-(.*)$/
build_cassandra
:
<<
:
*box_build_job
variables
:
BOX
:
cassandra
PREFIX
:
henrietta/
only
:
-
master
-
/^cassandra\-(.*)$/
build_cass_zk_rmq
:
build_cass_zk_rmq
:
<<
:
*box_build_job
variables
:
BOX
:
cass_zk_rmq
PREFIX
:
henrietta/
only
:
only
:
-
master
-
master
-
/^cass_zk_rmq\-(.*)$/
-
/^cass_zk_rmq\-(.*)$/
stage
:
build
tags
:
-
vagrant
-
develop19216822423
before_script
:
-
python make.py
-
cp *.sh cass_zk_rmq/
-
cp SkeletonVagrantfile cass_zk_rmq/Vagrantfile
-
cd cass_zk_rmq
script
:
-
vagrant up
-
vagrant package --out cass_zk_rmq.box
-
mv -f cass_zk_rmq.box /var/www/html/dev/vagrant/cass_zk_rmq.box
-
vagrant box remove henrietta//cass_zk_rmq
-
vagrant box add henrietta//cass_zk_rmq file:///var/www/html/dev/vagrant/cass_zk_rmq.box
-
cd ..
after_script
:
-
vagrant destroy -f
-
cd ..
build_czr_pythons
:
build_czr_pythons
:
<<
:
*box_build_job
variables
:
BOX
:
czr_pythons
PREFIX
:
henrietta/
only
:
only
:
-
master
-
master
-
/^czr_pythons\-(.*)$/
-
/^czr_pythons\-(.*)$/
stage
:
build
tags
:
-
vagrant
-
develop19216822423
before_script
:
-
python make.py
-
cp *.sh czr_pythons/
-
cp SkeletonVagrantfile czr_pythons/Vagrantfile
-
cd czr_pythons
script
:
-
vagrant up
-
vagrant package --out czr_pythons.box
-
mv -f czr_pythons.box /var/www/html/dev/vagrant/czr_pythons.box
-
vagrant box remove henrietta//czr_pythons
-
vagrant box add henrietta//czr_pythons file:///var/www/html/dev/vagrant/czr_pythons.box
-
cd ..
after_script
:
-
vagrant destroy -f
-
cd ..
build_czr_pythons_pg
:
only
:
-
master
-
/^czr_pythons_pg\-(.*)$/
stage
:
build
tags
:
-
vagrant
-
develop19216822423
before_script
:
-
python make.py
-
cp *.sh czr_pythons_pg/
-
cp SkeletonVagrantfile czr_pythons_pg/Vagrantfile
-
cd czr_pythons_pg
script
:
-
vagrant up
-
vagrant package --out czr_pythons_pg.box
-
mv -f czr_pythons_pg.box /var/www/html/dev/vagrant/czr_pythons_pg.box
-
vagrant box remove henrietta//czr_pythons_pg
-
vagrant box add henrietta//czr_pythons_pg file:///var/www/html/dev/vagrant/czr_pythons_pg.box
-
cd ..
after_script
:
-
vagrant destroy -f
-
cd ..
build_nodejs4
:
build_nodejs4
:
<<
:
*box_build_job
variables
:
BOX
:
nodejs4
PREFIX
:
henrietta/
only
:
only
:
-
master
-
master
-
/^nodejs4\-(.*)$/
-
/^nodejs4\-(.*)$/
stage
:
build
tags
:
-
vagrant
-
develop19216822423
before_script
:
-
python make.py
-
cp *.sh nodejs4/
-
cp SkeletonVagrantfile nodejs4/Vagrantfile
-
cd nodejs4
script
:
-
vagrant up
-
vagrant package --out nodejs4.box
-
mv -f nodejs4.box /var/www/html/dev/vagrant/nodejs4.box
-
vagrant box remove henrietta//nodejs4
-
vagrant box add henrietta//nodejs4 file:///var/www/html/dev/vagrant/nodejs4.box
-
cd ..
after_script
:
-
vagrant destroy -f
-
cd ..
build_nodejs5_jdk_adk25
:
build_nodejs5_jdk_adk25
:
<<
:
*box_build_job
variables
:
BOX
:
nodejs5_jdk_adk25
PREFIX
:
henrietta/
only
:
only
:
-
master
-
master
-
/^nodejs5_jdk_adk25\-(.*)$/
-
/^nodejs5_jdk_adk25\-(.*)$/
stage
:
build
tags
:
-
vagrant
-
develop19216822423
before_script
:
-
python make.py
-
cp *.sh nodejs5_jdk_adk25/
-
cp SkeletonVagrantfile nodejs5_jdk_adk25/Vagrantfile
-
cd nodejs5_jdk_adk25
script
:
-
vagrant up
-
vagrant package --out nodejs5_jdk_adk25.box
-
mv -f nodejs5_jdk_adk25.box /var/www/html/dev/vagrant/nodejs5_jdk_adk25.box
-
vagrant box remove henrietta//nodejs5_jdk_adk25
-
vagrant box add henrietta//nodejs5_jdk_adk25 file:///var/www/html/dev/vagrant/nodejs5_jdk_adk25.box
-
cd ..
after_script
:
-
vagrant destroy -f
-
cd ..
This diff is collapsed.
Click to expand it.
make.py
+
9
−
8
View file @
8edec6ee
...
@@ -5,7 +5,7 @@ import os
...
@@ -5,7 +5,7 @@ import os
import
os.path
import
os.path
if
__name__
==
'
__main__
'
:
if
__name__
==
'
__main__
'
:
dirs
=
[
dir
for
dir
in
os
.
listdir
(
'
.
'
)
if
os
.
path
.
isdir
(
dir
)]
dirs
=
[
dir
for
dir
in
os
.
listdir
(
'
.
'
)
if
os
.
path
.
isdir
(
dir
)
or
(
dir
!=
'
.git
'
)
]
exi
=
lambda
box
,
sup
:
os
.
path
.
exists
(
os
.
path
.
join
(
box
,
'
build%s.sh
'
%
(
sup
,
)))
exi
=
lambda
box
,
sup
:
os
.
path
.
exists
(
os
.
path
.
join
(
box
,
'
build%s.sh
'
%
(
sup
,
)))
boxes
=
[
box
for
box
in
dirs
if
exi
(
box
,
''
)
or
exi
(
box
,
'
_as_vagrant
'
)]
boxes
=
[
box
for
box
in
dirs
if
exi
(
box
,
''
)
or
exi
(
box
,
'
_as_vagrant
'
)]
...
@@ -13,21 +13,20 @@ if __name__ == '__main__':
...
@@ -13,21 +13,20 @@ if __name__ == '__main__':
with
open
(
'
.gitlab-ci.yml
'
,
'
wb
'
)
as
ci
:
with
open
(
'
.gitlab-ci.yml
'
,
'
wb
'
)
as
ci
:
for
box
in
boxes
:
for
box
in
boxes
:
ci
.
write
(
b
'''
ci
.
write
(
b
'''
build_%s:
build_$BOX:
<<: *box_build_job
only:
only:
- master
- master
- /^$BOX\-(.*)$/
- /^$BOX\-(.*)$/
stage: build
stage: build
tags:
- vagrant
- develop19216822423
before_script:
before_script:
- python make.py
- python make.py
- cp *.sh $BOX/
- cp *.sh $BOX/
- cp SkeletonVagrantfile $BOX/Vagrantfile
- cp SkeletonVagrantfile $BOX/Vagrantfile
tags:
- vagrant
- develop19216822423
script:
- cd $BOX
- cd $BOX
script:
- vagrant up
- vagrant up
- vagrant package --out $BOX.box
- vagrant package --out $BOX.box
- mv -f $BOX.box /var/www/html/dev/vagrant/$BOX.box
- mv -f $BOX.box /var/www/html/dev/vagrant/$BOX.box
...
@@ -35,7 +34,9 @@ build_%s:
...
@@ -35,7 +34,9 @@ build_%s:
- vagrant box add $PREFIX/$BOX file:///var/www/html/dev/vagrant/$BOX.box
- vagrant box add $PREFIX/$BOX file:///var/www/html/dev/vagrant/$BOX.box
- cd ..
- cd ..
after_script:
after_script:
- vagrant destroy -f
'''
.
replace
(
'
$BOX
'
,
box
).
replace
(
'
$PREFIX
'
,
'
henrietta/
'
))
- vagrant destroy -f
- cd ..
'''
.
replace
(
'
$BOX
'
,
box
).
replace
(
'
$PREFIX
'
,
'
henrietta/
'
))
# Generate metadata
# Generate metadata
for
box
in
boxes
:
for
box
in
boxes
:
...
...
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