Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
Power System Simulation and Optimization
DPsim
DPsim
Commits
4a0a49e4
Commit
4a0a49e4
authored
Aug 31, 2017
by
Georg Martin Reinke
Browse files
use cmake for CI
parent
4573b526
Changes
2
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
4a0a49e4
variables
:
DOCKER_IMAGE
:
dpsim-dev-${CI_COMMIT_REF_NAME}
GIT_SUBMODULE_STRATEGY
:
recursive
LD_LIBRARY_PATH
:
/usr/local/lib
stages
:
-
prepare
-
build-cim
-
build
-
test
docker
:
stage
:
prepare
...
...
@@ -16,37 +13,15 @@ docker:
tags
:
-
shell
build-cim
:
stage
:
build-cim
script
:
-
mkdir -p Source/CIM-XML-Parser/build
-
sed -i '/^add_library/ s/STATIC/SHARED/' Source/CIM-XML-Parser/thirdparty/arabica/CMakeLists.txt
-
cd Source/CIM-XML-Parser/build
-
cmake -DBUILD_SHARED_LIBS=ON ..
-
make
image
:
${DOCKER_IMAGE}
artifacts
:
paths
:
-
Source/CIM-XML-Parser/build
tags
:
-
docker
build
:
stage
:
build
script
:
-
cp Source/CIM-XML-Parser/build/{libCIMParser.so,thirdparty/arabica/libarabica.so} /usr/local/lib
-
make -C Source
-
mkdir Source/build
-
cd Source/build
-
cmake ..
-
make
image
:
${DOCKER_IMAGE}
tags
:
-
docker
test
:
stage
:
test
script
:
-
cp Source/CIM-XML-Parser/build/{libCIMParser.so,thirdparty/arabica/libarabica.so} /usr/local/lib
-
make -C Source tests
-
cd Source/Tests
-
python3 run_tests.py
image
:
${DOCKER_IMAGE}
tags
:
-
docker
# no testing for now
Source/CMakeLists.txt
0 → 100644
View file @
4a0a49e4
cmake_minimum_required
(
VERSION 3.0
)
project
(
DPsim
)
find_package
(
Eigen3 REQUIRED
)
add_subdirectory
(
CIM-XML-Parser
)
file
(
GLOB SOURCES *.cpp Components/*.cpp Examples/*.cpp
)
add_executable
(
DPSolver
${
SOURCES
}
)
target_link_libraries
(
DPSolver Eigen3::Eigen CIMParser -lrt -lvillas-ext
)
Write
Preview
Supports
Markdown
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