mirror of
https://github.com/LCPQ/quantum_package
synced 2024-12-23 04:43:50 +01:00
Try Travis cache
This commit is contained in:
parent
a2966d2999
commit
5d5c93ff78
14
.travis.yml
14
.travis.yml
@ -1,13 +1,17 @@
|
||||
sudo: true
|
||||
sudo: false
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.opam/
|
||||
|
||||
language: python
|
||||
python:
|
||||
- "2.6"
|
||||
|
||||
before_script:
|
||||
- sudo apt-get update -q
|
||||
- sudo apt-get install gfortran liblapack-dev gcc
|
||||
- sudo apt-get install graphviz
|
||||
#before_script:
|
||||
# - sudo apt-get update -q
|
||||
# - sudo apt-get install gfortran liblapack-dev gcc
|
||||
# - sudo apt-get install graphviz
|
||||
|
||||
script:
|
||||
- ./configure --production ./config/gfortran.cfg
|
||||
|
@ -175,8 +175,16 @@ class ModuleHandler():
|
||||
draw_module_edge(children, d_ref[children])
|
||||
all_ready_done.append(module)
|
||||
|
||||
path = '{0}.png'.format("tree_dependency")
|
||||
|
||||
# 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
|
||||
|
||||
# Create all the edge
|
||||
@ -186,7 +194,6 @@ class ModuleHandler():
|
||||
draw_module_edge(module, d_ref[module])
|
||||
|
||||
# Save
|
||||
path = '{0}.png'.format("tree_dependency")
|
||||
graph.write_png(path)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user