Skip to content

Commit

Permalink
Big restructuring by moving to python
Browse files Browse the repository at this point in the history
  • Loading branch information
budtmo committed May 9, 2023
1 parent abcdf3f commit 6767970
Show file tree
Hide file tree
Showing 448 changed files with 2,493 additions and 5,679 deletions.
19 changes: 19 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Git
.git/

# IDE
**/*.idea
backup

# Python
**/*.egg-info
**/*.pyc
**/__pycache__
**/venv

# Unit Test
**/.coverage
**/coverage.xml
**/xunit.xml
**/coverage
tmp/
1 change: 0 additions & 1 deletion .gitattributes

This file was deleted.

16 changes: 1 addition & 15 deletions .github/FUNDING.yml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -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 changes: 0 additions & 28 deletions .github/ISSUE_TEMPLATE/bug.md

This file was deleted.

45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -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
45 changes: 45 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_pro_version.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 0 additions & 16 deletions .github/ISSUE_TEMPLATE/feature.md

This file was deleted.

29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 0 additions & 9 deletions .github/ISSUE_TEMPLATE/question.md

This file was deleted.

8 changes: 2 additions & 6 deletions .github/PULL_REQUEST_TEMPLATE.md
100755 → 100644
Original file line number Diff line number Diff line change
@@ -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 changes: 82 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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)"
27 changes: 19 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
.idea/*
.DS_Store
*.pyc
# IDE
**/*.idea
backup

# Coverage
.coverage
coverage.xml
xunit.xml
coverage/*
# Python
**/*.egg-info
**/*.pyc
**/__pycache__
**/venv

# Unit Test
**/.coverage
**/coverage.xml
**/xunit.xml
**/coverage
tmp/

# Dev-files
n*.txt
test-*.sh
Loading

0 comments on commit 6767970

Please sign in to comment.