Skip to content

Commit 2ac7fb5

Browse files
committed
Some package file cleanup
Signed-off-by: Arbuzov Sergey <[email protected]>
1 parent d845153 commit 2ac7fb5

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ after_script:
2626

2727
after_success:
2828
- gem install package_cloud
29+
- apt-get install alien
2930
- install -d $fakeRoot
3031
- install -d $fakeRoot/DEBIAN/
3132
- install -d $fakeRoot/usr/share/doc/mmp/
@@ -61,3 +62,6 @@ after_success:
6162
- lintian --allow-root -L ">=important" /tmp/mmp.deb
6263
- cp /tmp/mmp.deb mmp~jessie.deb
6364
- if [ $PACKAGECLOUD_REPO ] package_cloud push $PACKAGECLOUD_REPO/debian/jessie mmp~jessie.deb fi
65+
- alien --to-rpm --scripts mmp~jessie.deb
66+
- cp mmp~jessie.rpm mmp-$TRAVIS_BUILD_NUMBER.rpm
67+
- if [ $PACKAGECLOUD_REPO ] package_cloud push $PACKAGECLOUD_REPO/el/7 mmp-$TRAVIS_BUILD_NUMBER.rpm fi

deploy/DEBIAN/changelog

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
1+
mmp (0.0.0+1) unstable; urgency=low
2+
2
3+
3 * Initial Release.
4+
4 * This is first iteration of Debian package.
5+
6
6+
7 -- Serge Arbuzov <[email protected]> Fri, 24 Jul 2015 01:13:31 +0300

deploy/DEBIAN/control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Section: misc
22
Priority: optional
33
Package: mmp
44
Version: 0.0.0+#build~#family
5-
Description: Evanti dyband imitation gui
5+
Description: MySQL migration tool
66
Special package to maintain mysql migrations
77
Maintainer: Sergey Arbuzov <[email protected]>
88
Architecture: all

tests/dbTestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ protected function setUp()
1616
$conf = parse_ini_file(__DIR__.'/config.ini');
1717

1818
// Make sure we have some clean, temporary output dir
19-
@rmdir($conf['savedir']);
20-
@mkdir($conf['savedir'], 0777, TRUE);
19+
exec( "rm -rf " . escapeshellarg($conf['savedir']) );
20+
@mkdir( $conf['savedir'], 0777, TRUE );
2121

2222
// Setup the system
2323
Helper::setConfig($conf);
@@ -43,7 +43,7 @@ protected function setUp()
4343
protected function tearDown()
4444
{
4545
// Remove the temporary folder
46-
@rmdir(__DIR__ . '/temp_data/');
46+
exec( "rm -rf " . escapeshellarg(__DIR__ . '/temp_data/') );
4747
}
4848

4949
/**

0 commit comments

Comments
 (0)