Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
slapos
Commits
3fcca36c
Commit
3fcca36c
authored
Nov 12, 2021
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
junk
parent
1341ed0d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
release-cookbook
release-cookbook
+4
-4
software/metabase/software.cfg
software/metabase/software.cfg
+1
-0
software/metabase/test/test.py
software/metabase/test/test.py
+2
-0
No files found.
release-cookbook
View file @
3fcca36c
...
...
@@ -13,16 +13,16 @@ rm -rf dist/slapos.cookbook*
# for now this script is hardcoded to release on 1.0.x versions intentionally
# update to version 2 or 1.1 would require a major reorganisation on the release
# process
CURRENT_VERSION
=
`
git tag |
grep
"^1
\+\.
0
\+\.
[0-9]
\+
$"
|
sort
-t
.
-k
1,1n
-k
2,2n
-k
3,3n |
tail
-1
`
NEXT_MINOR_VERSION
=
$((
`
echo
$CURRENT_VERSION
|
cut
-f3
-d
.
`
+
1
))
CURRENT_VERSION
=
$(
git tag |
grep
"^1
\+\.
0
\+\.
[0-9]
\+
$"
|
sort
-t
.
-k
1,1n
-k
2,2n
-k
3,3n |
tail
-1
)
NEXT_MINOR_VERSION
=
$((
$(
echo
"
$CURRENT_VERSION
"
|
cut
-f3
-d
.
)
+
1
))
NEXT_VERSION
=
1.0.
$NEXT_MINOR_VERSION
CURRENT_EGG_VERSION
=
`
cat
setup.py |
grep
^version |
cut
-d
\'
-f2
`
CURRENT_EGG_VERSION
=
$(
grep
setup.py ^version |
cut
-d
\'
-f2
)
sed
-i
"s/
$CURRENT_EGG_VERSION
/
$NEXT_VERSION
/g"
setup.py
git commit
-m
"Release slapos.cookbook (
$NEXT_VERSION
)"
setup.py
if
[
!
$EGG_ONLY
==
"Y"
]
;
if
[
!
"
$EGG_ONLY
"
==
"Y"
]
;
then
sed
-i
"s/slapos.cookbook =
$CURRENT_EGG_VERSION
/slapos.cookbook =
$NEXT_VERSION
/g"
stack/slapos.cfg
sed
-i
"s/slapos.cookbook==
$CURRENT_EGG_VERSION
/slapos.cookbook==
$NEXT_VERSION
/g"
stack/slapos.cfg
...
...
software/metabase/software.cfg
View file @
3fcca36c
...
...
@@ -13,6 +13,7 @@ extends =
parts =
slapos-cookbook
instance-profile
xserver
[python]
part = python3
...
...
software/metabase/test/test.py
View file @
3fcca36c
...
...
@@ -95,3 +95,5 @@ class TestMetabaseSetup(MetabaseTestCase):
"password"
:
password
}).
json
()
self
.
assertTrue
(
session
.
get
(
'id'
))
import
pdb
;
pdb
.
set_trace
()
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment