Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
behavior_loader
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
bioroboticslab
biotracker
behavior_loader
Commits
7efc4114
Commit
7efc4114
authored
5 years ago
by
calrama
Browse files
Options
Downloads
Patches
Plain Diff
update ci
parent
3c89cf0f
No related branches found
No related tags found
No related merge requests found
Pipeline
#29424
passed
5 years ago
Stage: build
Stage: package
Stage: trigger
Pipeline: biotracker
#29430
Changes
5
Pipelines
9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitlab-ci.py
+0
-83
0 additions, 83 deletions
.gitlab-ci.py
.gitlab-ci.yml
+38
-50
38 additions, 50 deletions
.gitlab-ci.yml
ci/compile.py
+7
-0
7 additions, 0 deletions
ci/compile.py
ci/configure.py
+28
-0
28 additions, 0 deletions
ci/configure.py
ci/package.py
+7
-0
7 additions, 0 deletions
ci/package.py
with
80 additions
and
133 deletions
.gitlab-ci.py
deleted
100755 → 0
+
0
−
83
View file @
3c89cf0f
#! /usr/bin/env python3
from
os
import
environ
as
env
from
platform
import
system
from
subprocess
import
check_call
,
check_output
from
argparse
import
ArgumentParser
def
define
(
key
:
str
,
value
:
str
):
return
[
'
-D
'
,
f
'
{
key
}
=
{
value
}
'
]
def
define_env
(
name
:
str
):
return
define
(
name
,
env
[
name
])
if
name
in
env
else
[]
if
system
()
==
'
Windows
'
:
def
setup_msvc
():
msvc_path
=
'
C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/Common7/Tools
'
lines
=
check_output
(
[
'
cmd
'
,
'
/c
'
,
'
VsDevCmd.bat
'
,
'
-arch=amd64
'
,
f
'
-vcvars_ver=
{
env
[
"
VCVARS_VER
"
]
}
'
,
'
&
'
,
'
set
'
],
cwd
=
msvc_path
).
decode
(
'
utf-8
'
).
splitlines
()
for
line
in
lines
:
split
=
line
.
split
(
'
=
'
)
if
len
(
split
)
!=
2
:
continue
key
,
value
=
split
if
key
in
env
and
env
[
key
]
==
value
:
continue
env
[
key
]
=
value
def
build
(
args
):
if
system
()
==
'
Windows
'
:
setup_msvc
()
command
=
[
'
cmake
'
]
command
+=
[
'
-S
'
,
'
.
'
]
command
+=
[
'
-B
'
,
'
build
'
]
command
+=
[
'
-G
'
,
'
Ninja
'
]
command
+=
define_env
(
'
CMAKE_BUILD_TYPE
'
)
command
+=
define
(
'
CMAKE_SUPPRESS_REGENERATION
'
,
'
ON
'
)
command
+=
define
(
'
CMAKE_SKIP_PACKAGE_ALL_DEPENDENCY
'
,
'
ON
'
)
if
system
()
==
'
Windows
'
:
command
+=
define
(
'
CMAKE_TOOLCHAIN_FILE
'
,
env
[
'
VCPKG_DIR
'
]
+
'
/scripts/buildsystems/vcpkg.cmake
'
)
command
+=
define
(
'
VCPKG_TARGET_TRIPLET
'
,
env
[
'
VCPKG_TRIPLET
'
])
check_call
(
command
)
command
=
[
'
ninja
'
,
'
-C
'
,
'
build
'
]
check_call
(
command
)
def
package
(
args
):
command
=
[
'
ninja
'
,
'
-C
'
,
'
build
'
,
'
package
'
]
check_call
(
command
)
if
__name__
==
'
__main__
'
:
parser
=
ArgumentParser
()
subparsers
=
parser
.
add_subparsers
()
build_parser
=
subparsers
.
add_parser
(
'
build
'
)
build_parser
.
set_defaults
(
task
=
build
)
package_parser
=
subparsers
.
add_parser
(
'
package
'
)
package_parser
.
set_defaults
(
task
=
package
)
args
=
parser
.
parse_args
()
args
.
task
(
args
)
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
38
−
50
View file @
7efc4114
stages
:
-
build
-
package
-
deploy
-
trigger
.centos
-7
:
.centos
:
tags
:
[
linux
,
docker
]
image
:
git.imp.fu-berlin.de:5000/bioroboticslab/robofish/docker:centos
-7
image
:
git.imp.fu-berlin.de:5000/bioroboticslab/robofish/docker:centos
.windows-1809
:
tags
:
[
windows-1809
,
docker
]
image
:
git.imp.fu-berlin.de:5000/bioroboticslab/robofish/docker:devel-windows-1809
.windows
:
tags
:
[
windows
,
docker
]
image
:
git.imp.fu-berlin.de:5000/bioroboticslab/robofish/docker:devel-windows
before_script
:
-
. $Profile.AllUsersAllHosts
.gcc8
:
&gcc8
CC
:
gcc-8
CXX
:
g++-8
.msvc15.9
:
&msvc15_9
VCVARS_VER
:
'
14.16'
.release
:
&release
CMAKE_BUILD_TYPE
:
Release
.debug
:
&debug
CMAKE_BUILD_TYPE
:
Debug
.build
:
&build
stage
:
build
...
...
@@ -32,26 +24,9 @@ stages:
paths
:
-
build
expire_in
:
1 day
script
:
./.gitlab-ci.py build
build centos-7
:
extends
:
.centos-7
<<
:
*build
variables
:
<<
:
[
*release
]
build windows-1809
:
extends
:
.windows-1809
<<
:
*build
variables
:
<<
:
[
*msvc15_9
,
*release
]
build windows-1809[debug]
:
extends
:
.windows-1809
<<
:
*build
variables
:
<<
:
[
*msvc15_9
,
*debug
]
script
:
-
./ci/configure.py
-
./ci/compile.py
.package
:
&package
stage
:
package
...
...
@@ -59,33 +34,46 @@ build windows-1809[debug]:
paths
:
-
build/*.tar.xz
expire_in
:
1 week
script
:
./.gitlab-ci.py package
script
:
-
./ci/package.py
build centos
:
extends
:
.centos
<<
:
*build
variables
:
<<
:
[
*release
]
build windows
:
extends
:
.windows
<<
:
*build
variables
:
<<
:
[
*release
]
package centos-7
:
extends
:
.centos-7
dependencies
:
-
build centos-7
<<
:
*package
package
windows-1809
:
extends
:
.
windows-1809
package
centos
:
extends
:
.
centos
dependencies
:
-
build
windows-1809
-
build
centos
<<
:
*package
package windows
-1809[debug]
:
extends
:
.windows
-1809
package windows
:
extends
:
.windows
dependencies
:
-
build windows
-1809[debug]
-
build windows
<<
:
*package
trigger robofish/robotracker
:
stage
:
deploy
stage
:
trigger
only
:
-
master
trigger
:
project
:
bioroboticslab/robofish/robotracker
trigger biotracker/biotracker
:
stage
:
deploy
stage
:
trigger
only
:
-
master
trigger
:
project
:
bioroboticslab/biotracker/biotracker
This diff is collapsed.
Click to expand it.
ci/compile.py
0 → 100755
+
7
−
0
View file @
7efc4114
#! /usr/bin/env python3
from
subprocess
import
check_call
if
__name__
==
"
__main__
"
:
command
=
[
"
ninja
"
,
"
-C
"
,
"
build
"
]
check_call
(
command
)
This diff is collapsed.
Click to expand it.
ci/configure.py
0 → 100755
+
28
−
0
View file @
7efc4114
#! /usr/bin/env python3
from
os
import
environ
as
env
from
subprocess
import
check_call
from
pathlib
import
Path
def
define
(
key
:
str
,
value
:
str
):
return
[
"
-D
"
,
f
"
{
key
}
=
{
value
}
"
]
def
define_env
(
name
:
str
):
return
define
(
name
,
env
[
name
])
if
name
in
env
else
[]
if
__name__
==
"
__main__
"
:
command
=
[
"
cmake
"
]
command
+=
[
"
-S
"
,
"
.
"
]
command
+=
[
"
-B
"
,
"
build
"
]
command
+=
[
"
-G
"
,
"
Ninja
"
]
command
+=
define
(
'
CMAKE_PREFIX_PATH
'
,
Path
(
'
vendor
'
).
resolve
())
command
+=
define_env
(
"
CMAKE_BUILD_TYPE
"
)
command
+=
define_env
(
"
CMAKE_TOOLCHAIN_FILE
"
)
command
+=
define
(
"
CMAKE_SUPPRESS_REGENERATION
"
,
"
ON
"
)
command
+=
define
(
"
CMAKE_SKIP_PACKAGE_ALL_DEPENDENCY
"
,
"
ON
"
)
command
+=
define_env
(
"
VCPKG_TARGET_TRIPLET
"
)
check_call
(
command
)
This diff is collapsed.
Click to expand it.
ci/package.py
0 → 100755
+
7
−
0
View file @
7efc4114
#! /usr/bin/env python3
from
subprocess
import
check_call
if
__name__
==
"
__main__
"
:
command
=
[
"
ninja
"
,
"
-C
"
,
"
build
"
,
"
package
"
]
check_call
(
command
)
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