forked from ApolloAuto/apollo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (63 loc) · 1.72 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
# safelist
branches:
only:
- master
language: cpp
sudo: required
services:
- docker
dist: trusty
os: linux
cache:
directories:
- $HOME/.cache/bazel
install: skip
before_script:
- cp scripts/AGREEMENT.txt ${HOME}/.apollo_agreement.txt
jobs:
include:
- stage: stage-01
env:
- JOB=lint
script:
- ./docker/scripts/dev_start.sh -t dev-x86_64-20181210_1500
- ./apollo_docker.sh ${JOB}
- rm -rf "${HOME}/.cache/bazel/_bazel_${USER}/install"
- rm -rf "/apollo/data/core"
- stage: stage-02
if: branch = master
env:
- JOB=cibuild
script:
- ./docker/scripts/dev_start.sh -t dev-x86_64-20181210_1500
- ./apollo_docker.sh ${JOB}
- rm -rf "${HOME}/.cache/bazel/_bazel_${USER}/install"
- rm -rf "/apollo/data/core"
- # stage: stage-02
env:
- JOB=cibuild_extended
script:
- ./docker/scripts/dev_start.sh -t dev-x86_64-20181210_1500
- ./apollo_docker.sh ${JOB}
- rm -rf "${HOME}/.cache/bazel/_bazel_${USER}/install"
- rm -rf "/apollo/data/core"
- # stage: stage-02
env:
- JOB=citest_basic
script:
- ./docker/scripts/dev_start.sh -t dev-x86_64-20181210_1500
- ./apollo_docker.sh ${JOB}
- rm -rf "${HOME}/.cache/bazel/_bazel_${USER}/install"
- rm -rf "/apollo/data/core"
- # stage: stage-02
env:
- JOB=citest_extended
script:
- ./docker/scripts/dev_start.sh -t dev-x86_64-20181210_1500
- ./apollo_docker.sh ${JOB}
- rm -rf "${HOME}/.cache/bazel/_bazel_${USER}/install"
- rm -rf "/apollo/data/core"
notifications:
email:
on_success: always
on_failure: always