10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-12-23 12:56:14 +01:00

Try Travis cache

This commit is contained in:
Thomas Applencourt 2015-06-19 19:13:35 +02:00
parent a2966d2999
commit 5d5c93ff78
2 changed files with 18 additions and 7 deletions

View File

@ -1,13 +1,17 @@
sudo: true sudo: false
cache:
directories:
- $HOME/.opam/
language: python language: python
python: python:
- "2.6" - "2.6"
before_script: #before_script:
- sudo apt-get update -q # - sudo apt-get update -q
- sudo apt-get install gfortran liblapack-dev gcc # - sudo apt-get install gfortran liblapack-dev gcc
- sudo apt-get install graphviz # - sudo apt-get install graphviz
script: script:
- ./configure --production ./config/gfortran.cfg - ./configure --production ./config/gfortran.cfg

View File

@ -175,8 +175,16 @@ class ModuleHandler():
draw_module_edge(children, d_ref[children]) draw_module_edge(children, d_ref[children])
all_ready_done.append(module) all_ready_done.append(module)
path = '{0}.png'.format("tree_dependency")
# Init # Init
graph = pydot.Dot(graph_type='digraph') try:
graph = pydot.Dot(graph_type='digraph')
except:
with open(path, 'a'):
os.utime(path, None)
return
d_ref = self.dict_child d_ref = self.dict_child
# Create all the edge # Create all the edge
@ -186,7 +194,6 @@ class ModuleHandler():
draw_module_edge(module, d_ref[module]) draw_module_edge(module, d_ref[module])
# Save # Save
path = '{0}.png'.format("tree_dependency")
graph.write_png(path) graph.write_png(path)