File: .travis.yml

package info (click to toggle)
ldapjdk 4.21.0%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 9,768 kB
  • sloc: ansic: 44,727; java: 39,519; xml: 7,420; sh: 4,237; perl: 3,774; makefile: 1,681; cpp: 979
file content (41 lines) | stat: -rw-r--r-- 1,257 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# BEGIN COPYRIGHT BLOCK
# (C) 2018 Red Hat, Inc.
# All rights reserved.
# END COPYRIGHT BLOCK

services:
  - docker

env:
  - FEDORA=29
  - FEDORA=30

install:
  - docker pull registry.fedoraproject.org/fedora:$FEDORA
  - docker run
      --name container
      --hostname server.example.com
      --tmpfs /tmp
      --tmpfs /run
      --volume /sys/fs/cgroup:/sys/fs/cgroup:ro
      --volume $(pwd):/root/ldapjdk
      --detach
      -i
      registry.fedoraproject.org/fedora:$FEDORA
      "/usr/sbin/init"
  - docker exec container /root/ldapjdk/travis/container-init.sh
  - docker exec container dnf install -y dnf-plugins-core rpm-build
  - docker exec container dnf copr -y enable @pki/master
  - docker exec container dnf builddep -y --spec /root/ldapjdk/ldapjdk.spec
  - docker exec container /root/ldapjdk/build.sh --with-timestamp --with-commit-id rpm
  - docker exec container rpm -Uvh /root/build/ldapjdk/RPMS/*
  - docker exec container dnf install -y 389-ds-base 389-ds-base-legacy-tools

script:
  - docker exec container /root/ldapjdk/travis/ds-create.sh
  - docker exec container /root/ldapjdk/travis/tools-test.sh
  - docker exec container /root/ldapjdk/travis/ds-remove.sh

after_script:
  - docker kill container
  - docker rm container