Skip to content

Commit

Permalink
Moving over to github.com/fi-ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Apr 27, 2020
0 parents commit 4d75d9c
Show file tree
Hide file tree
Showing 168 changed files with 7,725 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[report]
show_missing = True
exclude_lines =
pragma: no cover
@abstract
36 changes: 36 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: master

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- uses: actions/setup-python@v1
with:
python-version: '3.8.2'
- name: Make tag
run: echo "::set-env name=TAG_NAME::${GITHUB_REF##*/}"
- name: Test
run: |
sed -i -e "s/devel/${TAG_NAME}/g" dockermake/version.py
python -m pip install --upgrade pip
python -m pip install .[dev]
python setup.py lint --lint-packages dockermake
python setup.py nosetests
- name: Build
run: |
python -m pip install pyinstaller setuptools --upgrade
python -m pip freeze
python setup.py sdist
python setup.py bdist_rpm --release ${TAG_NAME}
pyinstaller docker-make.spec
./dist/docker-make -v
53 changes: 53 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: release

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- uses: actions/setup-python@v1
with:
python-version: '3.8.2'
- name: Make tag
run: echo "::set-env name=TAG_NAME::${GITHUB_REF##*/v}"
- name: Test
run: |
sed -i -e "s/devel/${TAG_NAME}/g" dockermake/version.py
python -m pip install --upgrade pip
python -m pip install .[dev]
python setup.py lint --lint-packages dockermake
python setup.py nosetests
- name: Build
run: |
python -m pip install pyinstaller setuptools --upgrade
python -m pip freeze
python setup.py sdist
python setup.py bdist_rpm --release ${TAG_NAME}
pyinstaller docker-make.spec
./dist/docker-make -v
- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: docker-make ${{ github.ref }}
draft: true
prerelease: false
- name: Upload Release Asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/docker-make
asset_name: docker-make-linux-amd64
asset_content_type: application/octet-stream
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.py[co]
.idea
*.iml
.coverage
docker_make.egg-info/
build
dist
Loading

0 comments on commit 4d75d9c

Please sign in to comment.