|
1 |
| -dist: trusty |
2 |
| -sudo: false |
3 |
| -language: python |
4 |
| - |
5 |
| -matrix: |
6 |
| - include: |
7 |
| -# --------------------- XPLAT builds ------------------------ |
8 |
| - - python: 2.7 |
9 |
| - env: &xplat-env |
10 |
| - - BUILD_OPTS=--xplat |
11 |
| - addons: &xplat-addons |
12 |
| - apt: |
13 |
| - sources: |
14 |
| - - sourceline: deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main |
15 |
| - key_url: https://packages.microsoft.com/keys/microsoft.asc |
16 |
| - - sourceline: deb http://download.mono-project.com/repo/debian trusty/snapshots/5.2.0.224 main |
17 |
| - key_url: http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xA6A19B38D3D831EF |
18 |
| - packages: |
19 |
| - - mono-devel |
20 |
| - - ca-certificates-mono |
21 |
| - - dotnet-hostfxr-2.0.0 |
22 |
| - - dotnet-runtime-2.0.0 |
23 |
| - - dotnet-sdk-2.0.0 |
24 |
| - - python: 3.3 |
25 |
| - env: *xplat-env |
26 |
| - addons: *xplat-addons |
27 |
| - |
28 |
| - - python: 3.4 |
29 |
| - env: *xplat-env |
30 |
10000
code> | - addons: *xplat-addons |
31 |
| - |
32 |
| - - python: 3.5 |
33 |
| - env: *xplat-env |
34 |
| - addons: *xplat-addons |
35 |
| - |
36 |
| - - python: 3.6 |
37 |
| - env: *xplat-env |
38 |
| - addons: *xplat-addons |
39 |
| - - python: "3.7-dev" |
40 |
| - env: *xplat-env |
41 |
| - addons: *xplat-addons |
42 |
| - |
43 |
| -# --------------------- Classic builds ------------------------ |
44 |
| - - python: 2.7 |
45 |
| - env: &classic-env |
46 |
| - - BUILD_OPTS= |
47 |
| - |
48 |
| - - python: 3.3 |
49 |
| - env: *classic-env |
50 |
| - |
51 |
| - - python: 3.4 |
52 |
| - env: *classic-env |
53 |
| - |
54 |
| - - python: 3.5 |
55 |
| - env: *classic-env |
56 |
| - |
57 |
| - - python: 3.6 |
58 |
| - env: *classic-env |
59 |
| - |
60 |
| - - python: "3.7-dev" |
61 |
| - env: *classic-env |
62 |
| - |
63 |
| - allow_failures: |
64 |
| - - python: "3.7-dev" |
65 |
| - env: *xplat-env |
66 |
| - |
67 |
| - - python: "3.7-dev" |
68 |
| - env: *classic-env |
69 |
| - |
70 |
| -env: |
71 |
| - global: |
72 |
| - - LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so |
73 |
| - - SEGFAULT_SIGNALS=all |
74 |
| - - PYTHONUNBUFFERED=True |
75 |
| - - CODECOV_ENV=TRAVIS_PYTHON_VERSION |
76 |
| - |
77 |
| -addons: |
78 |
| - apt: |
79 |
| - sources: |
80 |
| - - sourceline: deb http://download.mono-project.com/repo/debian trusty/snapshots/5.2.0.224 main |
81 |
| - key_url: http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xA6A19B38D3D831EF |
82 |
| - packages: |
83 |
| - - mono-devel |
84 |
| - - ca-certificates-mono |
85 |
| - |
86 |
| -before_install: |
87 |
| - # Set-up dll path for embedded tests |
88 |
| - - PY_LIBDIR=$(python -c 'import sysconfig; print(sysconfig.get_config_var("LIBDIR"))') |
89 |
| - - export LD_LIBRARY_PATH=$PY_LIBDIR:$LD_LIBRARY_PATH |
90 |
| - |
91 |
| -install: |
92 |
| - - pip install --upgrade setuptools # TEMP - due to setuptools 36.2.0 bug |
93 |
| - - pip install --upgrade -r requirements.txt |
94 |
| - - coverage run setup.py install $BUILD_OPTS |
95 |
| - |
96 |
| -script: |
97 |
| - - python -m pytest |
98 |
| - - mono src/embed_tests/bin/Python.EmbeddingTest.exe |
99 |
| - - if [[ $BUILD_OPTS == --xplat ]]; then dotnet src/embed_tests/bin/netcoreapp2.0_publish/Python.EmbeddingTest.dll; fi |
100 |
| - |
101 |
| -after_script: |
102 |
| - # Uncomment if need to geninterop, ie. py37 final |
103 |
| - # - python tools/geninterop/geninterop.py |
104 |
| - |
105 |
| - # Waiting on mono-coverage, SharpCover or xr.Baboon |
106 |
| - - coverage xml -i |
107 |
| - - codecov --file coverage.xml --flags setup_linux |
108 |
| - |
109 |
| -notifications: |
110 |
| - email: false |
111 |
| - slack: |
112 |
| - secure: "UiQdSK1/uNnHl8/gQgfLj/F5JGxtJuaT3QYtKNcw3Ddpr3FX8tfXJ/RjsCsSlRQzDm7AdBAeMzcBQmvH4iRIV2y7qVywLyru5MPiwY4ZjMN6fJK/zaaxetOct9fasIBYzHguNPDAtiBGFh2iK1H1MXTY8rkmU3WZvl18b8EsrP0=" |
| 1 | +dist: trusty |
| 2 | +sudo: false |
| 3 | +language: python |
| 4 | + |
| 5 | +matrix: |
| 6 | + include: |
| 7 | +# --------------------- XPLAT builds ------------------------ |
| 8 | + - python: 2.7 |
| 9 | + env: &xplat-env |
| 10 | + - BUILD_OPTS=--xplat |
| 11 | + addons: &xplat-addons |
| 12 | + apt: |
| 13 | + sources: |
| 14 | + - sourceline: deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main |
| 15 | + key_url: https://packages.microsoft.com/keys/microsoft.asc |
| 16 | + - sourceline: deb http://download.mono-project.com/repo/ubuntu trusty main |
| 17 | + key_url: http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xA6A19B38D3D831EF |
| 18 | + packages: |
| 19 | + - mono-devel |
| 20 | + - ca-certificates-mono |
| 21 | + - dotnet-hostfxr-2.0.0 |
| 22 | + - dotnet-runtime-2.0.0 |
| 23 | + - dotnet-sdk-2.0.0 |
| 24 | + - python: 3.3 |
| 25 | + env: *xplat-env |
| 26 | + addons: *xplat-addons |
| 27 | + |
| 28 | + - python: 3.4 |
| 29 | + env: *xplat-env |
| 30 | + addons: *xplat-addons |
| 31 | + |
| 32 | + - python: 3.5 |
| 33 | + env: *xplat-env |
| 34 | + addons: *xplat-addons |
| 35 | + |
| 36 | + - python: 3.6 |
| 37 | + env: *xplat-env |
| 38 | + addons: *xplat-addons |
| 39 | + - python: "3.7-dev" |
| 40 | + env: *xplat-env |
| 41 | + addons: *xplat-addons |
| 42 | + |
| 43 | +# --------------------- Classic builds ------------------------ |
| 44 | + - python: 2.7 |
| 45 | + env: &classic-env |
| 46 | + - BUILD_OPTS= |
| 47 | + |
| 48 | + - python: 3.3 |
| 49 | + env: *classic-env |
| 50 | + |
| 51 | + - python: 3.4 |
| 52 | + env: *classic-env |
| 53 | + |
| 54 | + - python: 3.5 |
| 55 | + env: *classic-env |
| 56 | + |
| 57 | + - python: 3.6 |
| 58 | + env: *classic-env |
| 59 | + |
| 60 | + - python: "3.7-dev" |
| 61 | + env: *classic-env |
| 62 | + |
| 63 | + allow_failures: |
| 64 | + - python: "3.7-dev" |
| 65 | + env: *xplat-env |
| 66 | + |
| 67 | + - python: "3.7-dev" |
| 68 | + env: *classic-env |
| 69 | + |
| 70 | +env: |
| 71 | + global: |
| 72 | + - LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so |
| 73 | + - SEGFAULT_SIGNALS=all |
| 74 | + - PYTHONUNBUFFERED=True |
| 75 | + - CODECOV_ENV=TRAVIS_PYTHON_VERSION |
| 76 | + |
| 77 | +addons: |
| 78 | + apt: |
| 79 | + sources: |
| 80 | + - sourceline: deb http://download.mono-project.com/repo/ubuntu trusty main |
| 81 | + key_url: http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xA6A19B38D3D831EF |
| 82 | + packages: |
| 83 | + - mono-devel |
| 84 | + - ca-certificates-mono |
| 85 | + |
| 86 | +before_install: |
| 87 | + # Set-up dll path for embedded tests |
| 88 | + - PY_LIBDIR=$(python -c 'import sysconfig; print(sysconfig.get_config_var("LIBDIR"))') |
| 89 | + - export LD_LIBRARY_PATH=$PY_LIBDIR:$LD_LIBRARY_PATH |
| 90 | + |
| 91 | +install: |
| 92 | + - pip install --upgrade setuptools # TEMP - due to setuptools 36.2.0 bug |
| 93 | + - pip install --upgrade -r requirements.txt |
| 94 | + - coverage run setup.py install $BUILD_OPTS |
| 95 | + |
| 96 | +script: |
| 97 | + - python -m pytest |
| 98 | + - mono src/embed_tests/bin/Python.EmbeddingTest.exe |
| 99 | + - if [[ $BUILD_OPTS == --xplat ]]; then dotnet src/embed_tests/bin/netcoreapp2.0_publish/Python.EmbeddingTest.dll; fi |
| 100 | + |
| 101 | +after_script: |
| 102 | + # Uncomment if need to geninterop, ie. py37 final |
| 103 | + # - python tools/geninterop/geninterop.py |
| 104 | + |
| 105 | + # Waiting on mono-coverage, SharpCover or xr.Baboon |
| 106 | + - coverage xml -i |
| 107 | + - codecov --file coverage.xml --flags setup_linux |
| 108 | + |
| 109 | +notifications: |
| 110 | + email: false |
| 111 | + slack: |
| 112 | + secure: "UiQdSK1/uNnHl8/gQgfLj/F5JGxtJuaT3QYtKNcw3Ddpr3FX8tfXJ/RjsCsSlRQzDm7AdBAeMzcBQmvH4iRIV2y7qVywLyru5MPiwY4ZjMN6fJK/zaaxetOct9fasIBYzHguNPDAtiBGFh2iK1H1MXTY8rkmU3WZvl18b8EsrP0=" |
0 commit comments