This commit is contained in:
		@@ -1,78 +1,28 @@
 | 
				
			|||||||
clone:
 | 
					#clone:
 | 
				
			||||||
    hg:
 | 
					  # git:
 | 
				
			||||||
        image: plugins/hg
 | 
					  #   image: woodpeckerci/plugin-git
 | 
				
			||||||
        environment:
 | 
					  #   # necesario para el entorno docker-compose
 | 
				
			||||||
            - HG_SHARE_POOL=/root/.cache/hg
 | 
					  #   # de lo contrario los agentes no pueden acceder al servidor gitea local
 | 
				
			||||||
        volumes:
 | 
					  #   network_mode: host
 | 
				
			||||||
            - cache:/root/.cache
 | 
					  #   privileged: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pipeline:
 | 
					pipeline:
 | 
				
			||||||
    tox:
 | 
					  tests:
 | 
				
			||||||
        image: ${IMAGE}
 | 
					    image: python:3.9
 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
            - CFLAGS=-O0
 | 
					      - DB_CACHE=/tmp
 | 
				
			||||||
            - DB_CACHE=/cache
 | 
					      - DB_NAME=trytontest
 | 
				
			||||||
            - TOX_TESTENV_PASSENV=CFLAGS DB_CACHE CI_BUILD_NUMBER CI_JOB_NUMBER CI_JOB_ID
 | 
					      - TRYTOND_DATABASE_URI=postgresql://tryton:tryton@postgres:5432/
 | 
				
			||||||
            - POSTGRESQL_URI=postgresql://postgres@postgresql:5432/
 | 
					 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
            - echo "[extensions]" >> /root/.hgrc
 | 
					      - cd party_ciiu
 | 
				
			||||||
            - echo "hgext.share =" >> /root/.hgrc
 | 
					      - pip3 install psycopg2 proteus
 | 
				
			||||||
            - echo "[share]" >> /root/.hgrc
 | 
					      - python3 setup.py install
 | 
				
			||||||
            - echo "pool = /root/.cache/hg" >> /root/.hgrc
 | 
					      - python3 -m unittest
 | 
				
			||||||
            - pip install tox
 | 
					 | 
				
			||||||
            - tox -e "${TOXENV}-${DATABASE}"
 | 
					 | 
				
			||||||
        volumes:
 | 
					 | 
				
			||||||
            - cache:/root/.cache
 | 
					 | 
				
			||||||
    check_dist:
 | 
					 | 
				
			||||||
        image: ${IMAGE}
 | 
					 | 
				
			||||||
        commands:
 | 
					 | 
				
			||||||
            - pip install twine
 | 
					 | 
				
			||||||
            - python setup.py sdist
 | 
					 | 
				
			||||||
            - twine check dist/*
 | 
					 | 
				
			||||||
        volumes:
 | 
					 | 
				
			||||||
            - cache:/root/.cache
 | 
					 | 
				
			||||||
    check_doc:
 | 
					 | 
				
			||||||
        image: ${IMAGE}
 | 
					 | 
				
			||||||
        commands:
 | 
					 | 
				
			||||||
            - pip install sphinx
 | 
					 | 
				
			||||||
            - python -m sphinx -T -E -W -n -b html doc _build/html
 | 
					 | 
				
			||||||
            - python -m sphinx -T -E -W -n -b linkcheck doc _build
 | 
					 | 
				
			||||||
        volumes:
 | 
					 | 
				
			||||||
            - cache:/root/.cache
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
services:
 | 
					services:
 | 
				
			||||||
    postgresql:
 | 
					  postgres:
 | 
				
			||||||
        image: postgres
 | 
					    image: postgres:12
 | 
				
			||||||
    environment:
 | 
					    environment:
 | 
				
			||||||
            - POSTGRES_HOST_AUTH_METHOD=trust
 | 
					      - POSTGRES_USER=tryton
 | 
				
			||||||
        command: "-c fsync=off -c synchronous_commit=off -c full_page_writes=off"
 | 
					      - POSTGRES_PASSWORD=tryton
 | 
				
			||||||
        when:
 | 
					      - POSTGRES_DB=demo
 | 
				
			||||||
            matrix:
 | 
					 | 
				
			||||||
                DATABASE: postgresql
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
matrix:
 | 
					 | 
				
			||||||
    include:
 | 
					 | 
				
			||||||
        - IMAGE: python:3.7
 | 
					 | 
				
			||||||
          TOXENV: py37
 | 
					 | 
				
			||||||
          DATABASE: sqlite
 | 
					 | 
				
			||||||
        - IMAGE: python:3.7
 | 
					 | 
				
			||||||
          TOXENV: py37
 | 
					 | 
				
			||||||
          DATABASE: postgresql
 | 
					 | 
				
			||||||
        - IMAGE: python:3.8
 | 
					 | 
				
			||||||
          TOXENV: py38
 | 
					 | 
				
			||||||
          DATABASE: sqlite
 | 
					 | 
				
			||||||
        - IMAGE: python:3.8
 | 
					 | 
				
			||||||
          TOXENV: py38
 | 
					 | 
				
			||||||
          DATABASE: postgresql
 | 
					 | 
				
			||||||
        - IMAGE: python:3.9
 | 
					 | 
				
			||||||
          TOXENV: py39
 | 
					 | 
				
			||||||
          DATABASE: sqlite
 | 
					 | 
				
			||||||
        - IMAGE: python:3.9
 | 
					 | 
				
			||||||
          TOXENV: py39
 | 
					 | 
				
			||||||
          DATABASE: postgresql
 | 
					 | 
				
			||||||
        - IMAGE: python:3.10
 | 
					 | 
				
			||||||
          TOXENV: py310
 | 
					 | 
				
			||||||
          DATABASE: sqlite
 | 
					 | 
				
			||||||
        - IMAGE: python:3.10
 | 
					 | 
				
			||||||
          TOXENV: py310
 | 
					 | 
				
			||||||
          DATABASE: postgresql
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user