forked from OpenVisualCloud/Dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (55 loc) · 3.12 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
language: bash
dist: xenial
sudo: required
services: docker
addons:
apt:
packages:
- docker-ce
update: true
env:
- CPU=Xeon buildOS=centos-7 usage=media imageName=ffmpeg DOCKER_PREFIX=ovccache
- CPU=Xeon buildOS=centos-7 usage=media imageName=gst DOCKER_PREFIX=ovccache
- CPU=Xeon buildOS=centos-7 usage=media imageName=nginx DOCKER_PREFIX=ovccache
- CPU=Xeon buildOS=centos-7 usage=media imageName=svt DOCKER_PREFIX=ovccache
- CPU=Xeon buildOS=centos-7 usage=media imageName=dev DOCKER_PREFIX=ovccache
- CPU=Xeon buildOS=centos-7 usage=analytics imageName=ffmpeg DOCKER_PREFIX=ovccache
- CPU=Xeon buildOS=centos-7 usage=analytics imageName=gst DOCKER_PREFIX=ovccache
- CPU=Xeon buildOS=centos-7 usage=analytics imageName=dev DOCKER_PREFIX=ovccache
- CPU=Xeon buildOS=centos-7 usage=service imageName=owt DOCKER_PREFIX=ovccache
- CPU=Xeon buildOS=centos-7 usage=service imageName=owt360 DOCKER_PREFIX=ovccache
- CPU=Xeon buildOS=ubuntu-18.04 usage=media imageName=ffmpeg DOCKER_PREFIX=ovccache
- CPU=Xeon buildOS=ubuntu-18.04 usage=media imageName=gst DOCKER_PREFIX=ovccache
- CPU=Xeon buildOS=ubuntu-18.04 usage=media imageName=nginx DOCKER_PREFIX=ovccache
- CPU=Xeon buildOS=ubuntu-18.04 usage=media imageName=svt DOCKER_PREFIX=ovccache
- CPU=Xeon buildOS=ubuntu-18.04 usage=media imageName=dev DOCKER_PREFIX=ovccache
- CPU=Xeon buildOS=ubuntu-18.04 usage=analytics imageName=ffmpeg DOCKER_PREFIX=ovccache
- CPU=Xeon buildOS=ubuntu-18.04 usage=analytics imageName=gst DOCKER_PREFIX=ovccache
- CPU=Xeon buildOS=ubuntu-18.04 usage=analytics imageName=dev DOCKER_PREFIX=ovccache
- CPU=Xeon buildOS=ubuntu-18.04 usage=service imageName=owt DOCKER_PREFIX=ovccache
before_install:
- docker version
before_script:
- docker pull $DOCKER_PREFIX/xeon-$(echo $buildOS | tr -d - | tr -d .)-$usage-$imageName:build || true
- docker pull $DOCKER_PREFIX/xeon-$(echo $buildOS | tr -d - | tr -d .)-$usage-$imageName:latest || true
script:
- mkdir build && cd build && cmake -DBUILD_MP3LAME=OFF -DBUILD_FDKAAC=OFF -DDOCKER_PREFIX=${DOCKER_PREFIX} ..
- travis_wait 180 "${TRAVIS_BUILD_DIR}/script/travis_build.sh" "${CPU}/${buildOS}/${usage}/${imageName}"
- tail --lines=5000 "${TRAVIS_BUILD_DIR}/build/travis.log"
after_success: |
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
docker login -u ovckey -p $REGISTRY_PASS
docker push $DOCKER_PREFIX/xeon-$(echo $buildOS | tr -d - | tr -d .)-$usage-$imageName:build
docker push $DOCKER_PREFIX/xeon-$(echo $buildOS | tr -d - | tr -d .)-$usage-$imageName:latest
fi
matrix:
fast_finish: true
allow_failures: # test cases run not stable.
- name: xeon-centos7-media-nginx
- env: CPU=Xeon buildOS=centos-7 usage=media imageName=nginx DOCKER_PREFIX=ovccache
- name: xeon-ubuntu-18.04-name-nginx
- env: CPU=Xeon buildOS=ubuntu-18.04 usage=media imageName=nginx DOCKER_PREFIX=ovccache
- name: xeon-centos7-analytics-dev
- env: CPU=Xeon buildOS=centos-7 usage=analytics imageName=dev DOCKER_PREFIX=ovccache
- name: xeon-ubuntu-18.04-analytics-dev
- env: CPU=Xeon buildOS=ubuntu-18.04 usage=analytics imageName=dev DOCKER_PREFIX=ovccache