|
1 | 1 | Instructions to create releases |
2 | 2 | =============================== |
3 | 3 |
|
| 4 | + |
| 5 | +Preconditions |
| 6 | +------------- |
| 7 | + |
| 8 | +Operating system and Python requirements |
| 9 | +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 10 | + |
| 11 | +Generating releases has only been tested on Linux, but it ought to work the |
| 12 | +same way also on OSX and other unixes. Creating releases is only supported |
| 13 | +with Python 3.6 or newer. |
| 14 | + |
| 15 | +The ``pip`` and ``invoke`` commands below are also expected to run on Python |
| 16 | +3.6+. Alternatively, it's possible to use the ``python3.6 -m pip`` approach |
| 17 | +to run these commands. |
| 18 | + |
| 19 | +Python dependencies |
| 20 | +~~~~~~~~~~~~~~~~~~~ |
| 21 | + |
| 22 | +Many steps are automated using the generic `Invoke <http://pyinvoke.org>`_ |
| 23 | +tool with a help by our `rellu <https://github.com/robotframework/rellu>`_ |
| 24 | +utilities, but also other tools and modules are needed. A pre-condition is |
| 25 | +installing all these, and that's easiest done using `pip |
| 26 | +<http://pip-installer.org>`_ and the provided `<requirements.txt>`_ file:: |
| 27 | + |
| 28 | + pip install -r requirements.txt |
| 29 | + |
| 30 | +Using Invoke |
| 31 | +~~~~~~~~~~~~ |
| 32 | + |
| 33 | +Invoke tasks are defined in the `<tasks.py>`_ file and they are executed from |
| 34 | +the command line like:: |
| 35 | + |
| 36 | + inv[oke] task [options] |
| 37 | + |
| 38 | +Creating release |
| 39 | +---------------- |
| 40 | + |
4 | 41 | 1. Test that everything works:: |
5 | 42 |
|
| 43 | + python demoapp/server.py |
6 | 44 | robot login_tests |
7 | 45 |
|
8 | | -2. Regenerate log and report if needed using the command documented in wiki. |
9 | | - Same command as above. |
10 | | - |
11 | | -3. Move regenerated log and report to |
12 | | - https://bitbucket.org/robotframework/robotframework.bitbucket.org/src/master/WebDemo/ |
13 | | - to make them visible online. |
| 46 | +2. Move regenerated log and report to docs:: |
14 | 47 |
|
15 | | -4. Generate a new download package:: |
| 48 | + inv move-docs |
16 | 49 |
|
17 | | - ./package.py |
| 50 | +5. If README.rst has changed, generate project documentation based on it:: |
18 | 51 |
|
19 | | -5. Upload the download package to https://bitbucket.org/robotframework/webdemo/downloads |
| 52 | + inv project-docs |
0 commit comments