mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-01-11 03:11:50 +00:00
use git-lfs for test files
This commit is contained in:
3
.gitattributes
vendored
Normal file
3
.gitattributes
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
*.deb filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
7
Makefile
7
Makefile
@@ -85,10 +85,9 @@ test: prepare swagger etcd-install ## Run unit tests
|
||||
system-test: prepare swagger etcd-install ## Run system tests
|
||||
# build coverage binary
|
||||
go test -v -coverpkg="./..." -c -tags testruncli
|
||||
# Download fixture-db, fixture-pool, etcd.db
|
||||
if [ ! -e ~/aptly-fixture-db ]; then git clone https://github.com/aptly-dev/aptly-fixture-db.git ~/aptly-fixture-db/; fi
|
||||
if [ ! -e ~/aptly-fixture-pool ]; then git clone https://github.com/aptly-dev/aptly-fixture-pool.git ~/aptly-fixture-pool/; fi
|
||||
test -f ~/etcd.db || (curl -o ~/etcd.db.xz http://repo.aptly.info/system-tests/etcd.db.xz && xz -d ~/etcd.db.xz)
|
||||
# Extract fixture-db, fixture-pool, etcd.db
|
||||
test -e ~/aptly-fixture-db || tar -C ~/ -xf system/files/aptly-fixture.tar.xz
|
||||
test -f ~/etcd.db || xz -dc system/files/etcd.db.xz > ~/etcd.db
|
||||
# Run system tests
|
||||
PATH=$(BINPATH)/:$(PATH) && FORCE_COLOR=1 $(PYTHON) system/run.py --long --coverage-dir $(COVERAGE_DIR) $(CAPTURE) $(TEST)
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends curl gnupg b
|
||||
golang/bookworm-backports golang-go/bookworm-backports golang-doc/bookworm-backports golang-src/bookworm-backports \
|
||||
make git python3 python3-requests-unixsocket python3-termcolor python3-swiftclient python3-boto python3-azure-storage \
|
||||
g++ python3-etcd3 python3-plyvel graphviz devscripts sudo dh-golang binutils-i686-linux-gnu binutils-aarch64-linux-gnu \
|
||||
binutils-arm-linux-gnueabihf bash-completion zip ruby3.1-dev && \
|
||||
binutils-arm-linux-gnueabihf bash-completion zip ruby3.1-dev git-lfs && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN useradd -m --shell /bin/bash --home-dir /var/lib/aptly aptly
|
||||
@@ -16,9 +16,6 @@ RUN mkdir /work
|
||||
WORKDIR /work/src
|
||||
RUN chown aptly /work
|
||||
|
||||
RUN cd /var/lib/aptly; git clone https://github.com/aptly-dev/aptly-fixture-db.git
|
||||
RUN cd /var/lib/aptly; git clone https://github.com/aptly-dev/aptly-fixture-pool.git
|
||||
RUN cd /var/lib/aptly; curl -O http://repo.aptly.info/system-tests/etcd.db.xz && xz -d etcd.db.xz
|
||||
RUN echo "aptly ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/aptly
|
||||
ADD system/t13_etcd/install-etcd.sh /src/
|
||||
RUN /src/install-etcd.sh
|
||||
|
||||
BIN
system/files/aptly-fixture.tar.xz
LFS
Normal file
BIN
system/files/aptly-fixture.tar.xz
LFS
Normal file
Binary file not shown.
BIN
system/files/etcd.db.xz
LFS
Normal file
BIN
system/files/etcd.db.xz
LFS
Normal file
Binary file not shown.
BIN
system/t09_repo/AddRepo17Test/mesa-stable-no-march_24.2.6-101pika1_amd64.deb
LFS
Normal file
BIN
system/t09_repo/AddRepo17Test/mesa-stable-no-march_24.2.6-101pika1_amd64.deb
LFS
Normal file
Binary file not shown.
BIN
system/t09_repo/AddRepo17Test/mesa-stable_24.2.6-101pika1_amd64.deb
LFS
Normal file
BIN
system/t09_repo/AddRepo17Test/mesa-stable_24.2.6-101pika1_amd64.deb
LFS
Normal file
Binary file not shown.
Reference in New Issue
Block a user