-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
65 lines (63 loc) · 1.79 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
# 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-20190604_1720 --fast-build
- ./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-20190604_1720 --fast-build
- ./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-20190604_1720 --fast-build
- ./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-20190604_1720 --fast-test
- ./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-20190604_1720 --fast-test
- ./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