Skip to content

Commit

Permalink
Run tests in separate travis stage
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik Rosiek committed Oct 5, 2020
1 parent 15bf216 commit 0b248b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ before_install:
- sudo chmod +x /usr/local/bin/yq-3.2.1
- sudo ln -s /usr/local/bin/yq-3.2.1 /usr/local/bin/yq
- sudo apt install shellcheck
script: bash ci/build.sh
branches:
only:
- master
- /^release-v\d+\.\d+$/
- /^v\d+\.\d+\.\d+$/
- /^v\d+\.\d+\.\d+-(alpha|beta|rc)\.\d+$/
jobs:
include:
- stage: tests
script: bash ci/run-tests.sh
- stage: build
script: bash ci/build.sh
3 changes: 0 additions & 3 deletions ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,6 @@ function generate_overrides() {
fi
}

echo "Running tests"
./ci/run-tests.sh || (echo "Failed running tests" && exit 1)

# Set up Github
if [ -n "$GITHUB_TOKEN" ]; then
set_up_github "${GITHUB_TOKEN}" "$(get_branch_to_checkout)"
Expand Down

0 comments on commit 0b248b1

Please sign in to comment.