forked from openwrt/packages
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Add local feed for CI-built packages
To test each package, the CI-built target package (ipk) file is installed, but currently the target package's dependencies are installed from the standard opkg feeds. There are cases when the CI-built target packages should be installed/tested together: * If a pull request contains several new packages that depend on each other, the test step will fail as the new dependencies cannot be found in the current packages feed. * If a pull request upgrades a source package that builds several target packages that depend on each other, the test step may fail due to the version/ABI mismatch between a newer target package and the older dependencies installed from the packages feed. This sets up a local feed for the CI-built packages so that dependencies are also installed from the same set of packages. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
- Loading branch information
Showing
4 changed files
with
69 additions
and
4 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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=test-bar | ||
PKG_VERSION:=1.0.0 | ||
PKG_RELEASE:=1 | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/test-bar | ||
SUBMENU:=Compression | ||
SECTION:=utils | ||
CATEGORY:=Utilities | ||
URL:=https://example.com | ||
TITLE:=test-bar | ||
endef | ||
|
||
Build/Compile:=: | ||
|
||
define Package/test-bar/install | ||
touch $(1)/test-bar | ||
endef | ||
|
||
$(eval $(call BuildPackage,test-bar)) |
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,24 @@ | ||
include $(TOPDIR)/rules.mk | ||
|
||
PKG_NAME:=test-foo | ||
PKG_VERSION:=1.0.0 | ||
PKG_RELEASE:=1 | ||
|
||
include $(INCLUDE_DIR)/package.mk | ||
|
||
define Package/test-foo | ||
SUBMENU:=Compression | ||
SECTION:=utils | ||
CATEGORY:=Utilities | ||
URL:=https://example.com | ||
TITLE:=test-foo | ||
DEPENDS:=+test-bar | ||
endef | ||
|
||
Build/Compile:=: | ||
|
||
define Package/test-foo/install | ||
touch $(1)/test-foo | ||
endef | ||
|
||
$(eval $(call BuildPackage,test-foo)) |