From ae780b4876c91f548700651801e2ac0230068023 Mon Sep 17 00:00:00 2001 From: Surabhi Sharma Date: Fri, 21 Jul 2017 21:53:31 +0530 Subject: [PATCH] Test CI --- .gitignore | 2 +- .travis.yml | 19 ++++++++++++------- Procfile | 1 + package.json | 1 - 4 files changed, 14 insertions(+), 9 deletions(-) create mode 100644 Procfile diff --git a/.gitignore b/.gitignore index d70e27f4..d5bc83e9 100644 --- a/.gitignore +++ b/.gitignore @@ -21,7 +21,7 @@ Icon? Thumbs.db # Babel ES6 compiles files -dist +# dist # Directory for instrumented libs generated by jscoverage/JSCover lib-cov diff --git a/.travis.yml b/.travis.yml index 6419d762..abf89f63 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,21 @@ language: node_js node_js: - - "4.8" - - "6.10" - - "7.6" +- '7.6' services: - - mongodb +- mongodb cache: directories: - node_modules git: depth: 3 -script: - - yarn test:check-coverage +script: cross-env NODE_ENV=test ./node_modules/.bin/mocha --ui bdd --reporter spec + --colors --compilers js:babel-core/register server/tests --recursive after_script: - - yarn report-coverage +- yarn report-coverage +before_script: +- npm install -g gulp-cli +deploy: + app: codalyze-test-ci + provider: heroku + api_key: + secure: auBdU0dKRsULQaMsTFnt0Gal/YSJSQFgSz1bONqYkm+TFnSlC2W3w1BNUFAqyrUceWT90aieBRau4G9yFNUE6/MGFaxH7a2B1CYraXE2sHXQQ5+vts2mIyeMNnAWiQTiqpMjBvIVKkfLzgOdYgTgNwIZ4b6bSRqd9upCAZAbhoipFNpChSdPtKS6iAr3V7PXlHl1GOyPqURVmhi5r3snHAWk70tp5RZMEX/jSvXnQDFK+YlNyKS4LwpyS1B9UB1C+wLx5MCuijFi6l02ETD21LN3JQG800MKukG3/6Zhec2JbCzlRMMphHJk0fX2bshIpLAEuZzEd0dvOYVTJ5maMuCUijq07PTTIuTOLKCcoZFuKm+sypF9jv4lEVfQUp+dEchrfQyixJNgbuEP6qbbo00i4xzMxPMrj/l0cPI0LSSgupLS4CrrmwiVvqTx30Cr0MXY+sU2uGMNOABHVce6S7QoNv0jst9RlDd2Ab+Q+akD7/ZABGFpOE8AIADP4y9gZcoj92nn8uOpRnISgYGjdBYM9iqksTxiWqwgGWKKWXhr5Gjvc1Ql6y4LBHvtKNDHliMwGs7N9f5PLpWitY50q7NMzwuMH8mO95+WXQ1MFxFORp04p+rscTx7jr8Q+uF/SWZ20BmmmAYIyqMIvREEHKMK/s5xlT7QvrQV/ZENMKU= diff --git a/Procfile b/Procfile new file mode 100644 index 00000000..0a8ad154 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: node dist/ diff --git a/package.json b/package.json index efbac4fa..534bb2fa 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,6 @@ "build": "gulp", "lint": "esw *.js server config --color", "lint:watch": "yarn lint -- --watch", - "precommit": "yarn lint && yarn test", "test": "cross-env NODE_ENV=test ./node_modules/.bin/mocha --ui bdd --reporter spec --colors --compilers js:babel-core/register server/tests --recursive", "test:watch": "yarn test -- --watch", "test:coverage": "cross-env NODE_ENV=test ./node_modules/.bin/istanbul cover _mocha -- --ui bdd --reporter spec --colors --compilers js:babel-core/register server/tests --recursive",