mirror of
				https://github.com/python-escpos/python-escpos
				synced 2025-10-23 09:30:00 +00:00 
			
		
		
		
	Merge remote-tracking branch 'origin/master' into 365-enhance-documentation
This commit is contained in:
		
							
								
								
									
										28
									
								
								.github/workflows/documentation.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								.github/workflows/documentation.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,28 @@
 | 
				
			|||||||
 | 
					# This is a basic workflow to help you get started with Actions
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					name: Documentation build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Controls when the action will run. Triggers the workflow on push or pull request
 | 
				
			||||||
 | 
					# events but only for the master branch
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    branches: [ master ]
 | 
				
			||||||
 | 
					  pull_request:
 | 
				
			||||||
 | 
					    branches: [ master ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# A workflow run is made up of one or more jobs that can run sequentially or in parallel
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  # This workflow contains a single job called "docs"
 | 
				
			||||||
 | 
					  docs:
 | 
				
			||||||
 | 
					    # The type of runner that the job will run on
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # Steps represent a sequence of tasks that will be executed as part of the job
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - uses: actions/checkout@v2
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          submodules: 'recursive'
 | 
				
			||||||
 | 
					      - uses: ammaraskar/sphinx-action@0.4
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          docs-folder: "doc/"
 | 
				
			||||||
 | 
					          pre-build-command: "apt-get update -y && apt-get install -y git python3-sphinx graphviz libenchant1c2a"
 | 
				
			||||||
							
								
								
									
										79
									
								
								.travis.yml
									
									
									
									
									
								
							
							
						
						
									
										79
									
								
								.travis.yml
									
									
									
									
									
								
							@@ -1,79 +0,0 @@
 | 
				
			|||||||
language: python
 | 
					 | 
				
			||||||
sudo: false
 | 
					 | 
				
			||||||
cache: pip
 | 
					 | 
				
			||||||
dist: bionic
 | 
					 | 
				
			||||||
git:
 | 
					 | 
				
			||||||
  depth: 100000
 | 
					 | 
				
			||||||
addons:
 | 
					 | 
				
			||||||
  apt:
 | 
					 | 
				
			||||||
    packages:
 | 
					 | 
				
			||||||
      - graphviz
 | 
					 | 
				
			||||||
      - libenchant1c2a
 | 
					 | 
				
			||||||
matrix:
 | 
					 | 
				
			||||||
  fast_finish: true
 | 
					 | 
				
			||||||
  include:
 | 
					 | 
				
			||||||
    - name: "Python 3.7 on Windows"
 | 
					 | 
				
			||||||
      os: windows
 | 
					 | 
				
			||||||
      language: shell
 | 
					 | 
				
			||||||
      before_install:
 | 
					 | 
				
			||||||
         - choco install python
 | 
					 | 
				
			||||||
         - pip install tox codecov 'sphinx>=1.5.1' 'sphinxcontrib-spelling>=5'
 | 
					 | 
				
			||||||
      env:
 | 
					 | 
				
			||||||
         - TOXENV=py37
 | 
					 | 
				
			||||||
         - PATH=/c/Python37:/c/Python37/Scripts:$PATH
 | 
					 | 
				
			||||||
         - ESCPOS_CAPABILITIES_FILE=C:/Users/travis/build/python-escpos/python-escpos/capabilities-data/dist/capabilities.json
 | 
					 | 
				
			||||||
    - name: "Python 3.7 on macOS"
 | 
					 | 
				
			||||||
      os: osx
 | 
					 | 
				
			||||||
      osx_image: xcode10.2
 | 
					 | 
				
			||||||
      language: shell
 | 
					 | 
				
			||||||
      env: TOXENV=py37 ESCPOS_CAPABILITIES_FILE=/Users/travis/build/python-escpos/python-escpos/capabilities-data/dist/capabilities.json
 | 
					 | 
				
			||||||
    - python: 3.5
 | 
					 | 
				
			||||||
      env: TOXENV=py35
 | 
					 | 
				
			||||||
    - python: 3.6
 | 
					 | 
				
			||||||
      env: TOXENV=py36
 | 
					 | 
				
			||||||
    - python: 3.7
 | 
					 | 
				
			||||||
      env: TOXENV=py37
 | 
					 | 
				
			||||||
    - python: 3.7-dev
 | 
					 | 
				
			||||||
      env: TOXENV=py37
 | 
					 | 
				
			||||||
    - python: 3.8
 | 
					 | 
				
			||||||
      env: TOXENV=py38
 | 
					 | 
				
			||||||
    - python: 3.8-dev
 | 
					 | 
				
			||||||
      env: TOXENV=py38
 | 
					 | 
				
			||||||
    - python: nightly
 | 
					 | 
				
			||||||
      env: TOXENV=py38
 | 
					 | 
				
			||||||
    - python: pypy3
 | 
					 | 
				
			||||||
      env: TOXENV=pypy3
 | 
					 | 
				
			||||||
    - python: 3.8
 | 
					 | 
				
			||||||
      env: TOXENV=docs
 | 
					 | 
				
			||||||
    - python: 3.8
 | 
					 | 
				
			||||||
      env: TOXENV=flake8
 | 
					 | 
				
			||||||
  allow_failures:
 | 
					 | 
				
			||||||
    - python: 3.7-dev
 | 
					 | 
				
			||||||
    - python: 3.8-dev
 | 
					 | 
				
			||||||
    - python: nightly
 | 
					 | 
				
			||||||
    - python: pypy3
 | 
					 | 
				
			||||||
    - os: windows
 | 
					 | 
				
			||||||
    - os: osx
 | 
					 | 
				
			||||||
before_install:
 | 
					 | 
				
			||||||
    - pip install tox codecov 'sphinx>=1.5.1' 'sphinxcontrib-spelling>=5'
 | 
					 | 
				
			||||||
    - ./doc/generate_authors.sh --check
 | 
					 | 
				
			||||||
script:
 | 
					 | 
				
			||||||
    - tox
 | 
					 | 
				
			||||||
    - codecov
 | 
					 | 
				
			||||||
notifications:
 | 
					 | 
				
			||||||
  email:
 | 
					 | 
				
			||||||
    on_success: never
 | 
					 | 
				
			||||||
    on_failure: change
 | 
					 | 
				
			||||||
deploy:
 | 
					 | 
				
			||||||
# Github deployment
 | 
					 | 
				
			||||||
  - provider: releases
 | 
					 | 
				
			||||||
    api_key:
 | 
					 | 
				
			||||||
      secure: oiR3r5AIx9ENIRtbUKIxorRx8GMv4BxgVIZcieXbgSTN4DBZdRWdzs1Xxngu/90Xf79G0X+XGxZyXrYN7eFFNp0kUYj8kwZ1aS/dyR88scskumERWi1Hv5WUJrYGrDe7PcjNGsJ2jw0nNnRPKG87Y84aR4lQygyGBSlDcdrOBnBv0sHYJMxRvHSRkGgWpur06QIOGOk4oOipTXR/7E9cg3YQC5nvZAf2QiprwTa8IcOSFlZQPykEVRYSiAgXrgqBYcZzpX0hAGuIBv7DmPI2ORTF+t79Wbhxhnho3gGJleDv7Z96//sf1vQNCG6qOgeIc9ZY08Jm1AwXQoW0p6F1/XcEPxeyPDkXJzlojE9rjYNLCPL4gxb/LESEuUafm0U4JGMsZ6hnsBOw583yTuAdfQuJ9M+QaSyem6OVNkky3+DKAD3z0WJnl9jmGXIXigNSIxD25XhpvY+j9P0XTLBG1GT2Q+wXCIjSYJc2XnYcdgVJcLoxSWk1fKj/KPi7buAWtqwnL3tjeldpMMOZMliPUTWMM14zoGskHztt0JCkAtcotm9AQtvL8eZ2LHLDK/jyLzjv0wAwU5vzSVp14XHLZl7Q0AIoNc20p1EYGa9C/gSPd9CkrWZoG4lMOiAu3tp2PRLVrdXH3ZWSPQq4Ek5MczrUTkmB82XErNbOa8QB1Dw=
 | 
					 | 
				
			||||||
    file: .tox/dist/python-escpos*.zip
 | 
					 | 
				
			||||||
    file_glob: true
 | 
					 | 
				
			||||||
    skip_cleanup: true
 | 
					 | 
				
			||||||
    on:
 | 
					 | 
				
			||||||
      tags: true
 | 
					 | 
				
			||||||
      repo: python-escpos/python-escpos
 | 
					 | 
				
			||||||
      branch: master
 | 
					 | 
				
			||||||
      condition: $TRAVIS_PYTHON_VERSION = "3.8"
 | 
					 | 
				
			||||||
		Reference in New Issue
	
	Block a user