forked from ovalhub/pyicu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
95 lines (83 loc) · 3.69 KB
/
.travis.yml
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
# setup is at https://travis-ci.com
language: python
dist: xenial
notifications:
email: false
# Instead of using a build matrix, each job we want to run is explicitly
# defined below. Why not use the matrix? So many specific jobs are being
# included that it actually is easier to follow making all jobs explicit.
jobs:
include:
# For MacOS, unfortunately there is no native Python support from Travis.
# That complexity is handled internally to the ci-prepare-environment.bash
# script that is called in the before_install.
- {os: osx, env: ICU_VERSION=55.2, language: sh, python: 3.8}
- {os: osx, env: ICU_VERSION=67.1, language: sh, python: 3.8}
- {os: osx, env: ICU_VERSION=68.1, language: sh, python: 3.9}
# # Same story for Windows (currently not working).
# - {os: windows, env: ICU_VERSION=55.2, language: sh, python: 3.9}
# - {os: windows, env: ICU_VERSION=67.1, language: sh, python: 3.9}
# - {os: windows, env: ICU_VERSION=68.1, language: sh, python: 3.9}
# Run ICU 68 on every Python version.
- {env: ICU_VERSION=68.1, python: 2.7}
- {env: ICU_VERSION=68.1, python: 3.5}
- {env: ICU_VERSION=68.1, python: 3.6}
- {env: ICU_VERSION=68.1, python: 3.7}
- {env: ICU_VERSION=68.1, python: 3.8}
- {env: ICU_VERSION=68.1, python: 3.9}
- {env: ICU_VERSION=68.1, python: 3.8}
- {env: ICU_VERSION=68.1, python: 3.9}
# Run ICU 55 on every Python version.
- {env: ICU_VERSION=55.2, python: 2.7}
- {env: ICU_VERSION=55.2, python: 3.5}
- {env: ICU_VERSION=55.2, python: 3.6}
- {env: ICU_VERSION=55.2, python: 3.7}
- {env: ICU_VERSION=55.2, python: 3.8}
- {env: ICU_VERSION=55.2, python: 3.9}
# Run all other ICU versions only on Python 3.9
- {env: ICU_VERSION=50.2, python: 3.9}
- {env: ICU_VERSION=51.3, python: 3.9}
# - {env: ICU_VERSION=52.2, python: 3.9} # gcc error ‘-Qunused-arguments’
- {env: ICU_VERSION=53.2, python: 3.9}
- {env: ICU_VERSION=54.2, python: 3.9}
- {env: ICU_VERSION=56.2, python: 3.9}
- {env: ICU_VERSION=57.2, python: 3.9}
- {env: ICU_VERSION=58.3, python: 3.9}
- {env: ICU_VERSION=59.2, python: 3.9}
- {env: ICU_VERSION=60.3, python: 3.9}
- {env: ICU_VERSION=61.2, python: 3.9}
- {env: ICU_VERSION=62.2, python: 3.9}
- {env: ICU_VERSION=63.2, python: 3.9}
- {env: ICU_VERSION=64.2, python: 3.9}
- {env: ICU_VERSION=65.1, python: 3.9}
- {env: ICU_VERSION=66.1, python: 3.9}
- {env: ICU_VERSION=67.1, python: 3.9}
# Run a few ICU versions on arm64 + Python 3
- {arch: arm64, env: ICU_VERSION=55.2, python: 3.7}
- {arch: arm64, env: ICU_VERSION=66.1, python: 3.7}
- {arch: arm64, env: ICU_VERSION=55.2, python: 3.8}
- {arch: arm64, env: ICU_VERSION=64.2, python: 3.8}
- {arch: arm64, env: ICU_VERSION=66.1, python: 3.8}
- {arch: arm64, env: ICU_VERSION=63.2, python: 3.8}
- {arch: arm64, env: ICU_VERSION=55.2, python: 3.8}
# - {arch: arm64, env: ICU_VERSION=67.1, python: 3.8} # uint8_t errors
- {arch: arm64, env: ICU_VERSION=68.1, python: 3.8}
- {arch: arm64, env: ICU_VERSION=55.2, python: 3.9}
- {arch: arm64, env: ICU_VERSION=68.1, python: 3.9}
before_install:
- bash ci-prepare-environment.bash
install:
- export PYICU_LIBRARIES="icui18n:icuuc:icudata"
- export PYICU_INCLUDES="$HOME/icu4c/include"
- export PYICU_LFLAGS="-L$HOME/icu4c/lib"
- if [ ${ICU_VERSION%.*} -lt 58 ]; then export PYICU_LIBRARIES="${PYICU_LIBRARIES}:icule"; fi
- PATH="$HOME/icu4c/bin:${PATH}" pip install . pytest
script:
- LD_LIBRARY_PATH="$HOME/icu4c/lib" DYLD_LIBRARY_PATH="$HOME/icu4c/lib" py.test
cache:
ccache: true
pip: true
timeout: 1000
directories:
- $HOME/.pyenv_cache # for macos
- $HOME/icu4c