-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
69 lines (63 loc) · 1.76 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
dist: jammy
matrix:
include:
# focal runs all versions listed below by default
- os: linux
dist: xenial
# test the oldest and newest python versions for linux dists
- os: linux
dist: xenial
python: "3.6"
# 3.10 doesn't exist in xenial (and 3.10-dev doesn't work anymore)
- os: linux
dist: xenial
python: "3.9"
- os: linux
dist: bionic
python: "3.6"
- os: linux
dist: bionic
python: "3.11"
- os: linux
dist: focal
python: "3.6"
- os: linux
dist: focal
python: "3.12"
# test recent osx xcode
- os: osx
osx_image: xcode12.5
language: shell # 'language: python' is an error on Travis CI macOS
allow_failures:
- python: "nightly"
language: python
python:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
# - "3.13-dev"
- "nightly" # nightly build
- "pypy3.7-7.3.9"
- "pypy3.8-7.3.9"
- "pypy3.9-7.3.9"
before_install:
# energymon dependency - use master branch
- git clone https://github.com/energymon/energymon.git
- mkdir energymon/_build
- pushd energymon/_build
- cmake -DBUILD_SHARED_LIBS=ON -DENERGYMON_BUILD_DEFAULT=dummy -DENERGYMON_BUILD_LIB=NONE -DENERGYMON_BUILD_UTILITIES=OFF -DENERGYMON_BUILD_TESTS=OFF -DENERGYMON_BUILD_EXAMPLES=OFF ..
- cmake --build .
- popd
install:
# all OSes agree about 'pip3'
# - pip3 install -r requirements.txt
- pip3 install .
script:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/energymon/_build/dummy; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$(pwd)/energymon/_build/dummy; fi
- python3 -m unittest -v
- python3 examples/info.py
- python3 examples/context.py