Skip to content

Commit b303d0c

Browse files
author
yushulx
committed
Added .travis.yml
1 parent 46591b7 commit b303d0c

File tree

1 file changed

+96
-0
lines changed

1 file changed

+96
-0
lines changed

.travis.yml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
language: python
2+
3+
jobs:
4+
include:
5+
- name: "Python 3.6.0 on AMD64 Linux"
6+
python: 3.6
7+
os: linux
8+
arch: amd64
9+
- name: "Python 3.7.0 on AMD64 Linux"
10+
python: 3.7
11+
os: linux
12+
arch: amd64
13+
- name: "Python 3.8.0 on AMD64 Linux"
14+
python: 3.8
15+
os: linux
16+
arch: amd64
17+
- name: "Python 3.9.0 on AMD64 Linux"
18+
python: 3.9
19+
os: linux
20+
arch: amd64
21+
- name: "Python 3.6.0 on ARM64 Linux"
22+
python: 3.6
23+
os: linux
24+
arch: arm64
25+
- name: "Python 3.7.0 on ARM64 Linux"
26+
python: 3.7
27+
os: linux
28+
arch: arm64
29+
- name: "Python 3.8.0 on ARM64 Linux"
30+
python: 3.8
31+
os: linux
32+
arch: arm64
33+
- name: "Python 3.9.0 on ARM64 Linux"
34+
python: 3.9
35+
os: linux
36+
arch: arm64
37+
- name: "Python 3.7 on macOS"
38+
os: osx
39+
osx_image: xcode11.4
40+
language: shell
41+
before_install:
42+
- python3 --version
43+
- name: "Python 3.8 on macOS"
44+
os: osx
45+
osx_image: xcode11.6
46+
language: shell
47+
before_install:
48+
- python3 --version
49+
- name: "Python 3.9 on macOS"
50+
os: osx
51+
osx_image: xcode12.2
52+
language: shell
53+
before_install:
54+
- python3 --version
55+
- name: "Python 3.6.0 on Windows"
56+
os: windows
57+
language: shell
58+
before_install:
59+
- choco install python --version 3.6.0
60+
- python -m pip install --upgrade pip
61+
env: PATH=/c/Python36:/c/Python36/Scripts:$PATH
62+
- name: "Python 3.7.0 on Windows"
63+
os: windows
64+
language: shell
65+
before_install:
66+
- choco install python --version 3.7.0
67+
- python -m pip install --upgrade pip
68+
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
69+
- name: "Python 3.8.0 on Windows"
70+
os: windows
71+
language: shell
72+
before_install:
73+
- choco install python --version 3.8.0
74+
- python -m pip install --upgrade pip
75+
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
76+
- name: "Python 3.9.0 on Windows"
77+
os: windows
78+
language: shell
79+
before_install:
80+
- choco install python --version 3.9.0
81+
- python -m pip install --upgrade pip
82+
env: PATH=/c/Python39:/c/Python39/Scripts:$PATH
83+
84+
install:
85+
- if [[ ${TRAVIS_OS_NAME} == "windows" ]]; then
86+
pip install dbr opencv-python-headless;
87+
else
88+
pip3 install dbr opencv-python;
89+
fi
90+
91+
branches:
92+
only:
93+
- master
94+
95+
script:
96+
- python3 -c "from dbr import *; print(dir(dbr))" || python -c "from dbr import *; print(dir(dbr))"

0 commit comments

Comments
 (0)