diff --git a/.circleci/config.yml b/.circleci/config.yml index 2b6a7fe900..fd899fbd95 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -63,10 +63,7 @@ jobs: - v1-deps-{{ checksum "package-lock.json" }} - run: name: Remix Libs Linting - command: npm run lint:libs - npm run lint - npm run lint remix-ide-e2e - + command: ./apps/remix-ide/ci/lint.sh remix-libs: docker: # specify the version you desire here diff --git a/apps/remix-ide/ci/lint.sh b/apps/remix-ide/ci/lint.sh new file mode 100644 index 0000000000..34340671ab --- /dev/null +++ b/apps/remix-ide/ci/lint.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +set -e + +BUILD_ID=${CIRCLE_BUILD_NUM:-${TRAVIS_JOB_NUMBER}} +echo "$BUILD_ID" +TEST_EXITCODE=0 + +npm run lint || TEST_EXITCODE=1 +npm run lint:libs || TEST_EXITCODE=1 +npm run lint remix-ide-e2e || TEST_EXITCODE=1 + +echo "$TEST_EXITCODE" +if [ "$TEST_EXITCODE" -eq 1 ] +then + exit 1 +fi