Re: [gentoo-portage-dev] [PATCH] Add support for travis ci

2014-07-07 Thread X dej
First, this seems fishy:
$(python -V 21 | sed -e 's/Python //' -e 's/\.[^\.]*$//')
'[^\.]' and '[^.\]' means the same: anything except dots and backslashes.
'[^.]' seems more reasonable.

Second, as this is an argument to sudo, I would prefer the more secure:
$(python -V 21 | grep -o '[1-9][0-9]*\.[0-9]*')
which only let numbers, dots and spaces pass its filter (assuming that python
-V may contain garbage).

Xdej

2014-07-06 22:25 UTC+02:00, Manuel Rüger mr...@gentoo.org:
 Updated patch, I forgot to remove debug statement.

 Manuel

 On 07/06/2014 10:17 PM, Manuel Rüger wrote:
 This patch adds support for travis continuous integration.

 Example output: https://travis-ci.org/mrueg/portage/builds/29268364

 Cheers

 Manuel





[gentoo-portage-dev] [PATCH] Add support for travis ci

2014-07-06 Thread Manuel Rüger
This patch adds support for travis continuous integration.

Example output: https://travis-ci.org/mrueg/portage/builds/29268364

Cheers

Manuel
From 3bee849868cf53fb5814f81fa368e91b59f7220b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20R=C3=BCger?= mr...@gentoo.org
Date: Mon, 30 Jun 2014 18:13:51 +0200
Subject: [PATCH] Add support for travis-ci.


diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 000..c114a4a
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,10 @@
+language: python
+python:
+ - 2.6
+ - 2.7
+ - 3.2
+ - 3.3
+script:
+ - echo $(python -V 21 | sed -e 's/Python//' -e 's/\.[^\.]*$//')
+ - sudo ln -s /usr/bin/python /usr/bin/python$(python -V 21 | sed -e 's/Python //' -e 's/\.[^\.]*$//')
+ - ./runtests.sh --python-versions $(python -V 21 | sed -e 's/Python //' -e 's/\.[^\.]*$//')
\ No newline at end of file
diff --git a/README b/README
deleted file mode 100644
index 5558dde..000
--- a/README
+++ /dev/null
@@ -1,49 +0,0 @@
-About Portage
-=
-
-Portage is a package management system based on ports collections. The
-Package Manager Specification Project (PMS) standardises and documents 
-the behaviour of Portage so that the Portage tree can be used by other 
-package managers.
-
-
-Dependencies
-
-
-Python and Bash should be the only hard dependencies. Python 2.6 is the
-minimum supported version.
-
-
-Licensing and Legalese
-===
-
-Portage is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-version 2 as published by the Free Software Foundation.
-
-Portage is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with Portage; if not, write to the Free Software
-Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  
-02110-1301, USA.
-
-
-More information
-
-
--DEVELOPING contains some code guidelines.
--LICENSE contains the GNU General Public License version 2.
--NEWS contains new features/major bug fixes for each version.
--RELEASE NOTES contains mainly upgrade information for each version.
--TEST-NOTES contains Portage unit test information.
-
-
-Links
-=
-Gentoo project page: http://www.gentoo.org/proj/en/portage/
-PMS: https://dev.gentoo.org/~ulm/pms/head/pms.html
-PMS git repo: http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git
diff --git a/README.md b/README.md
new file mode 100644
index 000..bed2ca3
--- /dev/null
+++ b/README.md
@@ -0,0 +1,53 @@
+About Portage
+=
+
+Portage is a package management system based on ports collections. The
+Package Manager Specification Project (PMS) standardises and documents 
+the behaviour of Portage so that the Portage tree can be used by other 
+package managers.
+
+
+Dependencies
+
+
+Python and Bash should be the only hard dependencies. Python 2.6 is the
+minimum supported version.
+
+
+Licensing and Legalese
+===
+
+Portage is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+version 2 as published by the Free Software Foundation.
+
+Portage is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with Portage; if not, write to the Free Software
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  
+02110-1301, USA.
+
+
+More information
+
+
+-DEVELOPING contains some code guidelines.
+-LICENSE contains the GNU General Public License version 2.
+-NEWS contains new features/major bug fixes for each version.
+-RELEASE NOTES contains mainly upgrade information for each version.
+-TEST-NOTES contains Portage unit test information.
+
+
+Links
+=
+Gentoo project page: http://www.gentoo.org/proj/en/portage/
+PMS: https://dev.gentoo.org/~ulm/pms/head/pms.html
+PMS git repo: http://git.overlays.gentoo.org/gitweb/?p=proj/pms.git
+
+Build Status
+=
+[![Build Status](https://travis-ci.org/gentoo/portage.png)](https://travis-ci.org/gentoo/portage)
-- 
2.0.0



signature.asc
Description: OpenPGP digital signature