Permalink
Browse files

integration specs

  • Loading branch information...
tongueroo committed Aug 6, 2018
1 parent 1517425 commit 00fd484d91dbbc655c9c24f0fa1ed4e1e821fb1a
Showing with 10 additions and 8 deletions.
  1. +8 −8 .codebuild/integration.sh
  2. +2 −0 Dockerfile.base
@@ -4,18 +4,18 @@ cp .codebuild/bin/jets /usr/local/bin/jets
chmod a+x /usr/local/bin/jets
export PATH=/usr/local/bin:$PATH

cat >>.env.development <<EOL
DB_USER=$DB_USER
DB_PASS=$DB_PASS
DB_HOST=$DB_HOST
EOL

which jets

APP_NAME=demo$(date +%s)
jets new $APP_NAME # jets new runs bundle and webpacker:install
cd $APP_NAME

cat >>.env.development <<EOL
DB_USER=$DB_USER
DB_PASS=$DB_PASS
DB_HOST=$DB_HOST
EOL

jets generate scaffold Post title:string
# The DB_ environment variables are set up in the circleci environment variables
# website GUI under project settings
@@ -42,7 +42,7 @@ cat > jets.postman_environment.json <<EOL
"_postman_exported_using": "Postman/6.2.3"
}
EOL
cp .codebuild/jets.postman_collection.json .
cp $CODEBUILD_SRC_DIR/.codebuild/jets.postman_collection.json .

npm install -g newman
newman run jets.postman_collection.json -e jets.postman_environment.json
@@ -51,4 +51,4 @@ newman run jets.postman_collection.json -e jets.postman_environment.json
jets db:drop

# delete jets project
# jets delete --sure
jets delete --sure
@@ -48,4 +48,6 @@ RUN bash -exu /tmp/scripts/install-java.sh
RUN bash -exu /tmp/scripts/install-dynamodb-local.sh
RUN bash -exu /tmp/scripts/install-node.sh

RUN apt-get install -y zip

CMD ["/bin/bash"]

0 comments on commit 00fd484

Please sign in to comment.