Skip to content

Commit

Permalink
chore(ci): fast fail travis script in case of error (#66)
Browse files Browse the repository at this point in the history
Signed-off-by: Ashutosh Kumar <[email protected]>
  • Loading branch information
Ashutosh Kumar authored May 11, 2020
1 parent bc2114c commit 905be07
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright © 2020 The OpenEBS Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

dist: bionic

language: go
Expand Down Expand Up @@ -51,7 +65,7 @@ before_script: # TODO add golangci yaml config
script:
- make test
- if [ "$TRAVIS_CPU_ARCH" == "amd64" ]; then
make all.amd64;
make all.amd64 || exit 1;
fi
# Install openebs-operators, cstor-csi, ndm-operators and other
# dependencies.
Expand Down
17 changes: 17 additions & 0 deletions ci/sanity/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
# Copyright © 2020 The OpenEBS Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

#!/usr/bin/env bash

set -ex

echo "Install cstor-operators CRDs"

kubectl apply -f ./deploy/crds
Expand Down
14 changes: 14 additions & 0 deletions ci/sanity/sanity.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright © 2020 The OpenEBS Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

#!/usr/bin/env bash

function IsPoolHealthy() {
Expand Down

0 comments on commit 905be07

Please sign in to comment.