Skip to content

Commit

Permalink
fix: add e2e testing
Browse files Browse the repository at this point in the history
  • Loading branch information
kyasbal committed Nov 5, 2017
1 parent 7da1cf7 commit 29b6164
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 7 additions & 5 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
machine:
node:
version: 6.9.5

test:
post:
- sh release.sh
- aws s3 cp ./coverage/ s3://coverage.grimoire.gl/core/$CIRCLE_BRANCH --recursive --region ap-northeast-1 --acl public-read
- >-
aws s3 cp ./coverage/ s3://coverage.grimoire.gl/core/$CIRCLE_BRANCH
--recursive --region ap-northeast-1 --acl public-read
override:
- npm run lint && npm run build && npm run coverage
- aws s3 cp ./register/ s3://ci.grimoire.gl/js/grimoirejs/${CIRCLE_BRANCH}_${CIRCLE_BUILD_NUM} --recursive --region ap-northeast-1 --acl public-read

- sh -x shell/e2e.sh
deployment:
deploy:
branch: master
commands:
- npm run doc
- aws s3 cp ./docs/ s3://api.grimoire.gl/core --recursive --region ap-northeast-1 --acl public-read
- >-
aws s3 cp ./docs/ s3://api.grimoire.gl/core --recursive --region
ap-northeast-1 --acl public-read
2 changes: 2 additions & 0 deletions shell/e2e.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
aws s3 cp register/ s3://$S3_BUCKET_URL/js/$CIRCLE_SHA1 --recursive --acl public-read
curl -X POST -d "repositoryURL=$CIRCLE_REPOSITORY_URL" -d "currentBranch=$CIRCLE_BRANCH" -d "currentBuildNumber=$CIRCLE_BUILD_NUM" -d "previousBuildNumber=$CIRCLE_PREVIOUS_BUILD_NUM" -d "sha1=$CIRCLE_SHA1" -d "pullRequest=$CI_PULL_REQUEST" $E2E_TRIGGER

0 comments on commit 29b6164

Please sign in to comment.