Skip to content

Commit

Permalink
Update gitlab/travis pipilines
Browse files Browse the repository at this point in the history
  • Loading branch information
fihuer committed Jul 24, 2024
1 parent 3e9e2f1 commit 9b12f48
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 20 deletions.
30 changes: 16 additions & 14 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
build:
stage: build
script:
- autoreconf -fvi
- ./configure
- make rpm
artifacts:
paths:
- auks*rpm
variables:
GIT_SUBMODULE_STRATEGY: recursive

default:
before_script:
- docker info
- docker-compose version


# run tests using the binary built before
#test:
# stage: test
# script:
# - ./test.sh
test:
script:
- cd tests
- docker-compose build --parallel
- docker-compose up -d --force-recreate
- docker-compose exec -ti auks_server useradd -M -u 2000 auks_admin
- docker-compose exec -ti auks_server useradd -M -u 2001 auks_user
- docker-compose exec -ti auks_server useradd -M -u 2002 auks_guest
- docker-compose exec -ti auks_client bats /tests/bats/
19 changes: 13 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
services:
- docker

git:
submodules: true

language: c

os: linux
Expand All @@ -6,10 +12,11 @@ arch:
- amd64
- arm64

compiler:
- gcc

script:
- autoreconf -fvi
- ./configure
- make
- cd tests
- docker-compose build --parallel
- docker-compose up -d --force-recreate
- docker-compose exec -ti auks_server useradd -M -u 2000 auks_admin
- docker-compose exec -ti auks_server useradd -M -u 2001 auks_user
- docker-compose exec -ti auks_server useradd -M -u 2002 auks_guest
- docker-compose exec -ti auks_client bats --tap /tests/bats/

0 comments on commit 9b12f48

Please sign in to comment.