Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr2rf-vme
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
wr2rf-vme
Commits
5bdf717a
Commit
5bdf717a
authored
May 22, 2023
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
release v0.17
Signed-off-by:
Adam Wujek
<
dev_public@wujek.eu
>
parent
46661a40
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
5 deletions
+65
-5
.gitlab-ci.yml
.gitlab-ci.yml
+65
-4
build-wr2rf.sh
ci-scripts/build-wr2rf.sh
+0
-1
No files found.
.gitlab-ci.yml
View file @
5bdf717a
...
...
@@ -129,7 +129,7 @@ build-wr2rf:
nfs_publish
:
stage
:
deploy
rules
:
-
if
:
$CI_COMMIT_
TAG
# Run this job when a tag is created
-
if
:
$CI_COMMIT_
BRANCH
# Run this job when a tag is created
script
:
-
|
# Test description
...
...
@@ -151,9 +151,9 @@ nfs_publish:
-
echo "$KPASS" | kinit wrci@CERN.CH
-
tar xf $_BITSTREAM_DEST/wr2rf.tar.xz
-
ssh -o StrictHostKeyChecking=no wrci@cs-ccr-dev4 "mkdir -p /acc/local/L867/drv/wr2rf/
\"$CI_COMMIT_TAG\"
/bitstream"
-
scp -r "$_TOOLS_DEST"/* wrci@cs-ccr-dev4:/acc/local/L867/drv/wr2rf/
"$CI_COMMIT_TAG"
-
scp wr2rf_vme.bit wrci@cs-ccr-dev4:/acc/local/L867/drv/wr2rf/
"$CI_COMMIT_TAG"
/bitstream
-
ssh -o StrictHostKeyChecking=no wrci@cs-ccr-dev4 "mkdir -p /acc/local/L867/drv/wr2rf/
v0.17
/bitstream"
-
scp -r "$_TOOLS_DEST"/* wrci@cs-ccr-dev4:/acc/local/L867/drv/wr2rf/
v0.17
-
scp wr2rf_vme.bit wrci@cs-ccr-dev4:/acc/local/L867/drv/wr2rf/
v0.17
/bitstream
###############################################################################
...
...
@@ -179,3 +179,64 @@ release-wr2rf:
url
:
'
https://be-cem-edl.web.cern.ch/wr2rf-vme/$CI_COMMIT_TAG/firmware'
-
name
:
'
Bitstream'
url
:
'
https://be-cem-edl.web.cern.ch/wr2rf-vme/$CI_COMMIT_TAG/bitstream'
publish
:
extends
:
-
eos_publish
rules
:
-
if
:
$CI_COMMIT_BRANCH
script
:
-
|
if [[ ! $CI_COMMIT_REF_PROTECTED = "true" ]]
then
echo -e "\e[31mPlease protect the commit reference (branch/tag) and try again. Aborting...\e[0m"
exit 1
fi
-
>
printf "{\"text\":\":white_check_mark:
Project [$CI_PROJECT_NAME]($CI_PROJECT_URL)
just had a new release" > /tmp/data.txt
-
|
if [[ -z $EDL_CI_EOS_PROJECT_NAME ]]
then
export EDL_CI_EOS_PROJECT_NAME="$CI_PROJECT_NAME"
fi
-
export EOS_PATH="$EDL_CI_EOS_PATH"
-
|
if [[ -z $EDL_CI_EOS_NO_VERSION ]]
then
export _DEST="$EDL_CI_EOS_PROJECT_NAME/v0.17"
printf " ([v0.17]($CI_PROJECT_URL/-/tags/v0.17))\"}\n" >> /tmp/data.txt
else
export _DEST="$EDL_CI_EOS_PROJECT_NAME"
printf " ([$CI_COMMIT_BRANCH]($CI_PROJECT_URL/-/commits/$CI_COMMIT_BRANCH))\"}\n" >> /tmp/data.txt
fi
-
export EOS_ACCOUNT_USERNAME=$EDL_CI_EOS_USER
-
export EOS_ACCOUNT_PASSWORD=$EDL_CI_EOS_PASS
-
touch .htaccess
-
|
if [[ $CI_PROJECT_VISIBILITY == "public" ]]
then
echo "AuthType None" >> .htaccess
echo "Require all granted" >> .htaccess
else
echo "AuthType openid-connect" >> .htaccess
echo "Require claim cern_roles:restricted" >> .htaccess
fi
-
|
if [[ ! -z $EDL_CI_EOS_OUTPUT_DIR ]] && [[ -d $EDL_CI_EOS_OUTPUT_DIR ]]
then
export TMP_DIR=$(mktemp -d)
mkdir -p "$TMP_DIR/public/$_DEST"
cp -r "$EDL_CI_EOS_OUTPUT_DIR"/* "$TMP_DIR/public/$_DEST"
cp .htaccess "$TMP_DIR/public/$EDL_CI_EOS_PROJECT_NAME"
cd "$TMP_DIR"
deploy-eos
else
echo "Nothing to publish to EOS project space"
fi
-
>
curl -i
--header 'Content-Type: application/json'
--data-binary '@/tmp/data.txt'
--request POST $EDL_CI_MATTERMOST_PUBLISH_HOOK || true
ci-scripts/build-wr2rf.sh
View file @
5bdf717a
...
...
@@ -21,6 +21,5 @@ hdlmake 2>&1 | tee "${LOG_FILE}_hdlmake.log"
make files.tcl 2>&1 |
tee
"
${
LOG_FILE
}
_make_files.log"
vivado
-mode
tcl
-source
wr2rf_vme.tcl
git describe
>>
wr2rf_ver.txt
tar
-cJf
wr2rf.tar.xz
*
.rpt
*
.dcp
*
.bit
*
.bin wr2rf_ver.txt
cp
wr2rf.tar.xz ../../..
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