Commit 6403902c authored by Martin Schultz's avatar Martin Schultz

added copy command to ci build scripts, as they are the first scripts in

the pipeline, they copy tthe entire working directory of the ci runner
to an artifacts folder
parent c277395a
......@@ -41,9 +41,23 @@ make $MAKE_OPTIONS
# copy the used shared libraries to the lib folder
cd Build
mkdir systemlib
if [ ! -d systemlib ]; then
mkdir systemlib
fi
ldd bin/OpenFlipper | grep "=> /" | awk '{print $3}' | xargs -I '{}' cp -v '{}' systemlib
#cd ..
cd ../..
#create an artifact directory
if [ ! -d artifacts ]; then
mkdir artifacts
fi
#cp -R * artifacts
rsync -a --exclude=artifacts --exclude=.git . ./artifacts
cd artifacts
#rm -rf .git
# create an archive with all the build files so we can use them in the test script
#tar -cvf ../buildfiles.tar .
......@@ -20,4 +20,14 @@ cd build-release
make
# Required for the tests to build, if a package was generated
make fixbundle
\ No newline at end of file
make fixbundle
cd ..
#create an artifact directory
if [ ! -d artifacts ]; then
mkdir artifacts
fi
#cp -R * artifacts
rsync -a --exclude=artifacts --exclude=.git . ./artifacts
\ No newline at end of file
......@@ -25,4 +25,14 @@ IF %errorlevel% NEQ 0 exit /b %errorlevel%
%VS_PATH% /Build "Release" OpenFlipper.sln /Project "ALL_BUILD"
IF %errorlevel% NEQ 0 exit /b %errorlevel%
\ No newline at end of file
IF %errorlevel% NEQ 0 exit /b %errorlevel%
:: back to the root folder
cd ..
:: copy all files to a new artifacts folder except the .git folder
:: use the following options to make robocopy silent /NFL /NDL /NJH /NJS /nc /ns /np
robocopy . artifacts /e /NFL /NDL /NJH /NJS /nc /ns /np /xd artifacts /xd .git
::robocopy uses some error codes different from 0
IF %errorlevel% LSS 8 exit /b 0
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment