Visual-Regression-Tracker / sdk-python

Apache License 2.0
4 stars 4 forks source link

Add configuration via config file #18

Closed dcrowe closed 4 years ago

dcrowe commented 4 years ago

Read file vrt.json from project root with structure:

{
      "apiUrl": "http://162.243.161.172:4200",
      "project": "VRT",
      "apiKey": "SECRET",
      "branchName": "master",
      "enableSoftAssert": false,
      "ciBuildId": "SOME_UNIQUE_ID"
}

env variables example:

VRT_APIURL="http://localhost:4200" 
VRT_PROJECT="Default project" 
VRT_APIKEY="tXZVHX0EA4YQM1MGDD" 
VRT_CIBUILDID="commit_sha" 
VRT_BRANCHNAME="develop" 
VRT_ENABLESOFTASSERT=true

Acceptance criteria:

dcrowe commented 4 years ago

Have also updated examples here: https://github.com/Visual-Regression-Tracker/examples-python/pull/3

pashidlos commented 4 years ago

you did it already with env variables 👍 gonna include it into other SDKs AC