From 85174d39fa062619afcb37bd2b08b29d3253eab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Nizio?= Date: Fri, 3 Aug 2018 22:26:18 +0200 Subject: [PATCH] add .travis.yml USERNAME is needed in lib/entropy/security.py. Added support for ETP_TESTS_NONINTERACTIVE (and skipped one test). --- .travis.yml | 15 +++++++++++++++ README.md | 2 ++ lib/tests/security.py | 2 ++ 3 files changed, 19 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..b2049a675 --- /dev/null +++ b/.travis.yml @@ -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" diff --git a/README.md b/README.md index a407035df..ba3043c95 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/lib/tests/security.py b/lib/tests/security.py index e930756d0..230e24e28 100644 --- a/lib/tests/security.py +++ b/lib/tests/security.py @@ -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