Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
drone-cloud-testcase/.drone.star
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
46 lines (45 sloc)
1.07 KB
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
| def get_steps_workaround(): | |
| return [ | |
| "cp -v tar /usr/local/bin/tar", | |
| "dpkg-architecture", | |
| "dpkg --fsys-tarfile /drone/src/*.deb | (cd / ; tar xf - )", | |
| "date -R", | |
| "ls .", | |
| "apt update", | |
| "apt install --yes strace", | |
| "strace apt update 2>&1 | grep -i syscall", | |
| ] | |
| def main(context): | |
| return [ | |
| { | |
| "kind" : "pipeline", | |
| "name" : "%s-%s" % (image, architecture), | |
| "type" : "docker", | |
| "platform" : { | |
| "os" : "linux", | |
| "arch" : architecture, | |
| }, | |
| "steps" : [ | |
| { | |
| "name" : "test", | |
| "image" : image if not image == "workaround" else "quay.io/hybrismobian/build-essential:bullseye-armhf", | |
| "commands" : get_steps_workaround() if image == "workaround" else [ | |
| "uname -a", | |
| "date -R", | |
| "apt update", | |
| ] | |
| }, | |
| ], | |
| } | |
| for image, architecture in [ | |
| # ("debian:buster", "arm64"), | |
| # ("debian:buster", "arm"), | |
| # ("debian:bullseye", "arm64"), | |
| # ("debian:bullseye", "arm"), | |
| # ("ubuntu:bionic", "arm64"), | |
| # ("ubuntu:bionic", "arm"), | |
| # ("ubuntu:focal", "arm64"), | |
| # ("ubuntu:focal", "arm"), | |
| ("workaround", "arm"), | |
| ] | |
| ] |