File: .travis.yml

package info (click to toggle)
python-asdf 2.7.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 3,248 kB
  • sloc: python: 13,104; makefile: 125
file content (147 lines) | stat: -rw-r--r-- 3,294 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
os: linux
dist: xenial
language: python
python: 3.8.6

jobs:
  include:
    # Python 3.9, stable dependencies
    - name: Python 3.9
      env: TOXENV=py39
      python: 3.9.0

    # Python 3.8, stable dependencies
    - name: Python 3.8
      env: TOXENV=py38

    # Python 3.7, stable dependencies
    - name: Python 3.7
      env: TOXENV=py37
      python: 3.7.9

    # Python 3.6, stable dependencies
    - name: Python 3.6
      env: TOXENV=py36
      python: 3.6.10

    # Python 3.5, stable dependencies
    - name: Python 3.5
      env: TOXENV=py35
      python: 3.5.9

    # Test ASDF file compatibility between library versions
    - name: ASDF library version compatibility
      env: TOXENV=compatibility

    # Do a coverage test
    - name: Coverage
      env: TOXENV=coverage

    # Perform a sanity check of packaging using twine
    - name: Twine
      env: TOXENV=twine

    # Make sure README will display properly on pypi
    - name: Checkdocs
      env: TOXENV=checkdocs

    # Check for sphinx doc build warnings
    - name: Documentation build
      env: TOXENV=docbuild
      addons:
        apt:
          packages:
            - graphviz
            - texlive-latex-extra
            - dvipng

    - name: Code style check
      env: TOXENV=style

    - name: Numpy 1.11
      env: TOXENV=py35-numpy11
      python: 3.5.9

    - name: Security check
      env: TOXENV=bandit

    - name: Numpy 1.12
      env: TOXENV=py36-numpy12
      python: 3.6.10

    - name: Oldest dependency versions
      env: TOXENV=py35-legacy
      python: 3.5.9

    # Test against development version of Astropy
    - name: Astropy dev
      env: TOXENV=py38-astropydev

    # Test against development version of GWCS
    - name: gwcs dev
      env: TOXENV=py38-gwcsdev

    # Test against development version of numpy (allowed failure)
    - name: Numpy dev
      env: TOXENV=py38-numpydev

    # Test against prerelease versions of all dependencies (allowed failure)
    - name: Pre-release dependencies
      env: TOXENV=prerelease

    # Test against an installed asdf package
    - name: Test against installed package
      env: TOXENV=packaged

    # Test with warnings converted to errors
    - name: Warnings treated as Exceptions
      env: TOXENV=warnings

    # Test on OS X
    - name: MacOS
      env:
        - TOXENV=py38
        - PATH=/usr/local/opt/python@3.8/bin:$PATH
      os: osx
      osx_image: xcode12
      language: shell
      addons:
        homebrew:
          packages:
            - python@3.8
      install:
        - pip3 install tox

    # Test on Windows
    - name: Windows
      env:
        - TOXENV=py38
        - PATH=/c/Python38:/c/Python38/Scripts:$PATH
      os: windows
      language: shell
      before_install:
        - choco install python --version=3.8

    # Test on big-endian platform
    - name: Big-endian platform
      env: TOXENV=s390x
      arch: s390x

  allow_failures:
    - name: Pre-release dependencies
      env: TOXENV=prerelease

    - name: Numpy dev
      env: TOXENV=py38-numpydev

    - name: Warnings treated as Exceptions
      env: TOXENV=warnings

    # This build frequently fails due to timeout
    - name: Big-endian platform
      env: TOXENV=s390x
      arch: s390x

install: pip install tox

script: tox