Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
cc24dad4
Commit
cc24dad4
authored
Sep 18, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
8b440498
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
go/neo/t/neotest
go/neo/t/neotest
+23
-2
No files found.
go/neo/t/neotest
View file @
cc24dad4
...
@@ -19,11 +19,12 @@ deploy_local() {
...
@@ -19,11 +19,12 @@ deploy_local() {
path
=
$1
path
=
$1
test
-e
$path
/deployed
&&
echo
"# already deployed"
&&
return
test
-e
$path
/deployed
&&
echo
"# already deployed"
&&
return
mkdir
-p
$path
mkdir
-p
$path
cd
$path
# python part
# python part
virtualenv
$path
/
venv
virtualenv venv
cat
>
$path
/
env.sh
<<
'
EOF
'
cat
>
env.sh
<<
'
EOF
'
X=
${
1
:-${
BASH_SOURCE
[0]
}}
# path to original env.sh is explicitly passed
X=
${
1
:-${
BASH_SOURCE
[0]
}}
# path to original env.sh is explicitly passed
X=
$(
cd
`
dirname
$X
`
&&
pwd
)
# when there is other env.sh wrapping us
X=
$(
cd
`
dirname
$X
`
&&
pwd
)
# when there is other env.sh wrapping us
...
@@ -35,6 +36,26 @@ export PS1="(`basename $X`) $PS1"
...
@@ -35,6 +36,26 @@ export PS1="(`basename $X`) $PS1"
GOPATH=
${
GOPATH
%
:
}
GOPATH=
${
GOPATH
%
:
}
.
$X
/venv/bin/activate
.
$X
/venv/bin/activate
EOF
EOF
.
env.sh
pip
install
git+https://lab.nexedi.com/nexedi/wendelin.core.git@master
# XXX does not show git in ver
pip
install
zodbtools
mkdir
-p
src/lab.nexedi.com/kirr
pushd
src/lab.nexedi.com/kirr
test
-d
neo
||
git clone
-o
kirr https://lab.nexedi.com/kirr/neo.git neo
cd
neo
git fetch kirr refs/backup/t:refs/kirr-backup/t
# XXX temp
git checkout refs/kirr-backup/t
pip
install
-e
.
pip
install
mysqlclient
# XXX better ^^^ `pip install .` pick this up
popd
go get
-v
lab.nexedi.com/kirr/neo/go/...
echo
ok
>
deployed
}
}
# jump to deploy early if we have to
# jump to deploy early if we have to
...
...
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