Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EdosL0Util
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SIPS
EdosL0Util
Commits
809f379c
Commit
809f379c
authored
5 years ago
by
Bruce Flynn
Browse files
Options
Downloads
Patches
Plain Diff
ci tweaks
parent
62057cb6
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.dockerignore
+7
-0
7 additions, 0 deletions
.dockerignore
.gitlab-ci.yml
+4
-2
4 additions, 2 deletions
.gitlab-ci.yml
tests/Dockerfile
+29
-0
29 additions, 0 deletions
tests/Dockerfile
tests/run_ci.sh
+0
-3
0 additions, 3 deletions
tests/run_ci.sh
tests/run_tests.sh
+21
-0
21 additions, 0 deletions
tests/run_tests.sh
with
61 additions
and
5 deletions
.dockerignore
0 → 100644
+
7
−
0
View file @
809f379c
build
dist
*.egg-info
.eggs
.pytest_cache
./tests/fixtures/*
./tests/__pycache__
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
4
−
2
View file @
809f379c
test-py2
:
stage
:
test
tags
:
[
"
docker"
,
"
shell"
]
script
:
-
./tests/run_
ci
.sh
2
-
./tests/run_
tests
.sh
2
test-py3
:
stage
:
test
tags
:
[
"
docker"
,
"
shell"
]
script
:
-
./tests/run_
ci
.sh
3
-
./tests/run_
tests
.sh
3
sdist
:
stage
:
deploy
...
...
This diff is collapsed.
Click to expand it.
tests/Dockerfile
0 → 100644
+
29
−
0
View file @
809f379c
FROM
debian:bullseye-slim
ARG
pytag="3"
# Install basic system/python requirements
RUN
apt-get
-qq
update
&&
apt-get
-qq
install
\
gcc
\
git
\
python
${
pytag
}
-dev
\
python
${
pytag
}
-minimal
\
python
${
pytag
}
-pip
\
python
${
pytag
}
-setuptools
&&
\
apt-get clean
-y
&&
\
rm
-rf
/var/lib/apt/lists/
*
# Install basic system/python requirements
RUN
apt-get
-qq
update
&&
apt-get
-qq
install
\
postgresql-client
&&
\
apt-get clean
-y
&&
\
rm
-rf
/var/lib/apt/lists/
*
ENV
PIP_TRUSTED_HOST "iweb1.sips"
ENV
PIP_NO_CACHE_DIR "false"
ENV
LC_ALL C.UTF-8
ENV
LANG C.UTF-8
WORKDIR
/code
COPY
. .
RUN
pip
${
pytag
}
install
-i
https://iweb1.sips/eggs
--trusted-host
=
iweb1.sips
-e
".[testing]"
This diff is collapsed.
Click to expand it.
tests/run_ci.sh
deleted
100755 → 0
+
0
−
3
View file @
62057cb6
#!/usr/bin/env bash
ver
=
${
1
:-
3
}
docker run
--rm
-v
$PWD
:/code
-w
/code python:
${
ver
}
/code/tests/run.sh
This diff is collapsed.
Click to expand it.
tests/run_tests.sh
0 → 100755
+
21
−
0
View file @
809f379c
#!/usr/bin/env bash
set
-e
ver
=
$1
[[
!
"
$ver
"
=
~
(
2|3
)
]]
&&
echo
"Must provided 2 or 3 as python version"
&&
exit
1
tag
=
$ver
if
[[
$ver
==
2
]]
;
then
tag
=
""
fi
image
=
edosl0util
${
ver
}
docker build
-t
${
image
}
-f
tests/Dockerfile
--build-arg
=
pytag
=
${
tag
}
.
docker run
\
-e
PYTHONDONTWRITEBYTECODE
=
1
\
-e
HOME
=
/code
\
-v
$PWD
:/code
\
-u
$(
id
-u
)
:
$(
id
-g
)
\
-w
/code
\
${
image
}
\
py.test
-xv
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment