Commit Graph

653 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth
e330402b5b Refactor the core functions into static methods
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-06-03 00:52:22 -03:00
Michal Čihař
87fd00915a Remove composer.lock after tagging release
We really want this file only on tags and not elsewhere.

Fixes #13346

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-06-02 09:53:05 +02:00
Michal Čihař
c4380018a7 Avoid .gitignore modification when commiting composer.lock
With --force we can add files which would be ignored.

Issue #13346

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-06-02 09:51:36 +02:00
Maurício Meneghini Fauth
093ed72698 Port some templates to Twig
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-05-30 22:33:25 -03:00
Michal Čihař
9d1b49ae65 Improve extracting translatable strings from Twig templates
- use separate (clean) directory to avoid messing up with stale cache
  data or other files in the temporary dir
- restore filenames for twig templates in Gettext files, the lines still
  don't match, but at least the filename is correct
- extract the _gettext function as well

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-05-17 09:23:59 +02:00
Michal Čihař
6479c830c4 Make sure that daily snapshots are from latest update
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-05-15 10:58:28 +02:00
Maurício Meneghini Fauth
113c120088 Port some templates to Twig
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-05-12 01:26:49 -03:00
Michal Čihař
6e9fc50304 Run tests during daily builds
To ensure we will not ship something broken.

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-05-09 14:11:37 +02:00
Michal Čihař
688fbc0d19 Remove build results if not running in CI mode
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-05-09 14:11:11 +02:00
Michal Čihař
b3ee1e56f8 Do not use ant for invoking testsuite
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-05-09 14:10:55 +02:00
Michal Čihař
a743cb084e Store metadata on daily release
Store timestamp and git commit, so that this can be later used by
website.

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-05-09 12:53:09 +02:00
Michal Čihař
74ec22e3cf Generate sha256 sums even for snapshots
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-05-05 15:07:08 +02:00
Michal Čihař
f6e09f2c6e Remove Twig documentation and tests from package
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-05-05 14:38:14 +02:00
Michal Čihař
4ff2c1d1b1 Remove symfony cache tests from the packages
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-05-05 14:38:08 +02:00
Michal Čihař
718a4fb9b7 Allow + in version
This will be used for snapshots.

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-05-05 14:32:47 +02:00
Michal Čihař
703054a27a Prepare create-release.sh for daily builds
Issue #12821

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-05-05 14:28:36 +02:00
Michal Čihař
ae9006e9be Use one temporary directory
Share one directory for Twig cache, SHP import and file uploads.

The code now also validates the cache directory and creates it on the
fly, so it properly detects if the directory can not be used.

Also the documentation has been improved to document securing this
directory.

