add .travis.yml

USERNAME is needed in lib/entropy/security.py.
Added support for ETP_TESTS_NONINTERACTIVE (and skipped one test).
This commit is contained in:
Sławomir Nizio
2018-08-03 22:26:18 +02:00
parent ebf470760c
commit 85174d39fa
3 changed files with 19 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
sudo: required
services:
- docker
before_install:
- docker pull sabayon/base-amd64
script:
- >
docker run -v $TRAVIS_BUILD_DIR:/entropy sabayon/base-amd64
bash -c "equo i dev-util/bsdiff; cd /entropy/lib/tests && LC_ALL=en_US.UTF-8 USERNAME=root ETP_TESTS_NONINTERACTIVE=1 ./run"
notifications:
irc: "chat.freenode.net#sabayon-infra"
+2
View File
@@ -1,3 +1,5 @@
# [![Build Status](https://travis-ci.org/Sabayon/entropy.svg?branch=master)](https://travis-ci.org/Sabayon/entropy) Sabayon overlay
# Entropy
Entropy is the binary package management of Sabayon Linux.
+2
View File
@@ -86,6 +86,8 @@ class SecurityTest(unittest.TestCase):
self.assertEqual(s_rc, 0)
self.assertEqual(self._system.available(), True)
# Asks for the passphrase.
@unittest.skipIf(os.getenv("ETP_TESTS_NONINTERACTIVE"), "ETP_TESTS_NONINTERACTIVE is set")
def test_gpg_handling(self):
# available keys should be empty