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
Mathias Stelzer
sysdirs
Commits
e99c7bc9
Commit
e99c7bc9
authored
Apr 29, 2018
by
Mathias Stelzer
Browse files
remove ci cache
parent
e6b04653
Pipeline
#817
passed with stages
in 20 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
e99c7bc9
...
...
@@ -10,28 +10,6 @@ variables: &variables
TERM
:
ansi
DEBIAN_FRONTEND
:
noninteractive
# cache
# apt
APT_CACHE_DIR
:
${CI_PROJECT_DIR}/_cache/apt
# pip
XDG_CACHE_HOME
:
${CI_PROJECT_DIR}/_cache/xdg
PIP_CACHE_DIR
:
${CI_PROJECT_DIR}/_cache/xdg/pip
# commands
INIT_APT_CACHE
:
'
mkdir
-p
$${APT_CACHE_DIR};
echo
"$$(find
$${APT_CACHE_DIR}
-type
f
|
wc
-l)"
files
in
apt
cache'
INIT_PIP_CACHE
:
'
mkdir
-p
$${PIP_CACHE_DIR};
echo
"$$(find
$${PIP_CACHE_DIR}
-type
f
|
wc
-l)"
files
in
pip
cache'
APT
:
'
apt-get
-o
dir::cache::archives="$${APT_CACHE_DIR}"'
cache
:
key
:
"
sysdirs-$CI_COMMIT_REF_NAME-$CI_JOB_STAGE"
paths
:
-
_cache/apt
-
_cache/xdg/pip
before_script
:
-
eval $INIT_APT_CACHE
-
eval $INIT_PIP_CACHE
###############################################################################
# templates
...
...
@@ -56,13 +34,13 @@ before_script:
-
docker
dependencies
:
[]
script
:
-
eval $APT
update -qqy
-
apt-get
update -qqy
# build tools
-
eval $APT
install -qqy curl build-essential fakeroot devscripts python-dev python-pip python3-pip
-
apt-get
install -qqy curl build-essential fakeroot devscripts python-dev python-pip python3-pip
# Build-Depends
-
eval $APT
install -qqy debhelper dh-python python-all python-setuptools python-docutils python-sphinx python3-all python3-setuptools python3-docutils python3-sphinx
-
apt-get
install -qqy debhelper dh-python python-all python-setuptools python-docutils python-sphinx python3-all python3-setuptools python3-docutils python3-sphinx
-
dpkg-buildpackage -us -uc
...
...
@@ -83,8 +61,8 @@ before_script:
tags
:
-
docker
script
:
-
eval $APT
update -qqy
-
eval $APT
install -qqy gdebi-core
-
apt-get
update -qqy
-
apt-get
install -qqy gdebi-core
-
'
gdebi
--non-interactive
build/python-${PROJECT_NAME}_*.deb'
-
apt-get purge -qqy python-${PROJECT_NAME}
...
...
@@ -99,7 +77,6 @@ test-py27:
<<
:
*test-py
image
:
python:2.7
before_script
:
-
eval $INIT_PIP_CACHE
-
pip install mock
test-py33
:
...
...
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