diff --git a/.travis.yml b/.travis.yml
index 9ae1b3e61..c35a7b96a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -54,6 +54,9 @@ install:
# Fetch monitor & stuff which is required for CWD migration tests.
- python stuff/monitor.py
+ # Bump the version of Cuckoo during tests (e.g., for new Signatures).
+ - python stuff/patch_version.py setup.py 3.0
+
- pip install -U pip setuptools
- python setup.py sdist
- pip install -e .
diff --git a/README.rst b/README.rst
index ea4e0a8bc..943cd7ee7 100644
--- a/README.rst
+++ b/README.rst
@@ -33,17 +33,17 @@ This is a development version, we do not recommend its use in production.
You can find a full documentation of the latest stable release
`here `_.
-.. image:: https://travis-ci.org/cuckoosandbox/cuckoo.png?branch=package
+.. image:: https://travis-ci.org/cuckoosandbox/cuckoo.png?branch=master
:alt: Linux Build Status
:target: https://travis-ci.org/cuckoosandbox/cuckoo
-.. image:: https://ci.appveyor.com/api/projects/status/p892esebjdbhq653/branch/package?svg=true
+.. image:: https://ci.appveyor.com/api/projects/status/p892esebjdbhq653/branch/master?svg=true
:alt: Windows Build Status
- :target: https://ci.appveyor.com/project/jbremer/cuckoo/branch/package
+ :target: https://ci.appveyor.com/project/jbremer/cuckoo/branch/master
-.. image:: https://coveralls.io/repos/github/cuckoosandbox/cuckoo/badge.svg?branch=package
+.. image:: https://coveralls.io/repos/github/cuckoosandbox/cuckoo/badge.svg?branch=master
:alt: Coverage Coverage Status
- :target: https://coveralls.io/github/cuckoosandbox/cuckoo?branch=package
+ :target: https://coveralls.io/github/cuckoosandbox/cuckoo?branch=master
.. image:: https://codecov.io/gh/cuckoosandbox/cuckoo/branch/master/graph/badge.svg
:alt: Codecov Coverage Status
diff --git a/appveyor.yml b/appveyor.yml
index e39cfc47a..298a4beb5 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -18,6 +18,9 @@ install:
# Fetch monitor & stuff which is required for setup & CWD migration tests.
- "python.exe stuff/monitor.py"
+ # Bump the version of Cuckoo during tests (e.g., for new Signatures).
+ - "python.exe stuff/patch_version.py setup.py 3.0"
+
- "python.exe setup.py sdist"
- "pip.exe install -e ."
- "pip.exe install psycopg2 mysqlclient==1.3.9 codecov flask-testing"
diff --git a/stuff/patch_version.py b/stuff/patch_version.py
new file mode 100644
index 000000000..0da3f7315
--- /dev/null
+++ b/stuff/patch_version.py
@@ -0,0 +1,16 @@
+# Copyright (C) 2017 Cuckoo Foundation.
+# This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org
+# See the file 'docs/LICENSE' for copying permission.
+
+import re
+import sys
+
+if __name__ == "__main__":
+ if len(sys.argv) != 3:
+ print "Usage: python %s " % sys.argv[0]
+ exit(1)
+
+ # Patches the version="..." string in setup.py.
+ buf = open(sys.argv[1], "rb").read()
+ buf = re.sub('version="(.*)"', 'version="%s"' % sys.argv[2], buf)
+ open(sys.argv[1], "wb").write(buf)