forked from project-oak/oak
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
43 lines (39 loc) · 1.07 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
language: shell
services:
- docker
cache:
timeout: 600
directories:
- bazel-cache # explicit cache directory for Docker Bazel builds (scripts/docker_run)
- .cache/bazel # default cache directory for local Bazel builds
- rust/target # cached objects for Rust library code
- examples/target # cached objects for Rust example code
env:
- FORMAT_CHECKS=true
- BUILD_SERVER=true
- BUILD_EXAMPLES=true
- UNIT_TEST=true
- EXAMPLES_TEST=true
script:
- echo "build --show_progress_rate_limit=5.0" >> .bazelrc
- |
if [[ "${FORMAT_CHECKS}" == "true" ]]; then
./scripts/docker_run ./scripts/check_formatting
fi
- |
if [[ "${BUILD_SERVER}" == "true" ]]; then
./scripts/build_server_docker
fi
- |
if [[ "${BUILD_EXAMPLES}" == "true" ]]; then
./scripts/build_examples_docker
fi
- |
if [[ "${UNIT_TEST}" == "true" ]]; then
./scripts/docker_run ./scripts/run_tests
fi
- |
if [[ "${EXAMPLES_TEST}" == "true" ]]; then
./scripts/run_examples
./scripts/docker_run ./scripts/check_generated
fi