-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
renamed test/integration + test/unit
- Loading branch information
1 parent
6dbd767
commit 2cba8c8
Showing
75 changed files
with
1,935 additions
and
1,015 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
from exasol_script_languages_container_ci_setup.cli.commands import ( | ||
health, | ||
generate_buildspec, | ||
generate_release_buildspec, | ||
deploy_source_credentials, | ||
deploy_ci_build, | ||
deploy_release_build, | ||
deploy_source_credentials, | ||
generate_buildspec, | ||
generate_release_buildspec, | ||
health, | ||
start_ci_build, | ||
start_release_build, | ||
start_test_release_build, | ||
validate_ci_build, | ||
validate_release_build, | ||
validate_source_credentials, | ||
start_release_build, | ||
start_test_release_build, | ||
start_ci_build | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 35 additions & 17 deletions
52
exasol_script_languages_container_ci_setup/cli/commands/generate_buildspec.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,51 @@ | ||
from pathlib import Path | ||
from typing import Tuple, Optional | ||
from typing import ( | ||
Optional, | ||
Tuple, | ||
) | ||
|
||
import click | ||
|
||
from exasol_script_languages_container_ci_setup.cli.cli import cli | ||
from exasol_script_languages_container_ci_setup.cli.common import add_options | ||
from exasol_script_languages_container_ci_setup.cli.options.logging import logging_options, set_log_level | ||
from exasol_script_languages_container_ci_setup.lib.run_generate_buildspec import run_generate_buildspec | ||
from exasol_script_languages_container_ci_setup.cli.options.logging import ( | ||
logging_options, | ||
set_log_level, | ||
) | ||
from exasol_script_languages_container_ci_setup.lib.run_generate_buildspec import ( | ||
run_generate_buildspec, | ||
) | ||
|
||
|
||
@cli.command() | ||
@add_options(logging_options) | ||
@click.option('--flavor-root-path', required=True, multiple=True, | ||
type=click.Path(file_okay=False, dir_okay=True, exists=True), | ||
help="Path where script language container flavors are located.") | ||
@click.option('--output-path', type=click.Path(file_okay=False, dir_okay=True, exists=True, writable=True), | ||
default="./aws-code-build/ci", show_default=True, | ||
help="Path where buildspec files will be deployed.") | ||
@click.option('--config-file', type=click.Path(file_okay=True, dir_okay=False, exists=True), | ||
help="Configuration file for build (project specific).") | ||
@click.option( | ||
"--flavor-root-path", | ||
required=True, | ||
multiple=True, | ||
type=click.Path(file_okay=False, dir_okay=True, exists=True), | ||
help="Path where script language container flavors are located.", | ||
) | ||
@click.option( | ||
"--output-path", | ||
type=click.Path(file_okay=False, dir_okay=True, exists=True, writable=True), | ||
default="./aws-code-build/ci", | ||
show_default=True, | ||
help="Path where buildspec files will be deployed.", | ||
) | ||
@click.option( | ||
"--config-file", | ||
type=click.Path(file_okay=True, dir_okay=False, exists=True), | ||
help="Configuration file for build (project specific).", | ||
) | ||
def generate_buildspecs( | ||
flavor_root_path: Tuple[str, ...], | ||
log_level: str, | ||
output_path: str, | ||
config_file: Optional[str] | ||
): | ||
flavor_root_path: Tuple[str, ...], | ||
log_level: str, | ||
output_path: str, | ||
config_file: Optional[str], | ||
): | ||
""" | ||
This command generates the buildspec file(s) for AWS CodeBuild based on the flavors located in path "flavor_root_path". | ||
""" | ||
set_log_level(log_level) | ||
run_generate_buildspec(flavor_root_path, output_path, config_file) | ||
|
52 changes: 35 additions & 17 deletions
52
exasol_script_languages_container_ci_setup/cli/commands/generate_release_buildspec.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,51 @@ | ||
from typing import Tuple, Optional | ||
from typing import ( | ||
Optional, | ||
Tuple, | ||
) | ||
|
||
import click | ||
|
||
from exasol_script_languages_container_ci_setup.cli.cli import cli | ||
from exasol_script_languages_container_ci_setup.cli.common import add_options | ||
from exasol_script_languages_container_ci_setup.cli.options.logging import logging_options, set_log_level | ||
from exasol_script_languages_container_ci_setup.lib.run_generate_release_buildspec import run_generate_release_buildspec | ||
from exasol_script_languages_container_ci_setup.cli.options.logging import ( | ||
logging_options, | ||
set_log_level, | ||
) | ||
from exasol_script_languages_container_ci_setup.lib.run_generate_release_buildspec import ( | ||
run_generate_release_buildspec, | ||
) | ||
|
||
|
||
@cli.command() | ||
@add_options(logging_options) | ||
@click.option('--flavor-root-path', required=True, multiple=True, | ||
type=click.Path(file_okay=False, dir_okay=True, exists=True), | ||
help="Path where script language container flavors are located.") | ||
@click.option('--output-path', type=click.Path(file_okay=False, dir_okay=True, exists=True, writable=True), | ||
default="./aws-code-build/release", show_default=True, | ||
help="Path where buildspec files will be deployed.") | ||
@click.option('--config-file', type=click.Path(file_okay=True, dir_okay=False, exists=True), | ||
help="Configuration file for build (project specific).") | ||
@click.option( | ||
"--flavor-root-path", | ||
required=True, | ||
multiple=True, | ||
type=click.Path(file_okay=False, dir_okay=True, exists=True), | ||
help="Path where script language container flavors are located.", | ||
) | ||
@click.option( | ||
"--output-path", | ||
type=click.Path(file_okay=False, dir_okay=True, exists=True, writable=True), | ||
default="./aws-code-build/release", | ||
show_default=True, | ||
help="Path where buildspec files will be deployed.", | ||
) | ||
@click.option( | ||
"--config-file", | ||
type=click.Path(file_okay=True, dir_okay=False, exists=True), | ||
help="Configuration file for build (project specific).", | ||
) | ||
def generate_release_buildspecs( | ||
flavor_root_path: Tuple[str, ...], | ||
log_level: str, | ||
output_path: str, | ||
config_file: Optional[str] | ||
): | ||
flavor_root_path: Tuple[str, ...], | ||
log_level: str, | ||
output_path: str, | ||
config_file: Optional[str], | ||
): | ||
""" | ||
This command generates the buildspec file(s) for the AWS CodeBuild Release build based | ||
on the flavors located in path "flavor_root_path". | ||
""" | ||
set_log_level(log_level) | ||
run_generate_release_buildspec(flavor_root_path, output_path, config_file) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.