Using our CircleCI Docker images for integration testing
@thess is already working on this.
Since Dec 19, 2018.
- Dominant language
- Makefile
- Stars
- 4.6k
- Forks
- 4k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 134
Description
I have put together a couple of bash scripts to setup and use the Docker OpenWrt integration test environment along the lines of our current CircleCI 'buildpr' check.
If you don't have Docker installed, you must first do that. It should be available for your distro. (I have only tested this on Ubuntu 18.04/bionic with Docker.io)
There are 2 scripts (attached ci-testing.zip) - You can customize the shell variables defined at the top of each for your specific environment. Ex: location of build-root, package-tree, SDK location and branch selection, etc.. Normally, these scripts are located in your OpenWrt buildroot.
The first script docker-startup launches the Docker image from our public repository and maps your package source tree into the container. It then copies the 2nd script into /home/build directory and then enters the running container.
The second script build-package will download the SDK, un-pack it and setup a single package build using a nearly identical procedure as the CircleCI integration check. Upon entering the Docker container, you can:
cd /home/build
./build-package <package-name>
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.