-
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathtravis-ci.py
More file actions
executable file
·37 lines (27 loc) · 804 Bytes
/
travis-ci.py
File metadata and controls
executable file
·37 lines (27 loc) · 804 Bytes
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
#!/usr/bin/python3
import subprocess
import sys
def run_all(cmds):
for cmd in [x for x in cmds.split('\n') if x.strip() != '']:
print(">>>", cmd)
subprocess.run(cmd, shell=True)
ALWAYS = """
sudo apt-get update
./install-packages --yes
"""
CMDS = [
"./tools/bazel test //base/...",
"./tools/bazel build @ffmpeg//...",
"./tools/bazel build @opencv//...",
"./tools/bazel build @dart//...",
"./tools/bazel build @gstreamer//... @gst-libav//... @gst-plugins-bad//... @gst-plugins-base//... @gst-plugins-ugly//... @gst-plugins-base//:plugins",
"./tools/bazel test //...",
]
def main():
run_all(ALWAYS)
if len(sys.argv) < 2:
[run_all(x) for x in CMDS]
else:
run_all(CMDS[int(sys.argv[1])])
if __name__ == '__main__':
main()