Permalink
Browse files

allow integration.sh test script to run locally

  • Loading branch information...
tongueroo committed Aug 25, 2018
1 parent 3f0518b commit 1838b66295f504c7a7d4b3b11c9c1a80c44b199d
Showing with 7 additions and 6 deletions.
  1. +6 −6 .codebuild/integration.sh
  2. +1 −0 .gitignore
@@ -8,6 +8,12 @@ if [ -n "$CODEBUILD_SRC_DIR" ]; then
export PATH=/usr/local/bin:$PATH
which jets
fi

# Locally set the CODEBUILD_SRC_DIR to make script simpler
# Do this before the cd-ing into the newly created directory.
if [ -z $CODEBUILD_SRC_DIR ]; then
CODEBUILD_SRC_DIR=$(pwd)
fi
set -u

APP_NAME=demo$(date +%s)
@@ -54,12 +60,6 @@ cat > jets.postman_environment.json <<EOL
}
EOL

# locally set the CODEBUILD_SRC_DIR to make script simpler
set +u
if [ -z $CODEBUILD_SRC_DIR ]; then
CODEBUILD_SRC_DIR=$(pwd)
fi
set -u
cp $CODEBUILD_SRC_DIR/.codebuild/jets.postman_collection.json .

npm install -g newman
@@ -17,3 +17,4 @@ tmp

spec/fixtures/project/handlers
.codebuild/definitions
demo1*

0 comments on commit 1838b66

Please sign in to comment.