forked from vn-input/ibus-unikey
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UPGRADE] build simple pipeline for testing automatically (#3)
Description: This commit suggests an automatically way to build a pipeline for testing ibus-unikey's commits or PR requests. Here is what i have done: - Create a lightweight pipeline inside file commit.yaml for testing with each commit, it uses another repository to support building a new generic pineline. Each commit must be proved to be passed with this pipeline. This pipeline is build within the github action to make a better maintaining and forking. - Create a heavy pipeline with UI testing inside. Still now, it only support ubuntu for testing and it's defined inside regression.yaml and .travis.yml. I don't suggest using github action since it doesn't support kvm which make the pipeline takes more time for verification. Signed-off-by: Hung Nguyen Xuan Pham <[email protected]>
- Loading branch information
1 parent
31894a0
commit a9c36e9
Showing
11 changed files
with
1,403 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
task: | ||
name: | ||
only_if: $CIRRUS_BRANCH == 'Test' | ||
container: | ||
image: ubuntu:latest | ||
memory: 10G | ||
cpu: 4 | ||
kvm: true | ||
prepare_environment_script: | ||
- apt update | ||
- apt install -y qemu git curl | ||
fetch_base_libraries_script: | ||
- ./Tests/Pipeline/Prepare.sh --dry-run | ||
build_and_test_script: | ||
- ./Base/Tests/Pipeline/Create.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Verify commit with the simple test suite | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
cxx: [g++, clang++] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: prepare | ||
run: ./tests/pipeline/prepare.sh | ||
- name: build and test | ||
env: | ||
CXX: ${{ matrix.cxx }} | ||
run: ./tests/pipeline/build.sh |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Check if the new PR is working well | ||
|
||
on: | ||
pull_request: | ||
branchs: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
cxx: [g++] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: update | ||
run: sudo apt update | ||
- name: prepare | ||
run: while ! sudo apt install qemu; do if ! which qemu-system-x86_64; then sleep 1; else break; fi; done | ||
- name: fetch base libraries | ||
run: ./tests/pipeline/prepare.sh --dry-run | ||
- name: build and test | ||
env: | ||
CXX: ${{ matrix.cxx }} | ||
MEGA: ${{ secrets.MEGA }} | ||
run: ./Base/Tests/Pipeline/Create.sh |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
gdb | ||
lcov | ||
make | ||
pxelinux | ||
syslinux-common | ||
cmake | ||
atftpd | ||
sshpass | ||
megatools | ||
libx11-dev | ||
libibus-1.0-dev | ||
libgtk-3-dev | ||
genisoimage | ||
squashfs-tools | ||
nfs-ganesha | ||
nfs-kernel-server |
Oops, something went wrong.