Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
La Quadrature du Net
piphone
piphone-front
Commits
b793ad60
Commit
b793ad60
authored
Aug 08, 2016
by
okhin
Browse files
Let's play with a CI script
parent
b89d6b9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
ci/install.sh
0 → 100755
View file @
b793ad60
#!/bin/bash
# This schript is used to setup what needs to be (virtualenv and stuff)
# before running the pthon setup.py part
# We need those variables
if
[
-z
"
$CI_PROJECT_DIR
"
]
then
echo
"CI_PROJECT_DIR undefined"
exit
1
fi
export
CI_PROJECT_NAME
=
$(
basename
$CI_PROJECT_DIR
)
if
[
-z
"
$CI_BUILD_REPO
"
]
then
echo
"CI_BUILD_REPO undefined"
exit
1
fi
cd
/srv/piphone
if
[
-d
$CI_PROJECT_NAME
]
then
cd
$CI_PROJECT_NAME
git pull origin master
else
git clone
$CI_BUILD_REPO
$CI_PROJECT_NAME
cd
$CI_PROJECT_NAME
fi
composer
install
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