2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 09:58:09 +00:00

CI: rename 'travis' to 'ci'

CRIU is already using multiple CI systems and not just Travis. This
renames all Travis related things to 'ci' to show it is actually
independent of Travis.

Just a simple rename.

Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
Adrian Reber 2020-11-03 10:18:02 +00:00 committed by Andrei Vagin
parent f68da4a86f
commit e7cbeddff3
24 changed files with 39 additions and 39 deletions

View File

@ -19,4 +19,4 @@ jobs:
ref: ${{ matrix.branches }}
- name: Run Cross Compilation Targets
run: >
sudo make -C scripts/travis ${{ matrix.target }}
sudo make -C scripts/ci ${{ matrix.target }}

View File

@ -19,4 +19,4 @@ jobs:
ref: ${{ matrix.branches }}
- name: Run Cross Compilation Targets
run: >
sudo make -C scripts/travis ${{ matrix.target }}
sudo make -C scripts/ci ${{ matrix.target }}

View File

@ -18,4 +18,4 @@ jobs:
- uses: actions/checkout@v2
- name: Run Cross Compilation Targets
run: >
sudo make -C scripts/travis ${{ matrix.target }}
sudo make -C scripts/ci ${{ matrix.target }}

View File

@ -14,4 +14,4 @@ jobs:
- uses: actions/checkout@v2
- name: Run Cross Compilation Targets
run: >
sudo make -C scripts/travis ${{ matrix.target }}
sudo make -C scripts/ci ${{ matrix.target }}

View File

@ -94,7 +94,7 @@ jobs:
- env: TR_ARCH=fedora-rawhide
- env: TR_ARCH=local GCOV=1
script:
- sudo make CCACHE=1 -C scripts/travis $TR_ARCH
- sudo make CCACHE=1 -C scripts/ci $TR_ARCH
after_success:
- ccache -s
- make -C scripts/travis after_success
- make -C scripts/ci after_success

View File

