-
Notifications
You must be signed in to change notification settings - Fork 72k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from nightscout/dev
Upgrade
- Loading branch information
Showing
63 changed files
with
2,949 additions
and
579 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,23 @@ | ||
language: node_js | ||
sudo: false | ||
node_js: | ||
- "0.10" | ||
- "0.12" | ||
- 0.10 | ||
- 0.12 | ||
- 4 | ||
- 5 | ||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- node_js: 4 | ||
- node_js: 5 | ||
services: mongodb | ||
script: make travis | ||
after_script: make report | ||
env: | ||
- CXX=g++-4.8 | ||
addons: | ||
apt: | ||
sources: | ||
- ubuntu-toolchain-r-test | ||
packages: | ||
- g++-4.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,315 @@ | ||
{ | ||
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"siteName": { | ||
"type": "string" | ||
}, | ||
"hostingPlanName": { | ||
"type": "string" | ||
}, | ||
"siteLocation": { | ||
"type": "string" | ||
}, | ||
"sku": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"Free", | ||
"Shared", | ||
"Basic", | ||
"Standard" | ||
], | ||
"defaultValue": "Free" | ||
}, | ||
"workerSize": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"0", | ||
"1", | ||
"2" | ||
], | ||
"defaultValue": "0" | ||
}, | ||
"repoUrl": { | ||
"type": "string" | ||
|
||
}, | ||
"branch": { | ||
"type": "string" | ||
}, | ||
"mongoConnection": { | ||
"type": "string" | ||
}, | ||
"displayUnits": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"mg/dl", | ||
"mmol" | ||
], | ||
"defaultValue": "mg/dl" | ||
}, | ||
"apiSecret": { | ||
"type": "string", | ||
"minLength": "12", | ||
"defaultValue": "Enter an API secret. Must be at least 12 characters" | ||
}, | ||
"treatment_auth": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"on", | ||
"off" | ||
], | ||
"defaultValue": "on" | ||
}, | ||
"theme": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"default", | ||
"colors", | ||
"colorblindfriendly" | ||
], | ||
"defaultValue": "colors", | ||
}, | ||
"time_format": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"12", | ||
"24" | ||
], | ||
"defaultValue": "24", | ||
}, | ||
"language": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"bg", | ||
"cs", | ||
"dk", | ||
"de", | ||
"en", | ||
"es", | ||
"fr", | ||
"he", | ||
"hr", | ||
"it", | ||
"nb", | ||
"pl", | ||
"pt", | ||
"ro", | ||
"sv", | ||
"fi" | ||
], | ||
"defaultValue": "en", | ||
}, | ||
"custom_title": { | ||
"type": "string", | ||
"defaultValue": "Nightscout", | ||
}, | ||
"alarm_high": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"on", | ||
"off" | ||
], | ||
"defaultValue": "off", | ||
}, | ||
"alarm_low": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"on", | ||
"off" | ||
], | ||
"defaultValue": "off", | ||
}, | ||
"alarm_timeago_urgent": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"on", | ||
"off" | ||
], | ||
"defaultValue": "off", | ||
}, | ||
"alarm_timeago_warn": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"on", | ||
"off" | ||
], | ||
"defaultValue": "off", | ||
}, | ||
"alarm_urgent_high": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"on", | ||
"off" | ||
], | ||
"defaultValue": "off", | ||
}, | ||
"alarm_urgent_low": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"on", | ||
"off" | ||
], | ||
"defaultValue": "off", | ||
}, | ||
"basal_render": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"default", | ||
"icicle" | ||
], | ||
"defaultValue": "default", | ||
}, | ||
"enable": { | ||
"type": "string", | ||
"defaultValue": "basal bwp cage careportal cob openaps pump rawbg sage treatmentnotify", | ||
}, | ||
"night_mode": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"on", | ||
"off" | ||
], | ||
"defaultValue": "off", | ||
}, | ||
"show_plugins": { | ||
"type": "string", | ||
"defaultValue": "basal bwp cage careportal cob openaps pump rawbg sage", | ||
}, | ||
"show_rawbg": { | ||
"type": "string", | ||
"allowedValues": [ | ||
"always", | ||
"never", | ||
"noise" | ||
], | ||
"defaultValue": "never", | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"apiVersion": "2015-04-01", | ||
"name": "[parameters('hostingPlanName')]", | ||
"type": "Microsoft.Web/serverFarms", | ||
"location": "[parameters('siteLocation')]", | ||
"properties": { | ||
"sku": "[parameters('sku')]", | ||
"workerSize": "[parameters('workerSize')]", | ||
"numberOfWorkers": 1 | ||
} | ||
}, | ||
{ | ||
"apiVersion": "2015-08-01", | ||
"name": "[parameters('siteName')]", | ||
"type": "Microsoft.Web/Sites", | ||
"location": "[parameters('siteLocation')]", | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.Web/serverfarms', parameters('hostingPlanName'))]" | ||
], | ||
"tags": { | ||
"[concat('hidden-related:', resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', parameters('hostingPlanName'))]": "empty" | ||
}, | ||
"properties": { | ||
"serverFarmId": "[parameters('hostingPlanName')]", | ||
"siteConfig": { | ||
"appSettings": [ | ||
{ | ||
"name": "MONGO_CONNECTION", | ||
"value": "[parameters('mongoConnection')]" | ||
}, | ||
{ | ||
"name": "DISPLAY_UNITS", | ||
"value": "[parameters('displayUnits')]" | ||
}, | ||
{ | ||
"name": "API_SECRET", | ||
"value": "[parameters('apiSecret')]" | ||
}, | ||
{ | ||
"name": "TREATMENT_AUTH", | ||
"value": "[parameters('TREATMENT_AUTH')]" | ||
}, | ||
{ | ||
"name": "THEME", | ||
"value": "[parameters('theme')]" | ||
}, | ||
{ | ||
"name": "TIME_FORMAT", | ||
"value": "[parameters('time_format')]" | ||
}, | ||
|
||
{ | ||
"name": "LANGUAGE", | ||
"value": "[parameters('language')]" | ||
}, | ||
{ | ||
"name": "CUSTOM_TITLE", | ||
"value": "[parameters('custom_title')]" | ||
}, | ||
{ | ||
"name": "ALARM_HIGH", | ||
"value": "[parameters('alarm_high')]" | ||
}, | ||
{ | ||
"name": "ALARM_LOW" , | ||
"value": "[parameters('alarm_low')]" | ||
}, | ||
{ | ||
"name": "ALARM_TIMEAGO_URGENT" , | ||
"value": "[parameters('alarm_timeago_urgent')]" | ||
}, | ||
{ | ||
"name": "ALARM_TIMEAGO_WARN" , | ||
"value": "[parameters('alarm_timeago_warn')]" | ||
}, | ||
{ | ||
"name": "ALARM_URGENT_HIGH" , | ||
"value": "[parameters('alarm_urgent_high')]" | ||
}, | ||
{ | ||
"name": "ALARM_URGENT_LOW", | ||
"value": "[parameters('alarm_urgent_low')]" | ||
}, | ||
{ | ||
"name": "BASAL_RENDER" , | ||
"value": "[parameters('basal_render')]" | ||
}, | ||
{ | ||
"name": "ENABLE" , | ||
"value": "[parameters('enable')]" | ||
}, | ||
{ | ||
"name": "NIGHT_MODE" , | ||
"value": "[parameters('night_mode')]" | ||
}, | ||
{ | ||
"name": "SHOW_PLUGINS" , | ||
"value": "[parameters('show_plugins')]" | ||
}, | ||
{ | ||
"name": "SHOW_RAWBG" , | ||
"value": "[parameters('show_rawbg')]" | ||
} | ||
|
||
|
||
] | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"apiVersion": "2015-08-01", | ||
"name": "web", | ||
"type": "sourcecontrols", | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.Web/Sites', parameters('siteName'))]" | ||
], | ||
"properties": { | ||
"RepoUrl": "[parameters('repoUrl')]", | ||
"branch": "[parameters('branch')]", | ||
"IsManualIntegration": true | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.