annotate demostaticweb.cfg @ 185:e1c7cd896310

Rework test/filesupport.py so that test cases always use their own temporary directory. Before, the test cases had to ensure this themselves. Adapt the test cases.
author Bernhard Herzog <bh@intevation.de>
date Thu, 26 Jun 2008 16:23:26 +0000
parents 8ec9ed76d67b
children ef87d30468b6
rev   line source
68
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
1 # Demo config file for publishstaticweb.py. The default config file
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
2 # used by publishstaticweb.py is staticweb.cfg, so to use this file as
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
3 # the basis for your configuration, copy or rename this file and adapt
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
4 # it to your needs.
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
5
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
6 [staticweb]
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
7 # Username and host on which the treepackager runs. publishstaticweb.py
78
9a602d8eaa60 initial revision of the subversion repository
Thomas Arendsen Hein <thomas@intevation.de>
parents: 76
diff changeset
8 # has to be able to connect to that host as the build_user via ssh
9a602d8eaa60 initial revision of the subversion repository
Thomas Arendsen Hein <thomas@intevation.de>
parents: 76
diff changeset
9 # without knowing the password. This is best achieved with the
68
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
10 # ssh-agent. Also, publishstaticweb.py uses rsync to copy files from
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
11 # build_host to the local host.
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
12 build_user: builder
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
13 build_host: localhost
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
14
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
15 # the program to run on build_host to create the static web-page.
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
16 # Currently publishstaticweb.py assumes that the default configuration
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
17 # for that program works.
82
3b9f35a50abf Make the defaults a bit more useful:
Bernhard Herzog <bh@intevation.de>
parents: 78
diff changeset
18 build_create: ~/treepkg/bin/createstaticweb.py
68
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
19
158
8ec9ed76d67b Make the template used by bin/publishstaticweb.py configurable.
Bernhard Herzog <bh@intevation.de>
parents: 107
diff changeset
20 # The template for the web-page. This value is passed as the
8ec9ed76d67b Make the template used by bin/publishstaticweb.py configurable.
Bernhard Herzog <bh@intevation.de>
parents: 107
diff changeset
21 # --status-template argument to the build_create command on the build
8ec9ed76d67b Make the template used by bin/publishstaticweb.py configurable.
Bernhard Herzog <bh@intevation.de>
parents: 107
diff changeset
22 # host. It should be either an absolute filename or a filename relative
8ec9ed76d67b Make the template used by bin/publishstaticweb.py configurable.
Bernhard Herzog <bh@intevation.de>
parents: 107
diff changeset
23 # to the ~/treepkg/web/ directory.
8ec9ed76d67b Make the template used by bin/publishstaticweb.py configurable.
Bernhard Herzog <bh@intevation.de>
parents: 107
diff changeset
24 build_template: status-by-startdate.html
8ec9ed76d67b Make the template used by bin/publishstaticweb.py configurable.
Bernhard Herzog <bh@intevation.de>
parents: 107
diff changeset
25
68
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
26 # the directory on build_host where the static web-site should be put.
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
27 # This value is used as the parameter to the build_create command on
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
28 # build_host.
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
29 build_dir: /tmp/treepkg-web
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
30
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
31 # Username and host on which to publish the static pages.
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
32 # publishstaticweb.py uses rsync to copy the files from the local cache
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
33 # to the publish_host.
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
34 publish_user: builder
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
35 publish_host: localhost
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
36
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
37 # the directory on the publish_host where the web-site resides. It's
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
38 # the directory where the index.html file will be found. The script may
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
39 # delete files under that directory.
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
40 publish_dir: /tmp/treepkg-status
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
41
57a0b747ea3e add publishstaticweb.py and demo config file
Bernhard Herzog <bh@intevation.de>
parents:
diff changeset
42 # local cache directory. publishstaticweb.py may delete it and its
76
7c55fb368d0b web: expand the cachedir value of of staticweb.cfg
Bernhard Herzog <bh@intevation.de>
parents: 68
diff changeset
43 # contents. The value is passed through the python functions
7c55fb368d0b web: expand the cachedir value of of staticweb.cfg
Bernhard Herzog <bh@intevation.de>
parents: 68
diff changeset
44 # os.path.expanduser and os.path.expandvars, so references to home
7c55fb368d0b web: expand the cachedir value of of staticweb.cfg
Bernhard Herzog <bh@intevation.de>
parents: 68
diff changeset
45 # directories of the form ~ or ~user at the beginning of the value and
7c55fb368d0b web: expand the cachedir value of of staticweb.cfg
Bernhard Herzog <bh@intevation.de>
parents: 68
diff changeset
46 # environment variable references of the form $VAR or ${VAR} are
7c55fb368d0b web: expand the cachedir value of of staticweb.cfg
Bernhard Herzog <bh@intevation.de>
parents: 68
diff changeset
47 # expanded.
107
38aeaa34fa8c Include the build host in the default value of cachedir in demostaticweb.cfg
Bernhard Herzog <bh@intevation.de>
parents: 82
diff changeset
48 cachedir: /tmp/${LOGNAME}/treepkg-status-cache/%(build_host)s
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)