Skip to content

Commit

Permalink
chore: removed mentions of travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergei Kuvakin authored and lafin committed Dec 12, 2020
1 parent 2c61de4 commit 14bec10
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 47 deletions.
47 changes: 4 additions & 43 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,53 +10,14 @@ Your contributions such as reporting a bug and sending pull-request are very wel
## How to send pull-request

1. Fork the repository: https://github.com/multiarch/qemu-user-static . Ex. https://github.com/junaruga/qemu-user-static
2. This repository is using Travis CI. You can test your modified code on your forked repository before sending a pull-requeste. Go to https://travis-ci.org/your_account_name/qemu-user-static , then enable Travis. Ex. https://travis-ci.org/junaruga/qemu-user-static
2. This repository is using Github Actions. You can test your modified code on your forked repository before sending a pull-requeste.
3. If you want to test pushing created container images,
* You need to have your own container repository such as DockerHub or Quay.io. Ex. https://quay.io/repository/junaruga/qemu-user-static
* You need to set environment variables `DOCKER_USERNAME` and `DOCKER_PASSWORD` on your repository's Travis CI Settings page. Please remember it is better to set `DOCKER_PASSWORD` without displaying the value for your security.
![Forked repository's Travis CI Settings](docs/images/forked-repo-travis-ci-settings.png)

* You need to set environment variables `DOCKER_USERNAME` and `DOCKER_PASSWORD` on your repository's Settings page. Please remember it is better to set `DOCKER_PASSWORD` without displaying the value for your security.
4. You also need to have your https://quay.io/repository/junaruga/qemu-user-static
5. You need to edit `.travis.yml` with your container repository. This step can be improved in the future.
5. You need to edit `.github/workflows/actions.yml` with your container repository. This step can be improved in the future.
6. Below is an example of how to test with your container repository.

```
$ git diff
diff --git a/.travis.yml b/.travis.yml
index 79ca070..edee35e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -15,13 +15,13 @@ env:
- VERSION=4.0.0-5
# See qemu-user-static's RPM spec file on Fedora to check the new version.
# https://src.fedoraproject.org/rpms/qemu/blob/master/f/qemu.spec
- - DOCKER_SERVER=docker.io
- # - DOCKER_SERVER=quay.io
+ # - DOCKER_SERVER=docker.io
+ - DOCKER_SERVER=quay.io
# Git repository
- REPO=multiarch/qemu-user-static
# Container repository
- - DOCKER_REPO=$DOCKER_SERVER/multiarch/qemu-user-static
- # - DOCKER_REPO=$DOCKER_SERVER/your_username/qemu-user-static
+ # - DOCKER_REPO=$DOCKER_SERVER/multiarch/qemu-user-static
+ - DOCKER_REPO=$DOCKER_SERVER/junaruga/qemu-user-static
- PACKAGE_URI="https://kojipkgs.fedoraproject.org/packages/qemu/4.0.0/5.fc31/x86_64/qemu-user-static-4.0.0-5.fc31.x86_64.rpm"
- PACKAGE_FILENAME=$(basename "$PACKAGE_URI")
@@ -39,7 +39,7 @@ script:
- ./test.sh -d "$DOCKER_REPO"
after_success:
- |
- if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then
+ # if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" "$DOCKER_SERVER" && \
docker push "$DOCKER_REPO"
- fi
+ # fi
```

7. Check Travis CI's log, and ensure the container images are created.
7. Check Github Actions's log, and ensure the container images are created.
8. You are ready to send the pull-request!

## References
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ $ docker run --rm -t ppc64le/busybox uname -m
ppc64le
```

For 32-bit container image, the result of `uname` can be the 64-bit's one. But it is 32-bit environment. Please see the [example](docs/examples.md) - junaruga/ci-multi-arch-test i386 case on Travis CI.

```
$ docker run --rm -t i386/ubuntu uname -m
x86_64
Expand Down
4 changes: 2 additions & 2 deletions docs/developers_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ binfmt_misc is a feature of kernel. A container uses the host OS's kernel.
## Programs input & output

In this section, we describe a program's input and output.
This repository is a pipeline system by using Travis CI.
This repository is a pipeline system by using Github Actions.

First, we describe the entire pipelne system's input and output. `.travis.yml` is the top level file.
First, we describe the entire pipelne system's input and output. `.github/workflows/actions.yml` is the top level file.

* Input of the pipeline: `qemu-user-static-X.Y.Z-R.fcNN.$arch.rpm` RPM file under [Fedora Project URL](https://kojipkgs.fedoraproject.org/packages/qemu). Right now `$arch` is only x86_64.
* Output of the pipeline:
Expand Down

0 comments on commit 14bec10

Please sign in to comment.