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 cc89051
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 18 deletions.
39 changes: 27 additions & 12 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,31 @@
variables:
GIT_SUBMODULE_STRATEGY: recursive

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

stages:
- build
- launch
- test

build:
stage: build
script:
- autoreconf -fvi
- ./configure
- make rpm
artifacts:
paths:
- auks*rpm
- cd tests
- docker-compose build --parallel

launch:
script:
- cd tests
- docker-compose up -d
- 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

test:
script:
- cd tests
- docker-compose exec -ti auks_client bats --tap /tests/bats/

# run tests using the binary built before
#test:
# stage: test
# script:
# - ./test.sh
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
- 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 cc89051

Please sign in to comment.