Skip to content
Permalink
Browse files

Properly set pipeline exit option when validating job status (#1430)

* Properly set pipeline exit option when validating job status

Signed-off-by: terrytangyuan <terrytangyuan@gmail.com>

* Address commennts

Signed-off-by: terrytangyuan <terrytangyuan@gmail.com>
  • Loading branch information...
terrytangyuan committed Nov 7, 2019
1 parent c25e9d1 commit f3f9b60d2fc30bf5a2c125196432d8508efee9dc
Showing with 6 additions and 0 deletions.
  1. +1 −0 .travis.yml
  2. +5 −0 scripts/validate_job_status.sh
@@ -24,6 +24,7 @@ jobs:
- stage: tests
name: "Tests"
script:
- set -e
# Set up Kubernetes environment
- bash scripts/setup_k8s_env.sh
- docker build -t elasticdl:dev -f elasticdl/docker/Dockerfile.dev .
@@ -1,5 +1,10 @@
#!/usr/bin/env bash

# We intentionally `set +e` here since we want to allow certain kinds of known failures that can be ignored.
# For example, pods may not have been created yet so neither `kubectl get pod` nor `kubectl delete pod` would
# be successful at earlier stages of this script.
set +e

JOB_TYPE=$1
MASTER_POD_NAME=elasticdl-test-${JOB_TYPE}-master
WORKER_0_POD_NAME=elasticdl-test-${JOB_TYPE}-worker-0

0 comments on commit f3f9b60

Please sign in to comment.
You can’t perform that action at this time.