mirror of
https://github.com/Guake/guake.git
synced 2025-10-26 11:27:13 +00:00
boostrap script for travis
Signed-off-by: Gaetan Semet <gaetan@xeberon.net>
This commit is contained in:
parent
bc5c2b0672
commit
0aa35fd2ec
13
.travis.yml
13
.travis.yml
@ -1,9 +1,18 @@
|
||||
language: python
|
||||
|
||||
python:
|
||||
- "3.4"
|
||||
- "3.5"
|
||||
|
||||
virtualenv:
|
||||
system_site_packages: true
|
||||
|
||||
before_install:
|
||||
- ./bootstrap-debian.sh
|
||||
|
||||
install:
|
||||
- ./install.py --target=virtualenv
|
||||
- ./install.py
|
||||
- ./install.py --uninstall=virtualenv
|
||||
|
||||
script:
|
||||
- ./install.py --target=system --checks --tests
|
||||
- ./install.py --checks --tests
|
||||
|
||||
20
README.rst
20
README.rst
@ -4,4 +4,24 @@ Guake 3 README
|
||||
Setting up a developer's environment
|
||||
------------------------------------
|
||||
|
||||
On Ubuntu and Debian, use
|
||||
|
||||
./bootstrap-debian.sh
|
||||
|
||||
Install virtualenv with:
|
||||
./install.py
|
||||
|
||||
Setting up to your system
|
||||
-------------------------
|
||||
|
||||
./install.py --target=system
|
||||
|
||||
Note: not supported yet. Installing on your system directly is a **wrong** idea. It should always be
|
||||
installed in a proper virtualenv, to avoid messing with your system modules. Of course, Guake relies
|
||||
on VTE and GTK modules that shall come from your system, but there is no reason to let Guake
|
||||
override any python package of your system.
|
||||
|
||||
When Guake is packaged in a distribution (Ubuntu, Debian, Fedora,...), in this case only it makes
|
||||
sense to install it outside of a virtualenv.
|
||||
However, please see:
|
||||
https://hynek.me/articles/python-deployment-anti-patterns/
|
||||
|
||||
3
bootstrap-debian.sh
Executable file
3
bootstrap-debian.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
sudo apt-get install -q python-dbus python3-dbus python-gi python3-gi
|
||||
@ -133,6 +133,7 @@ elif options.target == "virtualenv":
|
||||
lib.printInfo("VIRTUAL_ENV = %s", os.environ.get("VIRTUAL_ENV"))
|
||||
else:
|
||||
lib.printInfo("Installation in: {}".format(dest_path))
|
||||
raise NotImplementedError("system deployment not supported yet")
|
||||
|
||||
# Todo: check installed packages: python3-gi
|
||||
dataFolder = "data"
|
||||
|
||||
@ -75,6 +75,7 @@ class AsciiColor(object):
|
||||
|
||||
ENDC = '\033[0m'
|
||||
|
||||
|
||||
# Do *not* use color when:
|
||||
# - on windows
|
||||
# - not in a terminal except if we are in Travis CI
|
||||
|
||||
Loading…
Reference in New Issue
Block a user