-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dockerfile for openSUSE Tumbleweed
- Loading branch information
Showing
4 changed files
with
56 additions
and
8 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,19 @@ | ||
name: CI on openSUSE Tumbleweed | ||
|
||
on: | ||
push: | ||
branches: [main, develop] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: "Run tests" | ||
run: test/run -p opensuse-tumbleweed |
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,27 @@ | ||
FROM opensuse/tumbleweed:latest AS base | ||
WORKDIR /usr/local/opt/pw | ||
COPY DEPENDENCIES.md . | ||
RUN zypper --non-interactive install --no-recommends \ | ||
$(cat DEPENDENCIES.md) \ | ||
file \ | ||
gawk \ | ||
gnu_parallel \ | ||
xclip \ | ||
xorg-x11-server-Xvfb \ | ||
&& zypper clean -a \ | ||
&& rm -rf /var/cache/zypp/* | ||
|
||
FROM base AS pw | ||
WORKDIR /usr/local/opt/pw | ||
COPY src src | ||
COPY plugins plugins | ||
COPY version.txt . | ||
RUN ln -s /usr/local/opt/pw/src/pw /usr/local/bin/pw | ||
WORKDIR /root | ||
COPY docker/docker-entrypoint.sh /usr/local/bin/ | ||
ENTRYPOINT ["docker-entrypoint.sh"] | ||
|
||
FROM pw AS test | ||
WORKDIR /usr/local/opt/pw | ||
COPY test test | ||
RUN test/bats/bin/bats --jobs $(nproc) 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