name-db icon indicating copy to clipboard operation
name-db copied to clipboard

Patch 16 with travis integration fixes

Open copolycube opened this issue 5 years ago • 6 comments

Fixed the travis integration so that it works again this lead to some error detections in the checked names, which I also corrected to make them all compliants.

copolycube avatar Oct 01 '20 13:10 copolycube

@bluzi could you please have a look at this and validate if you agree with the fix ? Thanks in advance :-) (more or less fixing #191 )

copolycube avatar Oct 01 '20 19:10 copolycube

Build failed

Hey Copolycube, Please read the following log in order to understand the failure reason. It'll be awesome if you fix what's wrong and commit the changes.

Node.js: 8

npm test
> [email protected] test /home/travis/build/bluzi/name-db
> mocha



  name files
    1) should contain valid JSON
    2) should contain a lowercase name, same as the filename
    3) should not have duplicate names
    4) should have ISO-639-3 language codes
    5) should have correct structure

  Translations
    6) should be lowercase

  Sex
    7) should be "m", "f" or "u"
    8) should be lowercase


  0 passing (56ms)
  8 failing

  1) name files
       should contain valid JSON:
     Error: Error in name file "christian.json": Invalid JSON file 
SyntaxError: Unexpected token } in JSON at position 188
      at Context.it (test/test.js:16:23)

  2) name files
       should contain a lowercase name, same as the filename:
     SyntaxError: Unexpected token } in JSON at position 188
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:24:31)

  3) name files
       should not have duplicate names:
     SyntaxError: Unexpected token } in JSON at position 188
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:35:31)

  4) name files
       should have ISO-639-3 language codes:
     SyntaxError: Unexpected token } in JSON at position 188
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:47:31)

  5) name files
       should have correct structure:
     Error: Error in name file "christian.json":
SyntaxError: Unexpected token } in JSON at position 188
      at Context.it (test/test.js:106:23)

  6) Translations
       should be lowercase:
     SyntaxError: Unexpected token } in JSON at position 188
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:116:31)

  7) Sex
       should be "m", "f" or "u":
     SyntaxError: Unexpected token } in JSON at position 188
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:131:31)

  8) Sex
       should be lowercase:
     SyntaxError: Unexpected token } in JSON at position 188
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:145:31)



npm ERR! Test failed.  See above for more details.

TravisBuddy avatar Oct 02 '20 19:10 TravisBuddy

Build failed

Hey Copolycube, Please read the following log in order to understand the failure reason. It'll be awesome if you fix what's wrong and commit the changes.

Node.js: 8

npm test
> [email protected] test /home/travis/build/bluzi/name-db
> mocha



  name files
    1) should contain valid JSON
    2) should contain a lowercase name, same as the filename
    3) should not have duplicate names
    4) should have ISO-639-3 language codes
    5) should have correct structure

  Translations
    6) should be lowercase

  Sex
    7) should be "m", "f" or "u"
    8) should be lowercase


  0 passing (17ms)
  8 failing

  1) name files
       should contain valid JSON:
     Error: Error in name file "abigael.json": Invalid JSON file 
SyntaxError: Unexpected token . in JSON at position 4
      at Context.it (test/test.js:16:23)

  2) name files
       should contain a lowercase name, same as the filename:
     SyntaxError: Unexpected token . in JSON at position 4
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:24:31)

  3) name files
       should not have duplicate names:
     SyntaxError: Unexpected token . in JSON at position 4
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:35:31)

  4) name files
       should have ISO-639-3 language codes:
     SyntaxError: Unexpected token . in JSON at position 4
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:47:31)

  5) name files
       should have correct structure:
     Error: Error in name file "abigael.json":
SyntaxError: Unexpected token . in JSON at position 4
      at Context.it (test/test.js:106:23)

  6) Translations
       should be lowercase:
     SyntaxError: Unexpected token . in JSON at position 4
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:116:31)

  7) Sex
       should be "m", "f" or "u":
     SyntaxError: Unexpected token . in JSON at position 4
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:131:31)

  8) Sex
       should be lowercase:
     SyntaxError: Unexpected token . in JSON at position 4
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:145:31)



npm ERR! Test failed.  See above for more details.

TravisBuddy avatar Oct 15 '20 16:10 TravisBuddy

Build failed

Hey Copolycube, Please read the following log in order to understand the failure reason. It'll be awesome if you fix what's wrong and commit the changes.

Node.js: 8

npm test
> [email protected] test /home/travis/build/bluzi/name-db
> mocha



  name files
    1) should contain valid JSON
    2) should contain a lowercase name, same as the filename
    3) should not have duplicate names
    4) should have ISO-639-3 language codes
    5) should have correct structure

  Translations
    6) should be lowercase

  Sex
    7) should be "m", "f" or "u"
    8) should be lowercase


  0 passing (176ms)
  8 failing

  1) name files
       should contain valid JSON:
     Error: Error in name file "sai.json": Invalid JSON file 
SyntaxError: Unexpected string in JSON at position 250
      at Context.it (test/test.js:16:23)

  2) name files
       should contain a lowercase name, same as the filename:
     SyntaxError: Unexpected string in JSON at position 250
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:24:31)

  3) name files
       should not have duplicate names:
     SyntaxError: Unexpected string in JSON at position 250
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:35:31)

  4) name files
       should have ISO-639-3 language codes:
     SyntaxError: Unexpected string in JSON at position 250
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:47:31)

  5) name files
       should have correct structure:
     Error: Error in name file "sai.json":
SyntaxError: Unexpected string in JSON at position 250
      at Context.it (test/test.js:106:23)

  6) Translations
       should be lowercase:
     SyntaxError: Unexpected string in JSON at position 250
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:116:31)

  7) Sex
       should be "m", "f" or "u":
     SyntaxError: Unexpected string in JSON at position 250
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:131:31)

  8) Sex
       should be lowercase:
     SyntaxError: Unexpected string in JSON at position 250
      at JSON.parse (<anonymous>)
      at Context.it (test/test.js:145:31)



npm ERR! Test failed.  See above for more details.

TravisBuddy avatar Oct 15 '20 17:10 TravisBuddy

Hello @bluzi are you still maintaining this project ?

copolycube avatar Oct 04 '21 20:10 copolycube

@bluzi Hello, this PR should allow the CI on this project to be re-activated correctly :-)

copolycube avatar Oct 12 '22 21:10 copolycube