freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/docwriter][master] 2 commits: Add Gitlab CI configuration


From: Nikhil Ramakrishnan
Subject: [Git][freetype/docwriter][master] 2 commits: Add Gitlab CI configuration.
Date: Sun, 28 Mar 2021 08:30:12 +0000

Nikhil Ramakrishnan pushed to branch master at FreeType / docwriter

Commits:

1 changed file:

Changes:

  • .gitlab-ci.yml
    1
    +#
    
    2
    +#  .gitlab-ci.yml
    
    3
    +#
    
    4
    +#    Gitlab CI build configuration.
    
    5
    +#
    
    6
    +#  Copyright (C) 2021 by
    
    7
    +#  Nikhil Ramakrishnan.
    
    8
    +#
    
    9
    +#  This file is part of the FreeType project, and may only be used,
    
    10
    +#  modified, and distributed under the terms of the FreeType project
    
    11
    +#  license, LICENSE.TXT.  By continuing to use, modify, or distribute
    
    12
    +#  this file you indicate that you have read the license and
    
    13
    +#  understand and accept it fully.
    
    14
    +
    
    15
    +.rules-default: &rules-default
    
    16
    +  rules:
    
    17
    +    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
    
    18
    +    - if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS'
    
    19
    +      when: never
    
    20
    +    - if: '$CI_COMMIT_BRANCH'
    
    21
    +    - if: '$CI_COMMIT_TAG'
    
    22
    +
    
    23
    +.tests: &tests
    
    24
    +  <<: *rules-default
    
    25
    +  before_script:
    
    26
    +    - python -V
    
    27
    +    - pip install tox
    
    28
    +  script:
    
    29
    +    - tox
    
    30
    +
    
    31
    +.regression: &regression
    
    32
    +  <<: *rules-default
    
    33
    +  before_script:
    
    34
    +    - python -V
    
    35
    +    - pip install tox
    
    36
    +    - apt-get -qq update && apt-get install -y clang autoconf cmake libtool
    
    37
    +  script:
    
    38
    +    - tox
    
    39
    +
    
    40
    +.deploy: &deploy
    
    41
    +  before_script:
    
    42
    +   - pip install twine
    
    43
    +  script:
    
    44
    +    - python setup.py sdist bdist_wheel
    
    45
    +    - twine upload dist/*
    
    46
    +
    
    47
    +test-python38:
    
    48
    +  <<: *tests
    
    49
    +  image: python:3.8
    
    50
    +  variables:
    
    51
    +    TOXENV: "py38"
    
    52
    +  stage: test
    
    53
    +
    
    54
    +test-python39:
    
    55
    +  <<: *tests
    
    56
    +  image: python:3.9
    
    57
    +  variables:
    
    58
    +    TOXENV: "py39"
    
    59
    +  stage: test
    
    60
    +
    
    61
    +test-regression:
    
    62
    +  <<: *regression
    
    63
    +  image: python:3.8
    
    64
    +  variables:
    
    65
    +    TOXENV: "regression"
    
    66
    +  stage: test
    
    67
    +
    
    68
    +deploy-PyPI:
    
    69
    +  <<: *deploy
    
    70
    +  image: python:3.8
    
    71
    +  variables:
    
    72
    +    TWINE_USERNAME: $PYPI_PRODUCTION_USERNAME
    
    73
    +    TWINE_PASSWORD: $PYPI_PRODUCTION_PASSWORD
    
    74
    +  rules:
    
    75
    +    - if: '$CI_COMMIT_TAG && $CI_PROJECT_PATH == "freetype/docwriter"'
    
    76
    +      when: always
    
    77
    +    - when: never
    
    78
    +  stage: deploy


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]