Fixes #13225
Fixes #13226

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-05-05 11:08:36 +02:00
Michal Čihař
61f294062a Merge pull request #13236 from mauriciofauth/templates
Port some templates to Twig
2017-05-04 13:18:36 +02:00
Luís Pedro Algarvio
8e91ad5b35 Implement AUTOLOAD_FILE constant (#13213)
Replace hardcoded paths for autoload.php with vendor defined AUTOLOAD_FILE constant.

Signed-off-by: Luís Pedro Algarvio <lp.algarvio@gmail.com>
2017-05-04 12:24:11 +02:00
Maurício Meneghini Fauth
a35f8798f4 Port some templates to Twig
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-05-03 22:52:39 -03:00
Michal Čihař
f3a4d67347 Merge pull request #13205 from ibennetch/13201-no-gitattributes
Remove .gitattributes files when creating release
2017-04-28 16:32:30 +02:00
Maurício Meneghini Fauth
1b9d125d3e Port some templates to Twig
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-04-20 00:14:06 -03:00
Isaac Bennetch
7fc01204ab Remove .gitattributes files when creating release.
Fixes #13201

Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
2017-04-18 14:21:24 -04:00
Michal Čihař
561001eae0 Skip test files when generating template cache
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-04-10 13:13:41 +02:00
Michal Čihař
fbbbb85c2d Merge pull request #13100 from mauriciofauth/twig-template
Initial support for Twig template engine
2017-04-07 12:41:38 +02:00
Maurício Meneghini Fauth
d71e097593 Add Twig cache generator and bypass escape option
- Add script to generate cache files for all Twig templates
- Add option in Twig extension that bypass autoescaping

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
2017-04-06 20:33:32 -03:00
Michal Čihař
e8104393e0 Merge branch 'QA_4_7' 2017-04-04 08:46:46 +02:00
Michal Čihař
6f9a50f2e7 Do not include devel dependencies in the release
The composer require does automatically run update and thus pulling in
all things we've removed in previous step. Passing --update-no-dev
avoids this.

Fixes #13146

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-04-04 08:45:45 +02:00
Michal Čihař
e4f85624f8 Revert "Remove creating of sha1 for releases"
This reverts commit c768d12a1d.

The sha1 seems to be necessary for composer now.
2017-03-21 11:34:02 +01:00
Michal Čihař
c768d12a1d Remove creating of sha1 for releases
As there is now way to generate collisions (and tar happily ignores
additional payload), using sha1 probably no longer makes sense here.

See https://github.com/phpmyadmin/website/issues/59

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-03-21 11:29:57 +01:00
Michal Čihař
7d8b1de6ee Merge commit 'f3b44765eca8f3634f3a2574a678f5c503f2335b' 2017-03-02 14:31:12 +01:00
Michal Čihař
cbcad52b0e List longest lasting tests from the json log
Generate JSON report for tests and include it in output

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-03-02 13:31:08 +01:00
Michal Čihař
8322acb641 Merge branch 'QA_4_7' 2017-02-14 17:42:53 +01:00
Michal Čihař
7f9e346a87 Install tcpdf when building release
Signed-off-by: Michal Čihař <michal@cihar.com>
2017-02-14 17:42:34 +01:00
Isaac Bennetch
e00b03a24e Add hint about updating Docker at release time
Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
2017-02-06 09:20:33 -05:00
Michal Čihař
aa1c65a2c4 Merge pull request #12836 from nijel/source-release
Add source release, strip current ones
2017-01-25 14:02:25 +01:00
Michal Čihař
4b8fe37b05 Remove phpmyadmin vendor from being translated here
Every library should handle localization on it's own.

Fixes #12013

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-01-23 14:21:28 +01:00
Michal Čihař
b6468d9b8a Remove po files from sql-parser on creating tarball
Issue #12013

Signed-off-by: Michal Čihař <michal@cihar.com>
2017-01-23 14:21:23 +01:00
Michal Čihař
2fd4e4b2ae Merge branch 'QA_4_6' 2016-12-19 14:44:25 +01:00
Michal Čihař
53274555b6 Add source release support
See #12348

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-19 14:44:20 +01:00
Michal Čihař
b0eb82839b Add source to upload release script
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-19 14:43:09 +01:00
Michal Čihař
b567783a24 Remove codecov.yml on release
Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-19 14:33:08 +01:00
Michal Čihař
0e5cf50467 Add source release support
See #12348

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-19 14:29:58 +01:00
Michal Čihař
9dc5cccc1b Remove 7z download option
It does compress worse than tar.xz and experienced users won't have
problems using either of these.

See https://github.com/phpmyadmin/phpmyadmin/issues/12348

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-19 14:05:37 +01:00
Michal Čihař
b6b3adf08e Remove .tar.bz2 release
It's almost not downloaded and people usually can choose xz instead
which does compress better.

See https://github.com/phpmyadmin/phpmyadmin/issues/12348

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-19 14:04:08 +01:00
Michal Čihař
401ecbdfbe Remove not used option
We use 7z for creating zips for ages, this code was not used for years.

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-19 14:02:16 +01:00
Michal Čihař
60ff6f759f Create batch in a temporary file
This should avoid problems described in comments of
421e8b0f54

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-13 07:50:17 +01:00
Michal Čihař
0c5acc9127 Merge branch 'QA_4_6' 2016-12-08 11:42:07 +01:00
Michal Čihař
f2bfa7d745 Avoid running shell scripts as CGI
There is really no reason for that besides misconfigured servers.

This is followup for PMASA-2016-54

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-08 11:41:42 +01:00
Michal Čihař
3059c3021a Do not upload md5 checksums
See https://github.com/phpmyadmin/scripts/issues/4

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-11-24 10:18:43 +01:00