Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Xavier Thompson
slapos.buildout
Commits
49ea5ae6
Commit
49ea5ae6
authored
May 14, 2020
by
Godefroid Chapelle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: no CI in Debian
Solution: run with Debian container on GH
parent
12fd6175
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
.github/workflows/Dockerfile-debian
.github/workflows/Dockerfile-debian
+17
-0
.github/workflows/debian.yml
.github/workflows/debian.yml
+25
-0
No files found.
.github/workflows/Dockerfile-debian
0 → 100644
View file @
49ea5ae6
FROM debian:stable-slim as debian-python
RUN apt-get update
RUN apt-get install -y make gcc openssl libffi-dev curl zlib1g-dev libssl-dev
ARG PYTHON_VER
ENV LANG C.UTF-8
RUN mkdir buildout
WORKDIR /buildout
COPY Makefile Makefile.configure /buildout/
RUN make PYTHON_VER=${PYTHON_VER} download_python
RUN make PYTHON_VER=${PYTHON_VER} python
FROM debian-python
ARG PYTHON_VER
COPY doc /buildout/doc
COPY src /buildout/src
COPY zc.recipe.egg_ /buildout/zc.recipe.egg_
COPY setup.* dev.py *.rst *.txt buildout.cfg /buildout/
RUN make PYTHON_VER=${PYTHON_VER} build
.github/workflows/debian.yml
0 → 100644
View file @
49ea5ae6
name
:
Test in Debian container
on
:
[
push
,
pull_request
]
jobs
:
build
:
runs-on
:
ubuntu-latest
strategy
:
fail-fast
:
false
matrix
:
python-version
:
[
2.7
,
3.5
,
3.6
,
3.7
,
3.8
]
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Build container with Python ${{ matrix.python-version }}
env
:
PYTHON_VER
:
${{matrix.python-version}}
run
:
|
docker build -f .github/workflows/Dockerfile-debian --tag debian_buildout:python${PYTHON_VER} --build-arg PYTHON_VER=${PYTHON_VER} .
-
name
:
Test
env
:
PYTHON_VER
:
${{matrix.python-version}}
run
:
|
docker run debian_buildout:python${PYTHON_VER} /buildout/bin/test -c -vvv
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