@ -401,7 +401,7 @@ lint:
flake8 --config=scripts/flake8.cfg test/others/rpc/config_file.py
flake8 --config=scripts/flake8.cfg lib/py/images/pb2dict.py
shellcheck scripts/*.sh
shellcheck scripts/travis/*.sh scripts/travis/travis* scripts/travis/apt-install
shellcheck scripts/ci/*.sh scripts/ci/apt-install
include Makefile.install

View File

@ -1,6 +1,6 @@
FROM dockcross/base:latest
COPY scripts/travis/apt-install /bin/apt-install
COPY scripts/ci/apt-install /bin/apt-install
# Add the cross compiler sources
RUN echo "deb http://ftp.us.debian.org/debian/ buster main" >> /etc/apt/sources.list && \

View File

@ -1,6 +1,6 @@
FROM dockcross/base:latest
COPY scripts/travis/apt-install /bin/apt-install
COPY scripts/ci/apt-install /bin/apt-install
# Add the cross compiler sources
RUN echo "deb http://ftp.us.debian.org/debian/ buster main" >> /etc/apt/sources.list && \

View File

@ -1,7 +1,7 @@
ARG CC=gcc
ARG ENV1=FOOBAR
COPY scripts/travis/apt-install /bin/apt-install
COPY scripts/ci/apt-install /bin/apt-install
RUN apt-install \
ccache \

View File

@ -1,6 +1,6 @@
FROM dockcross/base:latest
COPY scripts/travis/apt-install /bin/apt-install
COPY scripts/ci/apt-install /bin/apt-install
# Add the cross compiler sources
RUN echo "deb http://ftp.us.debian.org/debian/ buster main" >> /etc/apt/sources.list && \

View File

@ -1,6 +1,6 @@
FROM adoptopenjdk/openjdk8-openj9:latest
COPY scripts/travis/apt-install /bin/apt-install
COPY scripts/ci/apt-install /bin/apt-install
RUN apt-install protobuf-c-compiler \
libprotobuf-c-dev \

View File

@ -1,6 +1,6 @@
FROM dockcross/base:latest
COPY scripts/travis/apt-install /bin/apt-install
COPY scripts/ci/apt-install /bin/apt-install
# Add the cross compiler sources
RUN echo "deb http://ftp.us.debian.org/debian/ buster main" >> /etc/apt/sources.list && \

View File

@ -1,7 +1,7 @@
ARG CC=gcc
ARG ENV1=FOOBAR
COPY scripts/travis/apt-install /bin/apt-install
COPY scripts/ci/apt-install /bin/apt-install
RUN apt-install \
ccache \

View File

@ -1,5 +1,5 @@
FROM ubuntu:xenial
COPY scripts/travis/apt-install /bin/apt-install
COPY scripts/ci/apt-install /bin/apt-install
RUN apt-install gcc-multilib

View File

@ -1,9 +1,9 @@
local:
./travis-tests
./run-ci-tests.sh
.PHONY: local
after_success:
./travis-after_success
./ci-after-success.sh
.PHONY: after_success
target-suffix =
@ -46,11 +46,11 @@ restart-docker:
$(TARGETS): restart-docker
$(MAKE) -C ../build $@$(target-suffix)
docker run --env-file docker.env $(CONTAINER_OPTS) criu-$@ scripts/travis/travis-tests
docker run --env-file docker.env $(CONTAINER_OPTS) criu-$@ scripts/ci/run-ci-tests.sh
fedora-asan: restart-docker
$(MAKE) -C ../build $@$(target-suffix)
docker run -it $(CONTAINER_OPTS) criu-$@ ./scripts/travis/asan.sh $(ZDTM_OPTIONS)
docker run -it $(CONTAINER_OPTS) criu-$@ ./scripts/ci/asan.sh $(ZDTM_OPTIONS)
docker-test:
./docker-test.sh

View File

@ -32,9 +32,9 @@ fi
service docker restart
export SKIP_TRAVIS_TEST=1
export SKIP_CI_TEST=1
./travis-tests
./run-ci-tests.sh
cd ../../

View File

@ -1,4 +1,4 @@
SKIP_TRAVIS_PREP=1
SKIP_CI_PREP=1
ZDTM_OPTS=-x zdtm/static/binfmt_misc -x zdtm/static/sched_policy00
CC=gcc
SKIP_EXT_DEV_TEST=1

View File

@ -17,9 +17,9 @@ apt-get -y purge docker-ce
./apt-install podman containernetworking-plugins
export SKIP_TRAVIS_TEST=1
export SKIP_CI_TEST=1
./travis-tests
./run-ci-tests.sh
cd ../../

View File

@ -1,7 +1,7 @@
#!/bin/bash
set -x -e
TRAVIS_PKGS="protobuf-c-compiler libprotobuf-c-dev libaio-dev libgnutls28-dev
CI_PKGS="protobuf-c-compiler libprotobuf-c-dev libaio-dev libgnutls28-dev
libgnutls30 libprotobuf-dev protobuf-compiler libcap-dev
libnl-3-dev gdb bash libnet-dev util-linux asciidoctor
libnl-route-3-dev time ccache flake8 libbsd-dev"
@ -15,10 +15,10 @@ if [ -e /etc/lsb-release ]; then
# There is one last test running on 16.04 because of the broken
# overlayfs in 18.04. Once that is fixed we can remove the last
# 16.04 based test and this if clause.
TRAVIS_PKGS="$TRAVIS_PKGS python-future python-protobuf python-yaml
CI_PKGS="$CI_PKGS python-future python-protobuf python-yaml
python-junit.xml python-ipaddress"
else
TRAVIS_PKGS="$TRAVIS_PKGS python3-future python3-protobuf python3-yaml
CI_PKGS="$CI_PKGS python3-future python3-protobuf python3-yaml
python3-junit.xml"
fi
fi
@ -31,11 +31,11 @@ if [ "$UNAME_M" != "x86_64" ]; then
# For Travis only x86_64 seems to be baremetal. Other
# architectures are running in unprivileged LXD containers.
# That seems to block most of CRIU's interfaces.
SKIP_TRAVIS_TEST=1
SKIP_CI_TEST=1
fi
travis_prep () {
[ -n "$SKIP_TRAVIS_PREP" ] && return
ci_prep () {
[ -n "$SKIP_CI_PREP" ] && return
cd ../../
@ -50,13 +50,13 @@ travis_prep () {
CC=gcc
# clang support
if [ "$CLANG" = "1" ]; then
TRAVIS_PKGS="$TRAVIS_PKGS clang"
CI_PKGS="$CI_PKGS clang"
CC=clang
fi
[ -n "$GCOV" ] && {
apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
scripts/travis/apt-install --no-install-suggests g++-7
scripts/ci/apt-install --no-install-suggests g++-7
CC=gcc-7
}
@ -72,10 +72,10 @@ travis_prep () {
# Do not install x86_64 specific packages on other architectures
if [ "$UNAME_M" = "x86_64" ]; then
TRAVIS_PKGS="$TRAVIS_PKGS $X86_64_PKGS"
CI_PKGS="$CI_PKGS $X86_64_PKGS"
fi
scripts/travis/apt-install "$TRAVIS_PKGS"
scripts/ci/apt-install "$CI_PKGS"
chmod a+x "$HOME"
# zdtm uses an unversioned python binary to run the tests.
@ -91,7 +91,7 @@ test_stream() {
./test/zdtm.py run --stream -p 2 --keep-going -T "$STREAM_TEST_PATTERN" $ZDTM_OPTS
}
travis_prep
ci_prep
export GCOV
$CC --version
@ -107,7 +107,7 @@ if [ "$WIDTH" -gt 80 ]; then
exit 1
fi
[ -n "$SKIP_TRAVIS_TEST" ] && exit 0
[ -n "$SKIP_CI_TEST" ] && exit 0
ulimit -c unlimited
@ -133,7 +133,7 @@ if [ "${COMPAT_TEST}x" = "yx" ] ; then
done
# shellcheck disable=SC2086
apt-get remove $INCOMPATIBLE_LIBS
scripts/travis/apt-install "$IA32_PKGS"
scripts/ci/apt-install "$IA32_PKGS"
mkdir -p /usr/lib/x86_64-linux-gnu/
mv "$REFUGE"/* /usr/lib/x86_64-linux-gnu/
fi