Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Charles Ferguson
streamedinput
Commits
e1b352bc
Commit
e1b352bc
authored
Feb 19, 2017
by
Charles Ferguson
Browse files
Update scripts for CI.
parent
155263c0
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
22 additions
and
8 deletions
+22
-8
scripts/bootstrap-env
scripts/bootstrap-env
+10
-4
scripts/docs
scripts/docs
+1
-1
scripts/lint
scripts/lint
+1
-1
scripts/requirements-lint.txt
scripts/requirements-lint.txt
+0
-1
scripts/requirements-test.txt
scripts/requirements-test.txt
+1
-0
scripts/requirements-venv.txt
scripts/requirements-venv.txt
+8
-0
scripts/test
scripts/test
+1
-1
No files found.
scripts/bootstrap-env
View file @
e1b352bc
...
...
@@ -79,6 +79,7 @@ if [[ $# -lt $((OPTIND+1)) ]] ; then
exit
1
fi
scriptdir
=
$(
normalize
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
)
environment
=
"
${
*
:
$OPTIND
:1
}
"
# Our temporary requirements file
...
...
@@ -103,7 +104,7 @@ environment=$( normalize "${environment}" )
source
"
${
environment
}
/bin/activate"
||
exit
1
echo
Installing packages with PIP ...
echo
Installing packages
into virtualenv
with PIP ...
if
!
"
${
pip_tool
}
"
install
\
--disable-pip-version-check
\
${
quiet
:-}
\
...
...
@@ -116,9 +117,14 @@ echo Checking for any packages that are not in the requirements...
# The echos in the second argument ensure that PIP and Easy_Install are not removed
# from the virtualenv.
to_remove
=(
$(
diff <
(
"
${
pip_tool
}
"
list
--disable-pip-version-check
|
cut
-d
' '
-f
1 |
sort
)
\
<
((
echo
pip
;
echo
setuptools
;
cut
-d
'='
-f
1
"
${
tmprequirements
}
"
)
|
sort
)
\
|
grep
'^<'
\
|
cut
-d
' '
-f2
)
)
<
((
if
[
-e
"
${
scriptdir
}
/requirements-venv.txt"
]
;
then
\
cat
"
${
scriptdir
}
/requirements-venv.txt"
;
\
else
\
echo
pip
;
echo
setuptools
;
\
fi
;
\
cut
-d
'='
-f
1
"
${
tmprequirements
}
"
)
|
sort
)
\
|
grep
'^<'
\
|
cut
-d
' '
-f2
)
)
if
[[
"
${#
to_remove
[@]
}
"
!=
0
]]
;
then
echo
" - removing
${#
to_remove
[@]
}
packages"
if
!
"
${
pip_tool
}
"
uninstall
--disable-pip-version-check
\
...
...
scripts/docs
View file @
e1b352bc
...
...
@@ -10,7 +10,7 @@ ROOT="$SCRIPTS/.."
# Set up and enter the Virtual env.
"
$SCRIPTS
/bootstrap-env"
"
$ROOT
/
${
VENV_DIR
}
"
\
"
$ROOT
/requirements.txt"
\
"
$SCRIPTS
/requirements-docs.txt"
"
$SCRIPTS
/requirements-docs.txt"
||
exit
1
cd
"
$ROOT
"
source
"
${
VENV_DIR
}
/bin/activate"
||
exit
1
...
...
scripts/lint
View file @
e1b352bc
...
...
@@ -10,7 +10,7 @@ ROOT="$SCRIPTS/.."
# Set up and enter the Virtual env.
"
$SCRIPTS
/bootstrap-env"
"
$ROOT
/
${
VENV_DIR
}
"
\
"
$ROOT
/requirements.txt"
\
"
$SCRIPTS
/requirements-lint.txt"
"
$SCRIPTS
/requirements-lint.txt"
||
exit
1
cd
"
$ROOT
"
source
"
${
VENV_DIR
}
/bin/activate"
||
exit
1
...
...
scripts/requirements-lint.txt
100644 → 100755
View file @
e1b352bc
# Allow our testing
coverage==4.1
nose==1.3.7
psutil==4.3.0
...
...
scripts/requirements-test.txt
100644 → 100755
View file @
e1b352bc
...
...
@@ -2,3 +2,4 @@
coverage==4.1
nose==1.3.7
psutil==4.3.0
scripts/requirements-venv.txt
0 → 100755
View file @
e1b352bc
# VirtualEnv requirements
pip
setuptools
wheel
appdirs
packaging
pyparsing
six
scripts/test
View file @
e1b352bc
...
...
@@ -20,7 +20,7 @@ fi
# Set up and enter the Virtual env.
"
$SCRIPTS
/bootstrap-env"
${
PYTHON_SWITCH
}
"
$ROOT
/
${
VENV_DIR
}
"
\
"
$ROOT
/requirements.txt"
\
"
$SCRIPTS
/requirements-test.txt"
"
$SCRIPTS
/requirements-test.txt"
||
exit
1
cd
"
$ROOT
"
source
"
${
VENV_DIR
}
/bin/activate"
||
exit
1
...
...
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