summaryrefslogtreecommitdiff
path: root/RELEASE.md
blob: 1c09c065a522c88b324ab2d00d02189c9425f0b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# PHP Malware Finder release documentation

## What should I do before releasing?

Thou shalt test your modifications. If everything goes fine, you should see this
message:

```
$ make tests
[+] Congratz, the XX tests succeeded!
```

Otherwise, your modifications introduced a regression, fix them,
then **test again** until all tests are passing.

## OK, it's done, how do I release my new PMF version now?

First, make sure enough modifications have been made to warrant a new release.
Since PMF provides its own debian package files, you may build a package,
hence the need to modify the changelog file to add an entry in the
`debian/changelog` file:

You should use the `dch -i` command instead of editing the changelog by hand,
but if you don't have it installed, you can add something like this:

```
nbs-phpmalwarefinder (X.Y.Z-T~deb##version+nbsYYYMMDD) distrib; urgency=XXX

  * new feature
  * bug fix
  * moar documentation

 -- yournick <your@email.com>  `date -R`
```

Then you can commit on our git repository:

```
$ git commit -am "X.Y.Z"
$ git tag X.Y.Z
$ git push --tags
```

Do not forget to update the [milestones on github](
https://github.com/nbs-system/php-malware-finder/milestones ).