Skip to content

Commit cd6ab95

Browse files
committed
added updating architectures stage in .travis.yml
Signed-off-by: Alessandro Comodi <[email protected]>
1 parent a278a4a commit cd6ab95

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ addons:
3939
- libxml++2.6-dev
4040
- perl
4141
- python
42+
- python-lxml
4243
- texinfo
4344
- time
4445
- valgrind
@@ -97,26 +98,31 @@ jobs:
9798
name: "C++ Unit Tests"
9899
script:
99100
- ./.github/travis/build.sh
101+
- ./dev/upgrade_vtr_archs.sh
100102
- ./.github/travis/unittest.sh
101103
- stage: Test
102104
name: "Basic Regression Tests"
103105
script:
104106
- ./.github/travis/build.sh
107+
- ./dev/upgrade_vtr_archs.sh
105108
- ./run_reg_test.pl vtr_reg_basic -show_failures -j2
106109
- stage: Test
107110
name: "Strong Regression Tests"
108111
script:
109112
- ./.github/travis/build.sh
113+
- ./dev/upgrade_vtr_archs.sh
110114
- travis_wait 30 ./run_reg_test.pl vtr_reg_strong -show_failures -j2
111115
- stage: Test
112116
name: "Basic Valgrind Memory Tests"
113117
script:
114118
- ./.github/travis/build.sh
119+
- ./dev/upgrade_vtr_archs.sh
115120
- ./run_reg_test.pl vtr_reg_valgrind_small -show_failures -j2
116121
- stage: Test
117122
name: "ODIN-II Micro Tests"
118123
script:
119124
- ./.github/travis/build.sh
125+
- ./dev/upgrade_vtr_archs.sh
120126
- ./run_reg_test.pl odin_reg_micro -show_failures -j2
121127

122128
- stage: Test

dev/upgrade_vtr_archs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
find vpr libs/libarchfpga ODIN_II vtr_flow/arch -name '*.xml' | xargs -n 1 python2 ./vtr_flow/scripts/upgrade_arch.py
3+
find vpr libs/libarchfpga ODIN_II vtr_flow/arch utils/fasm/test -name '*.xml' | xargs -n 1 ./vtr_flow/scripts/upgrade_arch.py

vtr_flow/scripts/upgrade_arch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ def main():
6969
arch = root_tags[0]
7070

7171
if arch.tag != "architecture":
72-
print "Not an architecture file, exiting..."
73-
sys.exit(1)
72+
print "Warning! Not an architecture file, exiting..."
73+
sys.exit(0)
7474

7575
modified = False
7676
if "add_model_timing" in args.features:

0 commit comments

Comments
 (0)