n2n/scripts
Hamish Coleman a1facf0f3f
Update Openwrt process (#900)
* First attempt at a openwrt CI

* Fix action - helps if I dont forget the syntax half way through writing it

* Try building /this/ branch for the openwrt CI

* Try a build with openssl configured

* Dont enable the n2n package until we have built the environment - makes errors easier to see and clearly related to n2n

* Attempt to speed up the openwrt build

* Upload any created ipkg packages

* Dont test with openssl for the moment

* Attempt to speed up openwrt build using a cache of the build dir

* The make defconfig run turns all the built binaries stale, so stop caching them.  Also use a real ref for the cache key

* Minor text name changes

* Address yamllint concerns

* Attempt to simplify and document missing parts of the openwrt makefile

* Attempt to fix mystery openwrt make error

* Rename build job name

* Avoid nested checkouts, use two separate dirs for the two checkouts in this build

* Move the n2n checkout to earler, allowing us to skip one defconfig run

* We are going to need working tags from the n2n repo, so ensure we unbreak the github checkout braindamage

* Calculate and save the n2n version string

* Prepare the way to pass the correct external vars into the openwrt build

* Hook calculated build variables into the openwrt package definition

* Update artifacts source to match moved checkout dir

* Pass env vars in to the make

* Allow version script to be influenced by external vars

* It will help if I use the same variable names everywhere

* Add more version variable calculation overrides

* Configure openwrt to use the external git checkout instead of their create-tar-then-extract dance

* Using the correct syntax for ifdef will help significantly

* Use as many jobs as we have cpus

* As the USE_SOURCE_DIR option allows us to use a full git checkout, we do not need to hack the version.sh to allow overrides

* Ensure scripts/version.sh works from anywhere

* Remove unneeded variables

* Update openwrt build documentation to match the new build process

* Catch failure to cd as per shellcheck suggestion

* Limit lengthy openwrt builds to manual triggers or on a release

* Also run on specially named branches

* Break list into separate lines for easier future editing
2021-11-18 21:28:50 +00:00
..
munin Add munin monitoring plugin (#892) 2021-11-05 11:14:47 +00:00
hack_fakeautoconf.sh Make all version calculations come from scripts/version.sh and remove resulting redundant substitutions 2021-11-01 19:15:23 +00:00
indent.sh Basic C Code lint checker and shell checker (#859) 2021-10-24 01:21:18 +05:45
n2n-ctl Add a sort option to the CLI n2n-ctl tool 2021-11-05 09:33:34 +00:00
n2n-gateway.sh Rename scripts for better consistancy (#866) 2021-10-24 03:58:01 +05:45
n2n-httpd fixed python JSON clients so they don't hang if the daemon does not respond (or is not even running) (#876) 2021-10-25 18:36:47 +05:45
README.md Basic C Code lint checker and shell checker (#859) 2021-10-24 01:21:18 +05:45
test_harness.sh Increase code Coverage (#897) 2021-11-10 06:02:05 +00:00
version.sh Update Openwrt process (#900) 2021-11-18 21:28:50 +00:00

This directory contains executables that are not compiled. Some of these may end up installed for use by end users, but many of them are for use during development, builds and tests.

Nothing in this directory should need compiling to use and they should be written such that they do not need configuring (e.g: they might probe several directories for their requirements)

See the Scripts Documentation for further details