forked from project-codeflare/multi-cluster-app-dispatcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (30 loc) · 1.21 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
language: go
sudo: required
env:
- HOME=/home/travis
services:
- docker
go:
- "1.18.10"
go_import_path: github.com/project-codeflare/multi-cluster-app-dispatcher
install: []
before_script:
- export TEST_LOG_LEVEL=2
script:
- BLUE='\033[34m'
- make mcad-controller
- make run-test
# Process 'make images' when NOT a pull request
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then make images; fi'
# Process 'make images' when running as a pull request
- 'if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then unset quay_repository && make images; fi'
# Process 'make push-images' when NOT a pull request
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then make push-images; fi'
# Run the e2e and handle Travis condition where Travis fails on no output for 10 minutes. No output for 10 minutes
# is fine for our test cases that waits for 10 minutes before requeuing a job. The other workaround was to
# use 'travis_wait n' which unfortunately does not stream output until the very end so monitoring the Travis log
# during runtime is not possible.
- make run-e2e &
- PID=$! && echo -e "${BLUE}make run e2e pid=${PID}"
- while [ -e /proc/${PID} ]; do echo -n "." && sleep 30; done
- wait ${PID}