Big restructuring by moving to python

This commit is contained in:
budtmo
2023-05-09 19:34:44 +02:00
parent abcdf3f4d1
commit 6767970307
448 changed files with 2493 additions and 5679 deletions
Executable → Regular
+1 -15
View File
@@ -1,17 +1,3 @@
# These are supported funding model platforms
# Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
github: [budtmo]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
# Bitcoin (BTC)
custom:
- "paypal.me/budtmo"
- "paypal.me/budtmo"
-28
View File
@@ -1,28 +0,0 @@
---
name: 🐛 Bug report
about: Report a bug to improve the tool
---
## 🐛 Bug Report
Operating System:
<!-- OSX Yosemite, Ubuntu 18.04, Windows 10 etc -->
Docker Image:
<!-- budtmo/docker-android-x86-7.1.1, budtmo/docker-android-real-device etc -->
Docker Version:
<!-- 17.09.0-ce, 17.06.2-ce etc -->
Docker-compose version (Only if you use it):
<!-- 1.16.1 etc -->
Docker Command to start docker-android:
<!-- docker run ... -->
## Expected Behavior
<!-- Explaination about expected behaviour goes here -->
## Actual Behavior
<!-- Explaination about actual behaviour goes here -->
+45
View File
@@ -0,0 +1,45 @@
name: 🐛 Bug Report
description: File a bug report
title: "[🐛 Bug ]: "
labels: [bug]
body:
- type: input
id: operating-system
attributes:
label: Operating System
description: Which host operating system do you use?
placeholder: e.g. OSX Yosemite / Ubuntu 20.04 / Windows 10 etc
validations:
required: true
- type: input
id: docker-image
attributes:
label: Docker Image
description: Which docker image do you use?
placeholder: e.g. budtmo/docker-android:emulator_10.0_v2.0 / budtmo/docker-android:genymotion_v2.0 etc
validations:
required: true
- type: textarea
id: expected-behaviour
attributes:
label: Expected behaviour
description: |
What behaviour that you expected?
validations:
required: true
- type: textarea
id: actual-behaviour
attributes:
label: Actual behaviour
description: |
What is the actual behaviour?
validations:
required: true
- type: textarea
id: logs
attributes:
label: Logs
description: |
Please provide logs here
validations:
required: false
@@ -0,0 +1,45 @@
name: 🐛 [Pro version] Bug Report
description: File a bug report
title: "[🐛 PRO | Bug ]: "
labels: [bug, pro]
body:
- type: input
id: operating-system
attributes:
label: Operating System
description: Which host operating system do you use?
placeholder: e.g. OSX Yosemite / Ubuntu 20.04 / Windows 10 etc
validations:
required: true
- type: input
id: docker-image
attributes:
label: Docker Image
description: Which docker image do you use?
placeholder: e.g. budtmo/docker-android-pro:emulator_10.0_v2.0 / budtmo/docker-android-pro:emulator_headless_10.0_v2.0 etc
validations:
required: true
- type: textarea
id: expected-behaviour
attributes:
label: Expected behaviour
description: |
What behaviour that you expected?
validations:
required: true
- type: textarea
id: actual-behaviour
attributes:
label: Actual behaviour
description: |
What is the actual behaviour?
validations:
required: true
- type: textarea
id: logs
attributes:
label: Logs
description: |
Please provide logs here
validations:
required: false
+5
View File
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: 📖 Docker-Android Documentation
url: https://github.com/budtmo/docker-android
about: Please read the whole project README before filling out an issue.
-16
View File
@@ -1,16 +0,0 @@
---
name: 🚀 Feature Request
about: Submit your idea to have cool features
---
## 🚀 Feature Request
Idea:
<!-- A clear explanation about the feature -->
Problems that want to be solved:
<!-- A clear explanation about why we need that feature -->
Note:
<!-- Additional note -->
+29
View File
@@ -0,0 +1,29 @@
name: 🚀 Feature Request
description: Submit your idea to have cool feature(s)
title: "[🚀 Feature Request ]: "
labels: [feature-request]
body:
- type: textarea
id: idea
attributes:
label: Idea
description: |
What is the idea that you want to share to improve the project?
validations:
required: true
- type: textarea
id: problem
attributes:
label: Probelm to solve
description: |
What is the problem that you want to solve with requested feature?
validations:
required: true
- type: textarea
id: Note
attributes:
label: Additional Note
description: |
Please share any additional information here if needed
validations:
required: false
-9
View File
@@ -1,9 +0,0 @@
---
name: 💬 Questions / Help
about: If you have questions, please check the group chat
---
## 💬 Questions and Help
**Please make sure that it is an issue / a feature request. If it is a question / help wanted, please visit [our group chat](https://gitter.im/budtmo/docker-android). Thank you!**
Executable → Regular
+2 -6
View File
@@ -1,12 +1,8 @@
### Purpose of changes
<!-- Please describe why this change is required / What problem you want to solve. -->
### Types of changes
_Put an `x` in the boxes that apply_
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
### How has this been tested?
<!-- Please describe in detail how you tested your changes. -->
### Purpose of changes
<!-- Please describe why this change is required / What problem you want to solve. -->
+82
View File
@@ -0,0 +1,82 @@
name: Release
on:
push:
tags:
- 'v*.*-*'
jobs:
run_test:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.8"]
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
cd cli
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run test
run: |
cd cli && nosetests -v
release_base:
runs-on: ubuntu-20.04
needs: run_test
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Get release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build and push base image (${RELEASE_VERSION})
run: |
docker login -u=${{secrets.DOCKER_USERNAME}} -p=${{secrets.DOCKER_PASSWORD}}
./app.sh push base ${RELEASE_VERSION}
docker logout
release_emulator:
runs-on: ubuntu-20.04
needs: release_base
strategy:
matrix:
android: ["9.0", "10.0", "11.0", "12.0", "13.0"]
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Get release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build and push emulator image ${{ matrix.android }} (${RELEASE_VERSION})
run: |
docker login -u=${{secrets.DOCKER_USERNAME}} -p=${{secrets.DOCKER_PASSWORD}}
./app.sh push emulator ${RELEASE_VERSION} ${{ matrix.android }}
docker logout
release_genymotion:
runs-on: ubuntu-20.04
needs: release_base
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Get release version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Build and push genymotion image (${RELEASE_VERSION})
run: |
docker login -u=${{secrets.DOCKER_USERNAME}} -p=${{secrets.DOCKER_PASSWORD}}
./app.sh push genymotion ${RELEASE_VERSION}
docker logout
+25
View File
@@ -0,0 +1,25 @@
name: Run Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build_and_test:
runs-on: ubuntu-20.04
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Build base image
run: script -e -c "./app.sh build base test"
- name: Build emulator image and run unit-test
run: script -e -c "./app.sh test emulator test 11.0 && sudo mv tmp/* . && ls -al"
- name: Publish test result
run: script -e -c "bash <(curl -s https://codecov.io/bash)"