Skip to content
This repository has been archived by the owner on Feb 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #102 from gasserandreas/feat/#81/cleanup-automated…
Browse files Browse the repository at this point in the history
…-build

Feat/#81/cleanup automated build
  • Loading branch information
gasserandreas authored Apr 1, 2019
2 parents 8b0d591 + ff993b5 commit 1b0473d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@ The AWS Rekognition projects allows users to simple use Facial regkontion featur

### Installation
Following packages are used in development environment:
- node8 & npm 6
- node >= 8 & npm >= 6
- git
- VisualStudio Code
- Jest

### Start development
1. Install package dependencies: `npm install`
2. Start project: `npm start`
3. Run test cases: `npm run test`
4. See coverage: `npm run test:coverage`

## Deployment

Deployment is only supported by automated `Codebuild` deployment by AWS Codebuild. After merge on `develop` branch, Codebuild will automatically build and deploy to test environment. On merge on `master` production build will be deployed to prod environment.
Deployment is only supported by automated `Codebuild` deployment by AWS Codebuild. After merge on `develop` branch, Codebuild will automatically build and deploy to test environment. On merge on `master` production build will be deployed to prod environment. Version history is fully covered by `Semantic-Release`.
14 changes: 0 additions & 14 deletions buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,7 @@ phases:
pre_build:
commands:
- echo Installing npm dependencies
# - yarn install
- npm install
# - echo Check version number
# - "OLD_PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F= \"{ print $2 }\" | sed 's/[version:,\\\",]//g' | tr -d '[[:space:]]')"
# - |
# if [ -n "$CODEBUILD_SOURCE_VERSION" ]; then
# NEW_VERSION="$OLD_PACKAGE_VERSION-$CODEBUILD_SOURCE_VERSION"
# else
# NEW_VERSION="$OLD_PACKAGE_VERSION-$CODEBUILD_START_TIME"
# fi
# - |
# if [ "${BUILD_ENVIRONMENT}" != "production" ]; then
# echo "Set new version ${NEW_VERSION}"
# npm --no-git-tag-version version $NEW_VERSION
# fi
- echo Copy .env.* files into project
- aws s3 cp $S3_UTILS_BUCKET$ENV_VAR ./
build:
Expand Down

0 comments on commit 1b0473d

Please sign in to comment.