Skip to content

Commit

Permalink
Connector builder server: Fail on failing tests (#21198)
Browse files Browse the repository at this point in the history
* fail on failing command

* fix test
  • Loading branch information
Joe Reuter authored and jbfbell committed Jan 13, 2023
1 parent 64702d7 commit 2de2bb6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions airbyte-connector-builder-server/run_format.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
cd $1

# Fail script on failing command
set -e

# Pasted from https://github.com/airbytehq/airbyte/blob/master/buildSrc/src/main/groovy/airbyte-python.gradle#L85-L96
pip install 'mccabe==0.6.1'
pip install 'flake8==4.0.1'
Expand Down
3 changes: 3 additions & 0 deletions airbyte-connector-builder-server/run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
cd $1

# Fail script on failing command
set -e

# Install dependencies
pip install -e .
pip install -e '.[main]'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import requests
from airbyte_cdk.models import AirbyteLogMessage, AirbyteMessage, AirbyteRecordMessage, Level, Type
from airbyte_cdk.sources.declarative.declarative_stream import DeclarativeStream
from airbyte_cdk.sources.declarative.parsers.undefined_reference_exception import UndefinedReferenceException
from airbyte_cdk.sources.declarative.parsers.custom_exceptions import UndefinedReferenceException
from airbyte_cdk.sources.streams.http import HttpStream

from connector_builder.impl.low_code_cdk_adapter import LowCodeSourceAdapter
Expand Down

0 comments on commit 2de2bb6

Please sign in to comment.