11.07.2023 Tuesday 09:14
This commit is contained in:
@@ -87,7 +87,7 @@ skin=solarized-dark-256color
|
|||||||
|
|
||||||
[Layout]
|
[Layout]
|
||||||
output_lines=0
|
output_lines=0
|
||||||
left_panel_size=93
|
left_panel_size=75
|
||||||
top_panel_size=0
|
top_panel_size=0
|
||||||
message_visible=true
|
message_visible=true
|
||||||
keybar_visible=true
|
keybar_visible=true
|
||||||
|
|||||||
2
.vimrc
2
.vimrc
@@ -94,6 +94,8 @@ let g:syntastic_always_populate_loc_list = 1
|
|||||||
let g:syntastic_auto_loc_list = 1
|
let g:syntastic_auto_loc_list = 1
|
||||||
let g:syntastic_check_on_open = 1
|
let g:syntastic_check_on_open = 1
|
||||||
let g:syntastic_check_on_wq = 0
|
let g:syntastic_check_on_wq = 0
|
||||||
|
" " https://vi.stackexchange.com/questions/10007/how-to-make-syntastic-include-sourced-files-for-bash-syntax-as-shellcheck-x
|
||||||
|
let g:syntastic_sh_shellcheck_args = "-x"
|
||||||
|
|
||||||
" 24bits color fix for tmux
|
" 24bits color fix for tmux
|
||||||
" inspiration from https://github.com/vim/vim/issues/3608
|
" inspiration from https://github.com/vim/vim/issues/3608
|
||||||
|
|||||||
92
bin/create_mrshughes
Executable file
92
bin/create_mrshughes
Executable file
@@ -0,0 +1,92 @@
|
|||||||
|
#!/bin/zsh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
set -x
|
||||||
|
|
||||||
|
# function to get PARENT_WS as a parameter
|
||||||
|
# default value is 'ssh://pnyc@dabel.us.oracle.com//workspace/pnyc/solaris-reviews/secure-integrate/userland11.4'
|
||||||
|
#
|
||||||
|
|
||||||
|
if [[ -z $1 ]]; then
|
||||||
|
PARENT_WS='ssh://pnyc@dabel.us.oracle.com//workspace/pnyc/solaris-reviews/secure-integrate/userland11.4'
|
||||||
|
PARENT_WS='ssh://pnyc@dabel.us.oracle.com//workspace/pnyc/solaris-reviews/userland-pipeline'
|
||||||
|
else
|
||||||
|
PARENT_WS=$1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# remove trailing slash
|
||||||
|
PARENT_WS="${PARENT_WS%/}"
|
||||||
|
|
||||||
|
JENKINS_CLONE_FROM="ssh://${PARENT_WS##ssh://pnyc@}"
|
||||||
|
FOLDER_PREFIX='PetrN/'
|
||||||
|
POINT_OF_CONTACT='petr.nyc@oracle.com'
|
||||||
|
SLACK_CHANNEL='@pnyc'
|
||||||
|
DIR=$(pwd)
|
||||||
|
|
||||||
|
REPO=${PARENT_WS##*/} # userland11.4
|
||||||
|
SCRIPT_DIR_BASE=${PARENT_WS#*oracle.com/} # /workspace/pnyc/solaris-reviews/secure-integrate/userland11.4
|
||||||
|
MV=/bin/mv
|
||||||
|
RM=/bin/rm
|
||||||
|
CP=/bin/cp
|
||||||
|
CAT=/bin/cat
|
||||||
|
|
||||||
|
pwd
|
||||||
|
hg clone "$PARENT_WS"
|
||||||
|
pwd
|
||||||
|
cd "${DIR}/${REPO}"
|
||||||
|
pwd
|
||||||
|
|
||||||
|
source proxy on
|
||||||
|
$RM -rf venv
|
||||||
|
virtualenv -p /opt/homebrew/bin/python3.11 venv
|
||||||
|
source venv/bin/activate
|
||||||
|
pip install --upgrade pip
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
echo '[alias]' >> .hg/hgrc
|
||||||
|
echo 'ci = ci -X Makefile.inc' >> .hg/hgrc
|
||||||
|
echo 'st = st -X Makefile.inc' >> .hg/hgrc
|
||||||
|
|
||||||
|
tmpmake=$(mktemp)
|
||||||
|
sed 's:PYTHON3=python3.7:PYTHON3=python3.11:g' < Makefile.inc > "$tmpmake"
|
||||||
|
$MV "$tmpmake" Makefile.inc
|
||||||
|
|
||||||
|
|
||||||
|
# set up pwd
|
||||||
|
cd "${DIR}/${REPO}/common/etc"
|
||||||
|
$CP passwd.template passwd
|
||||||
|
|
||||||
|
# set up dev defaults
|
||||||
|
cd "${DIR}/${REPO}/common/jobs/"
|
||||||
|
cp defaults.devel.tmpl defaults.devel.yml
|
||||||
|
cp defaults.stage.tmpl defaults.stage.yml
|
||||||
|
|
||||||
|
$CAT > defaults_devel_patch <<- CATT
|
||||||
|
9c9
|
||||||
|
< script_dir_base: "/workspace/pzahradn/jenkins/mrspatmore"
|
||||||
|
---
|
||||||
|
> script_dir_base: "${SCRIPT_DIR_BASE=}"
|
||||||
|
11a12
|
||||||
|
> pipeline_workspace: "${JENKINS_CLONE_FROM}"
|
||||||
|
14c15
|
||||||
|
< folder_prefix: "pez-" # Could be used to deploy the devel jobs to different jenkins folder
|
||||||
|
---
|
||||||
|
> folder_prefix: "${FOLDER_PREFIX}" # Could be used to deploy the devel jobs to different jenkins folder
|
||||||
|
16c17
|
||||||
|
< point_of_contact: "petr.zahradnik@oracle.com"
|
||||||
|
---
|
||||||
|
> point_of_contact: "${POINT_OF_CONTACT}"
|
||||||
|
21c22
|
||||||
|
< slack_channel: "@pzahradn"
|
||||||
|
---
|
||||||
|
> slack_channel: "${SLACK_CHANNEL}"
|
||||||
|
CATT
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
patch -p0 defaults.devel.yml < defaults_devel_patch
|
||||||
|
|
||||||
|
source proxy off
|
||||||
|
cd "${DIR}/${REPO}/solaris/userland/sru/"
|
||||||
|
make lint
|
||||||
|
|
||||||
Reference in New Issue
Block a user