nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit fb2b0571a7c09a140188b4442c42fcc74cc1963a
parent de6a762737e86ae714b38d5323b9d5c9237f9a8b
Author: Alan Post <adp@prgmr.com>
Date:   Sat, 20 Jul 2019 13:35:33 -0600

CI: build & package before creating user accounts.

Move the build to before we create qmail system accounts, verifying
the compile works without them.  Do a trial package in to a non-
root owned directory along with a package build as root in to
/var/qmail.

After creating qmail system accounts, run instchown over the prior
package build, then remove the install and redo it using the regular
install program.

This tests that the build and package step can be done without qmail
system accounts.

Diffstat:
M.travis.yml | 9+++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/.travis.yml b/.travis.yml @@ -4,6 +4,10 @@ compiler: - gcc - clang script: + - echo "${CC} -O2 -Wall" > conf-cc + - make it man + - env DESTDIR=/tmp/qmail make package + - sudo make package - sudo groupadd -g 200 nofiles - sudo groupadd -g 201 qmail - sudo useradd -u 200 -g 200 -d /var/qmail/alias alias @@ -13,6 +17,7 @@ script: - sudo useradd -u 204 -g 201 -d /var/qmail qmailq - sudo useradd -u 205 -g 201 -d /var/qmail qmailr - sudo useradd -u 206 -g 201 -d /var/qmail qmails - - echo "${CC} -O2 -Wall" > conf-cc - - make + - sudo ./instchown + - sudo make check + - sudo rm -rf /var/qmail - sudo make setup check