Build: #507 was successful

Job: Test, build and push docker image was successful

Stages & jobs

  1. Default Stage

  2. QA

Job result summary

Completed
Duration
11 minutes
Agent
yue.openmrs.org
Revision
587a266201cbf533553b60e05a92f7f4e36919bd 587a266201cbf533553b60e05a92f7f4e36919bd
Total tests
149
Successful since
#435 ()

Tests

  • 149 tests in total
  • 7 seconds taken in total.

Error summary

The build generated some errors. See the full build log for more details.


    > 1 | import React from 'react';
        |        ^
      2 | import { mount } from 'enzyme';
      3 | import { MemoryRouter } from 'react-router-dom';
      4 | import NotFound from '../../components/NotFound';

      at raise (node_modules/@babel/parser/lib/index.js:6325:17)
      at unexpected (node_modules/@babel/parser/lib/index.js:7642:16)
      at expect (node_modules/@babel/parser/lib/index.js:7628:28)
      at parseNamedImportSpecifiers (node_modules/@babel/parser/lib/index.js:11214:10)
      at parseImport (node_modules/@babel/parser/lib/index.js:11167:39)
      at parseStatementContent (node_modules/@babel/parser/lib/index.js:9927:27)
      at parseStatement (node_modules/@babel/parser/lib/index.js:9829:17)
      at parseStatement (node_modules/@babel/parser/lib/index.js:2021:26)
      at parseBlockOrModuleBlockBody (node_modules/@babel/parser/lib/index.js:10405:25)
      at parseBlockBody (node_modules/@babel/parser/lib/index.js:10392:10)

FAIL src/tests/Title.test.js
  ● Test suite failed to run

    SyntaxError: /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/src/tests/Title.test.js: Unexpected token, expected "{" (1:7)

    > 1 | import React from 'react';
        |        ^
      2 | import { mount } from 'enzyme';
      3 | import Title from '../components/Title';
      4 |

      at raise (node_modules/@babel/parser/lib/index.js:6325:17)
      at unexpected (node_modules/@babel/parser/lib/index.js:7642:16)
      at expect (node_modules/@babel/parser/lib/index.js:7628:28)
      at parseNamedImportSpecifiers (node_modules/@babel/parser/lib/index.js:11214:10)
      at parseImport (node_modules/@babel/parser/lib/index.js:11167:39)
      at parseStatementContent (node_modules/@babel/parser/lib/index.js:9927:27)
      at parseStatement (node_modules/@babel/parser/lib/index.js:9829:17)
      at parseStatement (node_modules/@babel/parser/lib/index.js:2021:26)
      at parseBlockOrModuleBlockBody (node_modules/@babel/parser/lib/index.js:10405:25)
      at parseBlockBody (node_modules/@babel/parser/lib/index.js:10392:10)

FAIL src/tests/dictionaryConcepts/components/MapType.test.js
  ● Test suite failed to run

    SyntaxError: /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/src/tests/dictionaryConcepts/components/MapType.test.js: Unexpected token, expected "{" (1:7)

    > 1 | import React from 'react';
        |        ^
      2 | import { shallow } from 'enzyme';
      3 | import MapType from '../../../components/dictionaryConcepts/components/MapType';
      4 |

      at raise (node_modules/@babel/parser/lib/index.js:6325:17)
      at unexpected (node_modules/@babel/parser/lib/index.js:7642:16)
      at expect (node_modules/@babel/parser/lib/index.js:7628:28)
      at parseNamedImportSpecifiers (node_modules/@babel/parser/lib/index.js:11214:10)
      at parseImport (node_modules/@babel/parser/lib/index.js:11167:39)
      at parseStatementContent (node_modules/@babel/parser/lib/index.js:9927:27)
      at parseStatement (node_modules/@babel/parser/lib/index.js:9829:17)
      at parseStatement (node_modules/@babel/parser/lib/index.js:2021:26)
      at parseBlockOrModuleBlockBody (node_modules/@babel/parser/lib/index.js:10405:25)
      at parseBlockBody (node_modules/@babel/parser/lib/index.js:10392:10)

FAIL src/tests/App.test.js
  ● Test suite failed to run

    SyntaxError: /home/bamboo-agent/bamboo-agent/xml-data/build-dir/OCL-OC-JOB1/src/tests/App.test.js: Unexpected token, expected "{" (1:7)

    > 1 | import React from 'react';
        |        ^
      2 | import ReactDOM from 'react-dom';
      3 | import App from '../App';
      4 |

      at raise (node_modules/@babel/parser/lib/index.js:6325:17)
      at unexpected (node_modules/@babel/parser/lib/index.js:7642:16)
      at expect (node_modules/@babel/parser/lib/index.js:7628:28)
      at parseNamedImportSpecifiers (node_modules/@babel/parser/lib/index.js:11214:10)
      at parseImport (node_modules/@babel/parser/lib/index.js:11167:39)
      at parseStatementContent (node_modules/@babel/parser/lib/index.js:9927:27)
      at parseStatement (node_modules/@babel/parser/lib/index.js:9829:17)
      at parseStatement (node_modules/@babel/parser/lib/index.js:2021:26)
      at parseBlockOrModuleBlockBody (node_modules/@babel/parser/lib/index.js:10405:25)
      at parseBlockBody (node_modules/@babel/parser/lib/index.js:10392:10)


Test Suites: 66 failed, 7 passed, 73 total
Tests:       150 passed, 150 total
Snapshots:   0 total
Time:        44.904s
Ran all test suites.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! openmrs-ocl-client@0.1.0 test:bamboo: `react-scripts test --env=jsdom -u --ci --coverage --testResultsProcessor ./node_modules/jest-junit`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the openmrs-ocl-client@0.1.0 test:bamboo script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/bamboo-agent/.npm/_logs/2019-08-27T08_54_15_251Z-debug.log
+ docker --version
+ docker login -u openmrsci -p ********
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in /home/bamboo-agent/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

+ IMAGE=openmrs/ocl-client
+ TAG=latest
+ /usr/bin/docker build --force-rm=true --tag=openmrs/ocl-client:latest .
+ docker push openmrs/ocl-client:latest
+ docker image inspect '--format={{index .RepoDigests 0}}' openmrs/ocl-client:latest