@@ -94,23 +94,27 @@ The configuration for this is in `.travis.yml`.
9494Travis CI is set up with secrets for connecting to Vuforia.
9595These variables include those from ` vuforia_secrets.env.example ` .
9696
97- They also include another set of variables especially for running the tests on the ` master ` branch.
98- The tests are run daily against the ` master ` branch.
99- This means that when the daily request quota is used, the ` master ` branch may show as failing on the ` README ` .
100- Using the request quota on the ` master ` branch also leaves fewer requests for regular development.
101- Therefore, ` master ` is given its own Vuforia database with separate limits.
97+ To avoid hitting request quotas and to avoid conflicts when running multiple tests in prallel, we use multiple target databases.
98+
99+ Travis builds use a different credentials file depending on the build number.
100+ For example, build 2045.1 will use a different credentials file to build 2045.2.
101+ This should avoid conflicts, but in theory the same credentials file may be run across two Pull Request builds.
102+ This may cause errors.
102103
103104### How to set Travis CI secrets
104105
105106Create environment variable files for secrets:
106107
107108``` sh
108109mkdir -p ci_secrets
109- cp vuforia_secrets.env.example ci_secrets/vuforia_secrets_0.env
110- cp vuforia_secrets.env.example ci_secrets/vuforia_secrets_master.env
110+ cp vuforia_secrets.env.example ci_secrets/vuforia_secrets_1.env
111+ cp vuforia_secrets.env.example ci_secrets/vuforia_secrets_2.env
112+ ...
111113```
112114
113- Add Vuforia credentials to the file ` ci_secrets/vuforia_secrets.env ` and ` ci_secrets/vuforia_secrets_master.env ` .
115+ Add Vuforia credentials for different target databases to the new files in the ` ci_secrets/ ` directory.
116+ Add as many credentials files as there are builds in the Travis matrix.
117+ All credentials files can share the same credentials for an inactive database.
114118
115119Install the Travis CLI:
116120
0 commit comments