From 7e07557e2c95939299fd026b0cdedcf0a4353ce3 Mon Sep 17 00:00:00 2001 From: Marc Serrat Date: Mon, 3 Aug 2020 15:50:27 +0200 Subject: [PATCH] Added CI/Sonar --- .travis.yml | 19 +++++++++++++++++++ sonar-project.properties | 12 ++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .travis.yml create mode 100644 sonar-project.properties diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c540a18 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,19 @@ +language: node_js +node_js: +- 12 +script: +- npm run test && npm run build +- sonar-scanner +addons: + sonarcloud: + organization: cloudbluesonarcube + token: + secure: wTad2c6T/46x0iZ3wP9NG+hnr7XKDyo/8iAetsxcoXVJshRMpQ+Y36d6RBgInyBgryRB4TrFe17aaIM7xTmCSiX3L9QrwXeVy7794kouuQ+qYx6pjW85VC+H5cSeyab2+ywPYqR22VnsO26PMiiPovAr3M2Jzx648eexDCrSObq+pEPTu8bfIz6RBl/ET6cySAAfjvo4+ayGM2VvIxVpHR/KeICglL3lxUL7Jo0AYwwI+5+i1eIAwNtG+kMsUSh5nMrvrl6icAbQH7ebVBpLO34AgMrhnpYwQCHy+/yfyWHZskKdst7j3u2wvjQhqOspn6fhcIXWoX5Rx8iKD5m+fdTHcuTVVHWJHbThCK4HDUHNu1smTo/CdAJUB3pQn53asc1+7ZfLWQ7Tt+wQ/DglRQCt11uu2J8HpFRkLJHfibGpJejceYYPRLnq0TpiYFl4qk7zx3lJIr0ePBsayjFwB9GRLV3cWtKbEZRl3K/90YCah/brsUc9Hy8G89cIq93MvH5QyEZDJY3qfcXgvLtRNvEMUIWz1erlm6DqHAkZsjFkojob9sRwVdG/+szIe3a2zpU/6sVmU9wmRW1j8i3pO4bfX4aHc/q7Pcm3UlxVOQYPacK1NzniXTLvdiVl83IFYQPCgDti+wiQHOFN5PFwg68tnjV+F0mLrJbRpSgY4cQ= +deploy: + provider: npm + email: marc.serratbote@ingrammicro.com + api_key: + secure: RH516PUoT/NjljcbTxSgcCaEAqNXJ68D/fcgj8OHRgau/XzZ/P++Vxy9Ii955+9f1xA2OgZnqIhZSDZtP3oIj4VLeTPgGnlfE7ZQ/MdPnTxL63wcK/KtsI4FNjz6/H5fXw27eV831FYjtvfhgI0p/Z2TFHVt/Z4tKUh+g3XQpPY4CWwRDj98g4+J23K6ntqrv/OogLkEL/tpK8mMWFWJRWxYrHtaLXt6ArEwvQKvfHec0k/L6ec6/JQulUqymVRZhEHGlGLCPSIquH0FyVOao2dAdqf39Rtn7lD6bkiaeaMhmcejoI7wblt5I1j8Ni32WCWb4h/DgwNyYysPzJb+oQApHW75a/P7u5SipWejhZuqdB4mr5Boa531XcZGLMU8T4tJ4DlqpgDnEVuAWm6r2wMFT7iAkxhZcN1ZTEI0TEEsOGIcnwqaplFc2ZiZFMbzc/QW1GpYQBHzRq5tmQtf69lE3gaU3dwZXQsEoMpoTE1+tlDODXX7JWlMl1nsJM/3ba4OvTss20wCoouf5TJNB6UIG+ugfWyJygKnsMuBVNHkY82wyUfVg3sNQxROSYwgZBMCns4VkdNdSWYhHQZ9xKBEHi9mvwwKjGG20UOIttuYrv4TlLyiiX/gujMJc0a19FdJiAwrPv2DzuxMR3/KvFkMqHmZgSaa/wlUk9QRfjY= + on: + repo: cloudblue/connect-javascript-sdk + branch: master diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..60de714 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,12 @@ +sonar.projectKey=javascript-rql +sonar.organization=cloudbluesonarcube + +# This is the name and version displayed in the SonarCloud UI. +#sonar.projectName=Connect Javascript RQL +#sonar.projectVersion=1.0 + +# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. +#sonar.sources=. + +# Encoding of the source code. Default is default system encoding +#sonar.sourceEncoding=UTF-8