Sha256: b6066a2ed4d7077ee0bc3f416feb5d4e19769b5f00cc02f65784db8cee32664a

Contents?: true

Size: 1.18 KB

Versions: 17

Compression:

Stored size: 1.18 KB

Contents

#!/bin/bash -exu

cp .codebuild/bin/jets /usr/local/bin/jets
chmod a+x /usr/local/bin/jets
export PATH=/usr/local/bin:$PATH

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
jets db:create db:migrate

jets deploy

APP_URL=$(jets url)
cat > jets.postman_environment.json <<EOL
{
  "id": "f50e05e5-c6dd-4707-9270-82c706b2bcef",
  "name": "Jets Test1",
  "values": [
    {
      "key": "BASE_URL",
      "value": "${APP_URL}/",
      "description": "",
      "type": "text",
      "enabled": true
    }
  ],
  "_postman_variable_scope": "environment",
  "_postman_exported_at": "2018-08-06T01:39:56.523Z",
  "_postman_exported_using": "Postman/6.2.3"
}
EOL
cp $CODEBUILD_SRC_DIR/.codebuild/jets.postman_collection.json .

npm install -g newman
newman run jets.postman_collection.json -e jets.postman_environment.json

# cleanup the database
jets db:drop

# delete jets project
jets delete --sure --no-wait

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
jets-0.6.7 .codebuild/integration.sh
jets-0.6.6 .codebuild/integration.sh
jets-0.6.5 .codebuild/integration.sh
jets-0.6.4 .codebuild/integration.sh
jets-0.6.3 .codebuild/integration.sh
jets-0.6.2 .codebuild/integration.sh
jets-0.6.1 .codebuild/integration.sh
jets-0.6.0 .codebuild/integration.sh
jets-0.5.8 .codebuild/integration.sh
jets-0.5.7 .codebuild/integration.sh
jets-0.5.6 .codebuild/integration.sh
jets-0.5.5 .codebuild/integration.sh
jets-0.5.4 .codebuild/integration.sh
jets-0.5.3 .codebuild/integration.sh
jets-0.5.2 .codebuild/integration.sh
jets-0.5.1 .codebuild/integration.sh
jets-0.5.0 .codebuild/integration.sh