-
Notifications
You must be signed in to change notification settings - Fork 76
/
.travis.yml
96 lines (78 loc) · 2.27 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
96
language: python
python: 3.7
os: linux
jobs:
allow_failures:
- name: bionic-ml
dist: bionic
- name: focal-ml
dist: focal
include:
- name: bionic-basic
dist: bionic
env: CIINSTALL=yes SCRIPT=12 # BasicSetup + GenSoftware
- name: bionic-opencv
dist: bionic
env: CIINSTALL=yes SCRIPT=4 # Build-OpenCV
- name: bionic-ml
dist: bionic
env: CIINSTALL=yes SCRIPT=5 # BuildML
- name: bionic-ml-basic
dist: bionic
env: CIINSTALL=yes SCRIPT=3 # ML-Basic
- name: bionic-opencv-conda
dist: bionic
env: CIINSTALL=yes SCRIPT=14 # BasicSetup + OpenCV (Conda OpenCV)
- name: focal-basic
dist: focal
env: CIINSTALL=yes SCRIPT=12 # BasicSetup + GenSoftware
- name: focal-opencv
dist: focal
env: CIINSTALL=yes SCRIPT=4 # Build-OpenCV
- name: focal-ml
dist: focal
env: CIINSTALL=yes SCRIPT=5 # BuildML
- name: focal-ml-basic
dist: focal
env: CIINSTALL=yes SCRIPT=3 # ML-Basic
- name: focal-opencv-conda
dist: focal
env: CIINSTALL=yes SCRIPT=14 # BasicSetup + OpenCV (Conda OpenCV)
script:
# BasicSetup + GenSoftware
- if [[ $SCRIPT -eq 12 ]]; then
./1-BasicSetUp.sh;
export PATH=/opt/anaconda3/bin:$PATH;
hash -r;
./2-GenSoftware.sh;
fi
# ML-Basic
- if [[ $SCRIPT -eq 3 ]]; then
./3-ML-Basic.sh;
fi
# Build-OpenCV
- if [[ $SCRIPT -eq 4 ]]; then
./Build-OpenCV.sh;
ffmpeg -version;
python3 extras/opencv_test.py;
fi
# BasicSetup + OpenCV (Conda OpenCV)
- if [[ $SCRIPT -eq 14 ]]; then
./1-BasicSetUp.sh;
export PATH=/opt/anaconda3/bin:$PATH;
hash -r;
./Build-OpenCV.sh;
ffmpeg -version;
python extras/opencv_test.py;
fi
# BuildML
- if [[ $SCRIPT -eq 5 ]]; then
./Build-ML.sh;
fi
before_install:
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse"
- sudo apt-get update -qq
- sudo apt-get install -y software-properties-common
- sudo apt-get install -qq build-essential curl g++ python3-dev python3-setuptools gdb
- echo 'America/Los_Angeles' | sudo tee /etc/timezone
- sudo dpkg-reconfigure --frontend noninteractive tzdata