Disable Travis CI.

- Remove .travis.yml, common/travis/docker.sh.
- Change references to travis to be more generic.
- Manual.md: Orient against using CI logs in broken= or nocross=.
This commit is contained in:
Érico Rolim 2020-11-16 23:42:30 -03:00 committed by Johannes
parent 387bd1f59f
commit d6c8f1b99e
5 changed files with 4 additions and 65 deletions

View File

@ -1,41 +0,0 @@
language: bash
dist: bionic
git:
depth: 200
env:
global:
- PATH=$PATH:/tmp/bin
- DOCKER_BASE=voidlinux/masterdir
- TAG=20200607RC01
matrix:
- XLINT=1 LICENSE_LIST=common/travis/license.lst
- ARCH=x86_64 BOOTSTRAP=x86_64
- ARCH=i686 BOOTSTRAP=i686
- ARCH=aarch64 BOOTSTRAP=x86_64
- ARCH=armv7l BOOTSTRAP=x86_64
- ARCH=x86_64-musl BOOTSTRAP=x86_64-musl
- ARCH=armv6l-musl BOOTSTRAP=x86_64-musl
- ARCH=aarch64-musl BOOTSTRAP=x86_64-musl
install:
- common/travis/docker.sh
before_script:
- common/travis/set_mirror.sh
- common/travis/prepare.sh
- common/travis/fetch_upstream.sh
- common/travis/changed_templates.sh
- common/travis/fetch-xtools.sh
- common/travis/xlint.sh
script:
- if [ -z "$XLINT" ]; then docker exec -t void hostrepo/common/travis/build.sh $BOOTSTRAP $ARCH; fi
after_script:
- if [ -z "$XLINT" ]; then docker exec -t void hostrepo/common/travis/show_files.sh $BOOTSTRAP $ARCH; fi
notifications:
email: false

View File

@ -631,8 +631,7 @@ in /usr/share directory specified by absolute path, which are expected and allow
specified by absolute path, which are expected and allowed to contain machine code files. specified by absolute path, which are expected and allowed to contain machine code files.
- `nocross` If set, cross compilation won't be allowed and will exit immediately. - `nocross` If set, cross compilation won't be allowed and will exit immediately.
This should be set to a string describing why it fails, or a link to a travis This should be set to a string describing why it fails, or a link to a buildlog (from the official builders, CI buildlogs can vanish) demonstrating the failure.
buildlog demonstrating the failure.
- `restricted` If set, xbps-src will refuse to build the package unless - `restricted` If set, xbps-src will refuse to build the package unless
`etc/conf` has `XBPS_ALLOW_RESTRICTED=yes`. The primary builders for Void `etc/conf` has `XBPS_ALLOW_RESTRICTED=yes`. The primary builders for Void
@ -645,8 +644,7 @@ to override the guessed list. Only use this if a specific order of subpackages i
otherwise the default would work in most cases. otherwise the default would work in most cases.
- `broken` If set, building the package won't be allowed because its state is currently broken. - `broken` If set, building the package won't be allowed because its state is currently broken.
This should be set to a string describing why it is broken, or a link to a travis This should be set to a string describing why it is broken, or a link to a buildlog demonstrating the failure.
buildlog demonstrating the failure.
- `shlib_provides` A white space separated list of additional sonames the package provides on. - `shlib_provides` A white space separated list of additional sonames the package provides on.
This appends to the generated file rather than replacing it. This appends to the generated file rather than replacing it.

View File

@ -48,7 +48,7 @@ into a `masterdir` that is used as its main `chroot` directory. `xbps-src` suppo
multiple utilities to accomplish this task: multiple utilities to accomplish this task:
- `bwrap` - bubblewrap, see https://github.com/projectatomic/bubblewrap. - `bwrap` - bubblewrap, see https://github.com/projectatomic/bubblewrap.
- `ethereal` - only useful for one-shot containers, i.e docker (used with travis). - `ethereal` - only useful for one-shot containers, i.e docker (used with CI).
- `xbps-uunshare(1)` - XBPS utility that uses `user_namespaces(7)` (part of xbps, default). - `xbps-uunshare(1)` - XBPS utility that uses `user_namespaces(7)` (part of xbps, default).
- `xbps-uchroot(1)` - XBPS utility that uses `namespaces` and must be `setgid` (part of xbps). - `xbps-uchroot(1)` - XBPS utility that uses `namespaces` and must be `setgid` (part of xbps).
- `proot(1)` - utility that implements chroot/bind mounts in user space, see https://proot-me.github.io/. - `proot(1)` - utility that implements chroot/bind mounts in user space, see https://proot-me.github.io/.

View File

@ -1,18 +0,0 @@
#!/bin/sh
#
# docker.sh
[ "$XLINT" ] && exit 0
DOCKER_NAME=${DOCKER_NAME:-void}
/bin/echo -e "\x1b[32mPulling docker image $DOCKER_BASE-$BOOTSTRAP:$TAG...\x1b[0m"
docker pull $DOCKER_BASE-$BOOTSTRAP:$TAG
docker run -d \
--name $DOCKER_NAME \
-v "$(pwd)":/hostrepo \
-v /tmp:/tmp \
-e XLINT="$XLINT" \
-e PATH="$PATH" \
$DOCKER_BASE-$BOOTSTRAP:$TAG \
/bin/sh -c 'sleep inf'

View File

@ -486,7 +486,7 @@ if [ -z "$IN_CHROOT" ]; then
fi fi
# Forbid root unless XBPS_ALLOW_CHROOT_BREAKOUT is set # Forbid root unless XBPS_ALLOW_CHROOT_BREAKOUT is set
# (for travis CI). # (for CI).
if [ -z "$IN_CHROOT" -a "$UID" -eq 0 -a -z "$XBPS_ALLOW_CHROOT_BREAKOUT" ]; then if [ -z "$IN_CHROOT" -a "$UID" -eq 0 -a -z "$XBPS_ALLOW_CHROOT_BREAKOUT" ]; then
echo "ERROR: xbps-src cannot be used as root." 1>&2 echo "ERROR: xbps-src cannot be used as root." 1>&2
exit 1 exit 1