-
-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1386 from aptly-dev/fix/add-provided-package
Fix/add provided package
- Loading branch information
Showing
20 changed files
with
138 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,22 +68,16 @@ following [PR template](.github/PULL_REQUEST_TEMPLATE.md). | |
Make sure that purpose of your change is clear, all the tests and checks pass, and all new code is covered with tests | ||
if that is possible. | ||
|
||
### Forking and Cloning | ||
### Get the Source | ||
|
||
As aptly is using Go modules, aptly repository could be cloned to any location on the file system: | ||
|
||
git clone [email protected]:aptly-dev/aptly.git | ||
cd aptly | ||
|
||
For main repo under your GitHub user and add it as another Git remote: | ||
|
||
git remote add <user> [email protected]:<user>/aptly.git | ||
|
||
That way you can continue to build project as is (you don't need to adjust import paths), but you would need | ||
to specify your remote name when pushing branches: | ||
|
||
git push <user> <your-branch> | ||
Make sure git with LFS support ist installed. | ||
|
||
To clone the git repo, run the following commands: | ||
``` | ||
git clone [email protected]:aptly-dev/aptly.git | ||
cd aptly | ||
git lfs checkout | ||
``` | ||
|
||
## Development Setup | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|
||
|
@@ -100,7 +99,7 @@ serve: prepare swagger-install ## Run development server (auto recompiling) | |
test -f $(BINPATH)/air || go install github.com/air-verse/[email protected] | ||
cp debian/aptly.conf ~/.aptly.conf | ||
sed -i /enableSwaggerEndpoint/s/false/true/ ~/.aptly.conf | ||
PATH=$(BINPATH):$$PATH air -build.pre_cmd 'swag init -q --markdownFiles docs' -build.exclude_dir docs,system,debian,pgp/keyrings,pgp/test-bins,completion.d,man,deb/testdata,console,_man,cmd,systemd,obj-x86_64-linux-gnu -- api serve -listen 0.0.0.0:3142 | ||
PATH=$(BINPATH):$$PATH air -build.pre_cmd 'swag init -q --markdownFiles docs' -build.exclude_dir docs,system,debian,pgp/keyrings,pgp/test-bins,completion.d,man,deb/testdata,console,_man,systemd,obj-x86_64-linux-gnu -- api serve -listen 0.0.0.0:3142 | ||
|
||
dpkg: prepare swagger ## Build debian packages | ||
@test -n "$(DEBARCH)" || (echo "please define DEBARCH"; exit 1) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.