openwrt / openwrt/packages

Using our CircleCI Docker images for integration testing

Open
#7,735 5 comments 0 reactions 1 assignee View on GitHub

@thess is already working on this.

Since Dec 19, 2018.

GitHub/CI stale
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>

ci-testing.zip

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.