Patch 16 with travis integration fixes
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.
@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 )
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.
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.
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.
Hello @bluzi are you still maintaining this project ?
@bluzi Hello, this PR should allow the CI on this project to be re-activated correctly :-)