Skip to content

Commit 4c9ff89

Browse files
committed
made automatic testing ON
1 parent 0ad4a44 commit 4c9ff89

File tree

2 files changed

+32
-31
lines changed

2 files changed

+32
-31
lines changed

.travis.yml

+24-24
Original file line numberDiff line numberDiff line change
@@ -63,34 +63,34 @@ jobs:
6363
script:
6464
- travis_wait 40 python test.py autosys6 # already in src/ during install
6565

66-
- name: v7
67-
os: linux
68-
script:
69-
- travis_wait 40 python tests.py autosys7 # already in src/ during install
66+
# - name: v7
67+
# os: linux
68+
# script:
69+
# - travis_wait 40 python test.py autosys7 # already in src/ during install
7070

71-
- name: v8
72-
os: linux
73-
script:
74-
- travis_wait 40 python test.py autosys8 # already in src/ during install
71+
# - name: v8
72+
# os: linux
73+
# script:
74+
# - travis_wait 40 python test.py autosys8 # already in src/ during install
7575

76-
- name: v9
77-
os: linux
78-
script:
79-
- travis_wait 40 python test.py autosys9 # already in src/ during install
76+
# - name: v9
77+
# os: linux
78+
# script:
79+
# - travis_wait 40 python test.py autosys9 # already in src/ during install
8080

81-
- name: v10
82-
os: linux
83-
script:
84-
- travis_wait 40 python test.py autosys10 # already in src/ during install
81+
# - name: v10
82+
# os: linux
83+
# script:
84+
# - travis_wait 40 python test.py autosys10 # already in src/ during install
8585

86-
- name: v11
87-
os: linux
88-
script:
89-
- travis_wait 40 python test.py autosys11 # already in src/ during install
86+
# - name: v11
87+
# os: linux
88+
# script:
89+
# - travis_wait 40 python test.py autosys11 # already in src/ during install
9090

91-
- name: v12
92-
os: linux
93-
script:
94-
- travis_wait 40 python test.py autosys12 # already in src/ during install
91+
# - name: v12
92+
# os: linux
93+
# script:
94+
# - travis_wait 40 python test.py autosys12 # already in src/ during install
9595

9696

tests/test.py

+8-7
Original file line numberDiff line numberDiff line change
@@ -2659,6 +2659,7 @@ def WriteReport(data_info, systems, isparallel, ifVHQ, isorient):
26592659
ismempbs =False
26602660
ifVHQ = False
26612661
isAuto = False
2662+
no_concurrency=6 # number of jobs running concurrently on github server
26622663
if len(args) == 1 and re.findall(r'autosys',args[0]) == ['autosys']:
26632664
indx_test_temp = re.findall(r'\d+',args[0])
26642665
indx_test = int(indx_test_temp[0])
@@ -2673,14 +2674,14 @@ def WriteReport(data_info, systems, isparallel, ifVHQ, isorient):
26732674
tols_sys = [ tols_sys[i] for i in range(len(systems)) if systems[i] not in ['Fe_spin','He16_NVTNH','He16_NVKG','MgO','Si8_kpt_valgrind','MoS2','Au_fcc211','SiH4','BaTiO3_valgrind']]
26742675
systems = [ systems[i] for i in range(len(systems)) if systems[i] not in ['Fe_spin','He16_NVTNH','He16_NVKG','MgO','Si8_kpt_valgrind','MoS2','Au_fcc211','SiH4','BaTiO3_valgrind']]
26752676
no_systems = len(systems)
2676-
if indx_test != 12:
2677-
systems = systems[(indx_test-1)*int(no_systems/12):(indx_test-1)*int(no_systems/12)+int(no_systems/12)]
2678-
tols_sys = tols_sys[(indx_test-1)*int(no_systems/12):(indx_test-1)*int(no_systems/12)+int(no_systems/12)]
2679-
tags_sys = tags_sys[(indx_test-1)*int(no_systems/12):(indx_test-1)*int(no_systems/12)+int(no_systems/12)]
2677+
if indx_test != no_concurrency:
2678+
systems = systems[(indx_test-1)*int(no_systems/no_concurrency):(indx_test-1)*int(no_systems/no_concurrency)+int(no_systems/no_concurrency)]
2679+
tols_sys = tols_sys[(indx_test-1)*int(no_systems/no_concurrency):(indx_test-1)*int(no_systems/no_concurrency)+int(no_systems/no_concurrency)]
2680+
tags_sys = tags_sys[(indx_test-1)*int(no_systems/no_concurrency):(indx_test-1)*int(no_systems/no_concurrency)+int(no_systems/no_concurrency)]
26802681
else:
2681-
systems = systems[(indx_test-1)*int(no_systems/12) : no_systems]
2682-
tols_sys = tols_sys[(indx_test-1)*int(no_systems/12) : no_systems]
2683-
tags_sys = tags_sys[(indx_test-1)*int(no_systems/12) : no_systems]
2682+
systems = systems[(indx_test-1)*int(no_systems/no_concurrency) : no_systems]
2683+
tols_sys = tols_sys[(indx_test-1)*int(no_systems/no_concurrency) : no_systems]
2684+
tags_sys = tags_sys[(indx_test-1)*int(no_systems/no_concurrency) : no_systems]
26842685
no_systems = len(systems)
26852686

26862687

0 commit comments

Comments
 (0)