Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: build pipeline to test with dogtail automatically #25

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/commit.yml
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
314 changes: 314 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,317 @@ po/insert-header.sin
po/quot.sed
po/remove-potcdate.sin
po/POTFILES

###Python###

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so
###PyCharm###

# PyCharm
# http://www.jetbrains.com/pycharm/webhelp/project.html
.idea
.iml

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
.static_storage/
.media/
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/


###Java###

# Compiled class file
*.class

# Log file
*.log

# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*


###C###
# Object files
*.o
*.ko
*.obj
*.elf

# Linker output
*.ilk
*.map
*.exp

# Precompiled Headers
*.gch
*.pch

# Libraries
*.lib
*.a
*.la
*.lo

# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib

# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex

# Debug files
*.dSYM/
*.su
*.idb
*.pdb

# Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf


###C++###

# Compiled Object files
*.slo
*.lo
*.o
*.obj

# Precompiled Headers
*.gch
*.pch

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Fortran module files
*.mod
*.smod

# Compiled Static libraries
*.lai
*.la
*.a
*.lib

# Executables
*.exe
*.out
*.app


###vim###

[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
*.un~
Session.vim
.netrwhist
*~


###gcov###

# gcc coverage testing tool files

*.gcno
*.gcda
*.gcov


###Gcov###

# gcc coverage testing tool files

*.gcno
*.gcda
*.gcov


###SublimeText###

# cache files for sublime text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache

# workspace files are user-specific
*.sublime-workspace

# project files should be checked into the repository, unless a significant
# proportion of contributors will probably not be using SublimeText
*.sublime-project

# sftp configuration file
sftp-config.json


###D###

# Compiled Object files
*.o
*.obj

# Compiled Dynamic libraries
*.so
*.dylib
*.dll

# Compiled Static libraries
*.a
*.lib

# Executables
*.exe

# DUB
.dub
docs.json
__dummy.html
docs/

# Code coverage
*.lst

# Tools/Builder
output/.vscode/
Eevee.xcodeproj/
.tags_sorted_by_file
.tags
.DS_Store
tags

# vim
*.config
*.vim
.lvimrc

# Xcode
*.xcworkspace
16 changes: 16 additions & 0 deletions .requirement.d/debian
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
16 changes: 15 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
dist: bionic
language: cpp
branches:
only:
- master

before_install:
- sudo apt-get install -y libibus-1.0-dev libgtk-3-dev
- sudo apt-get install -y qemu-kvm qemu-utils
addons:
apt:
update: true

script: mkdir build && cd build && cmake .. && make
install:
- echo "is it suppoted kvm? $(egrep -c '(vmx|svm)' /proc/cpuinfo)"
- sudo lsmod | grep kvm
- if [ -f /dev/kvm ]; then echo "/dev/kvm exists"; else echo "/dev/kvm not exists"; fi

script:
- mkdir build && cd build && cmake .. && make
- cd ..
- ./tests/pipeline/prepare.sh --dry-run # @NOTE: fetch libraries to build a new pipeline
- ./Base/Tests/Pipeline/Create.sh # @NOTE: request create new pipeline with the current repository
Loading