version = "1.9"
if __name__ == '__main__':
- name = email = project = password = url = None
+ name = email = project = token = url = None
config = ConfigParser.RawConfigParser()
if os.path.exists(os.path.expanduser("~/.config/coverity-submit")):
covname = config.get(project, "name")
else:
covname = project
- if config.has_option(project, "password"):
- password = config.get(project, "password")
+ if config.has_option(project, "token"):
+ token = config.get(project, "token")
+ elif config.has_option(project, "password"):
+ token = config.get(project, "password")
else:
- die("Every project requires a password option.")
+ die("Every project requires a token option.")
if config.has_option(project, "email"):
email = config.get(project, "email")
elif config.has_option("ALL", "email"):
do_or_die('''curl \
--form file=@%(tmpdir)s/%(tarball)s \
--form project=%(covname)s \
- --form password=%(password)s \
+ --form token=%(token)s \
--form email=%(email)s \
--form version=%(build_version)s \
--form description=%(description)s \
tools: /usr/local/coverity/bin
[gpsd]
-password: XXXXXX
+token: XXXXXX
prebuild: scons -c
build: scons
postbuild:
[giflib]
-password: YYYYYYY
+token: YYYYYYY
prebuild: autogen.sh && make clean
build: make -k
postbuild:
[cvs-fast-export]
name: parsecvs
-password: ZZZZZZZ
+token: ZZZZZZZ
prebuild: make clean
build: make
postbuild:
<para>This configuration describes three different (real) projects;
one with an scons-based build, one with an autotools-based build, and
one with a plain makefile build. For each project you must specify the
-Coverity build password and the local build command to pass to
+project's autentication token and the local build command to pass to
cov-build. You may optionally specify local prebuild and postbuild
commands.</para>
options of versions 1.1 and previously are no longer needed, as
Coverity has changed its submission form to support direct upload of
the results tarball.</para>
+
+<para>For backward compatibity, 'password' is treated as a synonym for
+'token'; the change follows a change in the terminology of Coverity's
+configuration instructions.</para>
</refsect1>
<refsect1><title>OPERATION</title>