Skip to content

Commit

Permalink
Do not install ci scripts into bin/
Browse files Browse the repository at this point in the history
  • Loading branch information
felixsch committed Feb 5, 2024
1 parent ebed7b5 commit 9d8854e
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 38 deletions.
49 changes: 25 additions & 24 deletions .github/workflows/features.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

name: RMT feature tests

on:
pull_request:
branches: [master]
Expand All @@ -10,39 +10,40 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: /usr/src/rmt-server
container:
image: registry.opensuse.org/systemsmanagement/scc/containers/15.5/rmt-ci-container:latest
options: --user root
services:
mysql:
image: mysql:5.7
env:
MYSQL_DATABASE: rmt_features
MYSQL_USER: rmt
MYSQL_PASSWORD: rmt
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
# services:
# mysql:
# image: mysql:5.7
# env:
# MYSQL_DATABASE: rmt_features
# MYSQL_USER: rmt
# MYSQL_PASSWORD: rmt
# MYSQL_ROOT_PASSWORD: root
# ports:
# - 3306:3306
# options: >-
# --health-cmd="mysqladmin ping"
# --health-interval=10s
# --health-timeout=5s
# --health-retries=3
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: build rpm
- name: copy checkout to /usr/src/rmt-server
run: |
rmt-build-rpm
cp -r $GITHUB_WORKSPACE/* /usr/src/rmt-server
- name: configure rmt
run: |
rmt-configure
- name: install depdendencies
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
self-hosted: true

- name: run feature tests
- name: build rpm
run: |
rmt-run-feature-tests
bash ci/rmt-build-rpm
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ clean:
rm -rf $(NAME)-$(VERSION)/

man:
bundle exec ronn --roff --pipe --manual RMT MANUAL.md > rmt-cli.8 && gzip -f rmt-cli.8
ronn --roff --pipe --manual RMT MANUAL.md > rmt-cli.8 && gzip -f rmt-cli.8
mv rmt-cli.8.gz package/obs

dist: clean man
Expand Down
14 changes: 1 addition & 13 deletions ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,9 @@ RUN zypper --non-interactive in make chrpath fdupes gcc libcurl-devel libffi-dev
RUN update-alternatives --install /usr/bin/bundle bundle /usr/bin/bundle.ruby2.5 5 && \
update-alternatives --install /usr/bin/bundler bundler /usr/bin/bundler.ruby2.5 5

VOLUME /usr/src/rmt-server
VOLUME /usr/
RUN mkdir /usr/src/rmt-server

ARG SCC_USERNAME
ARG SCC_PASSWORD

# Prepare ruby environment
ENV NOKOGIRI_USE_SYSTEM_LIBRARIES 1

# Add rmt ci/development scripts
RUN mkdir -p /usr/src/rmt-server /usr/local/bin

COPY rmt-build-rpm /usr/local/bin/
COPY rmt-configure /usr/local/bin/
COPY rmt-console /usr/local/bin/
COPY rmt-run-feature-tests /usr/local/bin/

WORKDIR /usr/src/rmt-server

0 comments on commit 9d8854e

Please sign in to comment.