In travis, directly apt-get redis and start command changed

This commit is contained in:
2015-12-23 22:41:56 +05:30
parent 862bf328e1
commit 8ddb6f36e6
3 changed files with 11 additions and 16 deletions
+1 -9
View File
@@ -11,15 +11,7 @@ python:
- "nightly" # currently points to 3.6-dev - "nightly" # currently points to 3.6-dev
# command to install dependencies # command to install dependencies
before_install: before_install:
- sudo apt-get install build-essential - sudo apt-get install redis-server
- sudo apt-get install tcl8.5
- wget http://download.redis.io/releases/redis-2.8.3.tar.gz
- tar -xvzf redis-2.8.3.tar.gz
- cd redis-2.8.3
- make
- sudo make install
- cd ..
# - apt-get install redis-server
install: install:
- "pip install -r requirements.txt" - "pip install -r requirements.txt"
- "pip install -e ." - "pip install -e ."
+6 -6
View File
@@ -1,11 +1,11 @@
Todo Todo
------ ------
** use travis - install redis - how to run it **
1. Add gui tests 1. Allow config for tmpl, redis_arg, status_gui_arg
2. use logging.debug / log file for more prints 2. Add well-explained readme
3. Allow config for tmpl, redis_arg, status_gui_arg 3. use logging.debug / log file for more prints
4. Add well-explained readme 4. Add gui tests
4. Use config.pluginmanager.hasplugin('plugin_name') when needed 5. Use config.pluginmanager.hasplugin('plugin_name') when needed
Done Done
+4 -1
View File
@@ -14,7 +14,10 @@ if env_redis_port:
else: else:
REDIS_PORT = 5946 REDIS_PORT = 5946
command_redis_server_gen = "redis-server --port {port} --maxheap 20MB" if os.environ["TRAVIS"] == "true":
command_redis_server_gen = "redis-server --port {port}"
else:
command_redis_server_gen = "redis-server --port {port} --maxheap 20MB"
command_redis_server = command_redis_server_gen.format(port=REDIS_PORT) command_redis_server = command_redis_server_gen.format(port=REDIS_PORT)
command_status_gui_gen = "pytest_gui_status \"{norm_dir_name}\"" command_status_gui_gen = "pytest_gui_status \"{norm_dir_name}\""