Skip to content

Commit

Permalink
(#103) Add REST-API tests to build-process on CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
abaliunov-sc committed Jan 24, 2018
1 parent 970bdd3 commit 505e87c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4,892 deletions.
50 changes: 25 additions & 25 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,18 +154,18 @@ jobs:
- run:
name: test-restapi
command: |
mkdir junit
cd packages/server-nodejs
mkdir junit
npm run start-hide && npm run test-restapi -- --reporter mocha-junit-reporter
environment:
MOCHA_FILE: ~/repo/junit/test-results.xml
MOCHA_FILE: junit/test-results.xml

- store_test_results:
path: ~/repo/junit
path: ~/repo/packages/server-nodejs/junit

- store_artifacts:
path: ~/repo/junit
path: ~/repo/packages/server-nodejs/junit

azure-maintenance:
docker:
Expand All @@ -190,28 +190,28 @@ workflows:

commit:
jobs:
# - build
- build
- test-rest-api
# - approve-publish-release:
# type: approval
# requires:
# - build
# filters:
# branches:
# only:
# - master
# - publish-release:
# requires:
# - build
# - approve-publish-release
# filters:
# branches:
# only:
# - master
# - deploy-demo:
# requires:
# - build
# - test-rest-api
- approve-publish-release:
type: approval
requires:
- build
filters:
branches:
only:
- master
- publish-release:
requires:
- build
- approve-publish-release
filters:
branches:
only:
- master
- deploy-demo:
requires:
- build
- test-rest-api
nightly:
triggers:
- schedule:
Expand Down
3 changes: 0 additions & 3 deletions packages/server-nodejs/api-tests/api-tests.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1021,6 +1021,3 @@ describe('Remove resources', () => {
});
});
});

// res.body, res.headers, res.status
// err.message, err.response
Loading

0 comments on commit 505e87c

Please sign in to comment.