-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
26 changed files
with
1,013 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
version: 2 | ||
|
||
.job_template: &job_template | ||
machine: | ||
enabled: true | ||
steps: | ||
- checkout | ||
#- attach_workspace: | ||
# at: ./ci-workspace/ | ||
- run: | ||
command: ./circle-test.sh | ||
- persist_to_workspace: | ||
root: . | ||
paths: [ 'ci-workspace' ] | ||
|
||
jobs: | ||
amd64: | ||
<<: *job_template | ||
arm64: | ||
<<: *job_template | ||
armhf: | ||
<<: *job_template | ||
armel: | ||
<<: *job_template | ||
deploy: | ||
docker: | ||
- image: circleci/python:latest | ||
steps: | ||
- setup_remote_docker: | ||
version: 18.06.0-ce | ||
- checkout | ||
- attach_workspace: | ||
at: . | ||
- run: | ||
command: ./circle-deploy.sh | ||
|
||
|
||
|
||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- amd64: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
- arm64: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
- armhf: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
- armel: | ||
filters: | ||
tags: | ||
only: /^v.*/ | ||
- deploy: | ||
requires: | ||
- amd64 | ||
- arm64 | ||
- armhf | ||
- armel | ||
filters: | ||
tags: | ||
only: /^v.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
**/*.sw* | ||
.tox | ||
.git | ||
**/__pycache__ | ||
.pipenv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env sh | ||
# alpine sh only | ||
|
||
set -eux | ||
./Dockerfile.py -v --arch="${ARCH}" --hub_tag="${ARCH_IMAGE}" | ||
# TODO: Add junitxml output and have circleci consume it | ||
# 2 parallel max b/c race condition with docker fixture (I think?) | ||
py.test -vv -n 2 -k "${ARCH}" ./test/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM docker:latest | ||
|
||
# Based on https://github.com/Ilhicas/alpine-pipenv | ||
ARG packages | ||
RUN apk --update add python3 python3-dev curl gcc make \ | ||
musl-dev libffi-dev openssl-dev ${packages} \ | ||
&& rm -rf /var/cache/apk/* \ | ||
&& pip3 install -U pip pipenv | ||
|
||
|
||
# -v "$(pwd):/$(pwd)" -w "$(pwd)" to prevent nested docker path confusion | ||
COPY ./Dockerfile.sh /usr/local/bin/ | ||
COPY Pipfile* /root/ | ||
WORKDIR /root | ||
|
||
RUN pipenv install --system \ | ||
&& sed -i 's|/bin/sh|/bin/bash|g' /usr/lib/python3.8/site-packages/testinfra/backend/docker.py | ||
|
||
|
||
RUN echo "set -ex && Dockerfile.sh && \$@" > /usr/local/bin/entrypoint.sh | ||
RUN chmod +x /usr/local/bin/entrypoint.sh | ||
ENTRYPOINT entrypoint.sh | ||
CMD Dockerfile.sh |
Oops, something went wrong.