Confirmed users
924
edits
| Line 97: | Line 97: | ||
== Creating a manual Shield Study XPI == | == Creating a manual Shield Study XPI == | ||
For more more information, you can visit the Container github page and read through the [https://github.com/mozilla/testpilot-containers/#containers-add-on README]. | |||
Prerequisites: | |||
* node.js and npm installed.... Instructions can be found [https://nodejs.org/en/download/package-manager/ here]. | |||
If there's no available XPI's for the new version of the test pilot, you'll need to create an XPI from the latest '''master''' branch using the following steps: | |||
* clone the latest master branch with '''git clone https://github.com/mozilla/testpilot-containers.git''' | |||
* once cloned, move into the testpilot-containers directory via '''cd testpilot-containers/''' | |||
If the version number of the shield study experiment hasn't been bummed to the next version, you'll need to manually do it via the following: | |||
* within the testpilot-containers directory, open '''package.json''' within a text editor | |||
* you'll need to adjust the version number next to '''"version":''' | |||
** example: in this case, I would change '''"version": "2.3.0"''' into '''"version": "2.4.0"''' | |||
[[File:Changing version number.png|thumbnail|center]] | |||
Once you've changed the version number under '''package.json''', you can continue with building the XPI using the following: | |||
* Within the testpilot-containers directory, type in '''npm install''' | |||
* Once '''npm install''' completes, run '''npm install -g shield-study-cli''' | |||
* create the XPI using '''npm run build-shield''' | |||
You should get a similar output as shown [https://pastebin.mozilla.org/9024664 here]. | |||
== Test Cases == | == Test Cases == | ||