Skip to content

Commit

Permalink
Updating smoke tests with suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Anavelyz committed Oct 2, 2024
1 parent b8053f7 commit 882040d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/smoke/base-template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,3 @@ cookiecutter --no-input \
echo "${OUTPUT_DIR}"

set +ex

if [[ "${input_params}" == *"use_circleci=yes"* ]] && command -v circleci &> /dev/null; then
pushd /tmp/osl/osl-python-package
circleci config validate
popd
fi
12 changes: 12 additions & 0 deletions tests/smoke/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,17 @@ set -e

SMOKE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

# run the complete smoke tests
. ${SMOKE_DIR}/base.sh "use_circleci=yes use_conda=yes"
. ${SMOKE_DIR}/base.sh "use_circleci=yes use_pyenv=yes"

# check the CI files from template
. ${SMOKE_DIR}/base-template.sh "use_circleci=yes use_conda=yes"
pushd /tmp/osl/osl-python-package
circleci config validate
popd

. ${SMOKE_DIR}/base-template.sh "use_circleci=yes use_pyenv=yes"
pushd /tmp/osl/osl-python-package
circleci config validate
popd

0 comments on commit 882040d

Please sign in to comment.