Skip to content

Commit

Permalink
Install non dev on CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
adiroiban committed Mar 13, 2024
1 parent c3b3ddf commit 8fcd5d0
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions pavement.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

EXTRA_PYPI_INDEX = os.environ["PIP_INDEX_URL"]
BUILD_DIR = os.environ.get("CHEVAH_BUILD", "build-py3")
HAVE_CI = os.environ.get('CI', 'false') == 'true'


@task
Expand All @@ -26,16 +27,18 @@ def deps():
Install all dependencies.
"""
pip = load_entry_point("pip", "console_scripts", "pip")
exit_code = pip(
args=[
"install",
"-U",
"--extra-index-url",
EXTRA_PYPI_INDEX,
"-e",
".[dev]",
]
)
pip_args = [
"install",
"-U",
"--extra-index-url",
EXTRA_PYPI_INDEX,
]

if not HAVE_CI:
pip_args.append('-e')

pip_args.append('.dev')
exit_code = pip(args=pip_args)
if exit_code:
raise Exception('Failed to install the deps.')

Expand Down Expand Up @@ -186,7 +189,7 @@ def test_interop_generate(args):
exit_code = 1
with pushd("build"):
exit_code = call(
"../stc/chevah_keycert/tests/ssh_gen_keys_tests.sh", shell=True
"../src/chevah_keycert/tests/ssh_gen_keys_tests.sh", shell=True
)

sys.exit(exit_code)
Expand Down

0 comments on commit 8fcd5d0

Please sign in to comment.