Changesets: Tools

master 6042a8e1

2017-09-20 02:43

dregad


Details Diff
Allow building just the txt manual
mod - docbook-manual.py Diff File

master b9cd8c7b

2017-09-19 07:16

dregad


Details Diff
Consistent file name when copying to target dir

Modern Publican releases changed the way the generated PDF files are
named from 'book.pdf' to 'product-version-book-lang.pdf'

This causes broken links in MantisBT web site's documentation page, so
we rename the files as part of copying them to the target dir.

Fixes #23369
mod - docbook-manual.py Diff File

master e8b45c28

2017-09-19 02:52

dregad


Details Diff
Redirect git checkout output to /dev/null

This avoids cluttering the log file - when redirecting STDOUT, git
checkout still displays information about the previous and new HEAD.
mod - docbook-manual-repo.py Diff File

master 722540a8

2017-09-10 15:03

dregad


Details Diff
Nightly builds: improve branch list retrieval

To get the branch list from the reference repo, the 'branches' variable
must now be set to empty.

The retrieval code now includes error handling and logging.
mod - nightly-builds.sh Diff File

master b047b367

2017-09-10 13:26

dregad


Details Diff
Nightly build: include all branches in 'origin' remote

This avoids having to manually edit the script when new maintenance
branches are created after a new release.
mod - nightly-builds.sh Diff File

master fcff6812

2017-09-10 13:23

dregad


Details Diff
Nightly builds: don't use phpenv by default

With the new server, it is not needed anymore
mod - nightly-builds.sh Diff File

master af7c4fab

2017-04-19 09:10

dregad


Details Diff
New restore issue script

Following accidental deletion of several issues, this script was written
to assist restoring individual issues including related records from a
database backup.

Issue #22747
add - restore_issue.php Diff File

master eb56109e

2017-04-13 05:03

dregad


Details Diff
Nightly builds: use specific PHP version using phpenv

To cope with outdated PHP version preventing nightly builds to complete
on master branch due to composer dependencies, phpenv has been setup on
the server and the script modified to switch to the specified version.

Fixes #22643
mod - nightly-builds.sh Diff File

master ed695667

2017-04-02 14:22

dregad


Details Diff
Nightly: update branches list

Currently supported releases as of today: master, 2.3, 2.2, 1.3
mod - nightly-builds.sh Diff File

master f5aaae8a

2017-04-02 14:20

dregad


Details Diff
Nightly: improve logging
mod - nightly-builds.sh Diff File

master bb82d8e3

2017-04-02 14:17

dregad


Details Diff
Nightly: delete old builds not in branches list

Before starting the build process itself, the script will look in the
target directory for any old builds for branches that are not part of
the specified branches list, and delete them.

This ensures we only keep nightly builds for branches under active
development

Fixes #22642
mod - nightly-builds.sh Diff File

master cfe30a2e

2017-04-02 08:12

dregad


Details Diff
Build: remove extra blank line in digest files

They are causing unnecessary warnings when validating the checksums e.g.
with `md5sum -c`
mod - buildrelease.py Diff File

master 3eae8e67

2017-04-02 07:11

dregad


Details Diff
Build: disable composer plugins and scripts execution

The nightly builds process runs as root from a cron job. This throws a
warning when executing composer.

Add recommended [1] parameters to composer install command.

Fixes #22644

[1] in https://getcomposer.org/root
mod - buildrelease-repo.py Diff File

master aacc337a

2017-04-02 07:09

dregad


Details Diff
Build: do not abort in case of composer error

If a composer error occurs, continue with the next ref's build instead
of aborting the process with exit code 1.
mod - buildrelease-repo.py Diff File

master 03d2b840

2017-03-20 09:17

dregad


Details Diff
buildrelease: install composer packages

If a composer.json file is present in the MantisBT root directory, the
script will execute 'composer install'.

If the composer.json file is invalid or some error occurs while
executing Composer, the script will abort with exit code 1.
mod - buildrelease-repo.py Diff File

master 9039c472

2017-01-28 13:40

dregad


Details Diff
Specify privilege associated with Github team

Instead of always granting 'push' access, it is now possible to set
the desired access (pull, push, admin) for each team in the config
file.
mod - config_defaults.yml Diff File
mod - github_plugin_teams.py Diff File

master e2c62ae5

2017-01-28 13:38

dregad


Details Diff
Handle invalid team name in config file
mod - github_plugin_teams.py Diff File

master d9cdccac

2017-01-28 11:40

dregad


Details Diff
Improve performance

Reduce number of Github API calls by caching repository data, and
processing that instead of making numerous has_in_repos() calls.

Benchmark shows 400% improvement in execution time (from 44s to 11s).
mod - github_plugin_teams.py Diff File

master ec00a4c3

2017-01-27 13:59

dregad


Details Diff
Ignore PHPStorm .idea files
mod - .gitignore Diff File

master da629754

2017-01-26 14:58

dregad


Details Diff
New script to update Github teams access to plugin repos

The 'Core team' and 'translatewiki.net' teams in the mantisbt-plugins
org should have push access to all repositories in the organization.

Due to the large number of repositories within the org, this becomes
painful to check manually. This script leverages the Github API to
check for any missing access, and grant it.
mod - config_defaults.yml Diff File
add - github_plugin_teams.py Diff File

master c6ab8a23

2017-01-26 14:50

dregad


Details Diff
Config module for python scripts

Implement a simple config module for Python scripts based on YAML files.

Default configuration is stored in `config_defaults.yml`. This file also
documents the available settings, which can be overriden as needed from
a `config.yml` file.
mod - .gitignore Diff File
add - config.py Diff File
add - config_defaults.yml Diff File

master db43fbe7

2017-01-11 05:53

dregad


Details Diff
Nightly builds: update list of branches to process

Add master-2.0.x
mod - nightly-builds.sh Diff File

master 75a738bd

2017-01-11 05:45

dregad


Details Diff
Nightly builds: fix bug when processing a single branch

Bash brace expansion does not work when there are no commas in the
list of branches to process.

Add special handling for when a single branch is specified.
mod - nightly-builds.sh Diff File

master bc0a3de0

2017-01-11 05:44

dregad


Details Diff
Nightly builds: add minimal console output

Useful when running the script interactively
mod - nightly-builds.sh Diff File

master da573a0d

2017-01-10 00:18

dregad


Details Diff
DB dump: fix path for anonymization script
mod - db-dump.sh Diff File
 First  Prev  1 2 3 4 5 6 7 8 9 10 11  Next  Last