Skip to content

Commit dc1ca82

Browse files
committed
ci: cleanup
1 parent 36ac438 commit dc1ca82

File tree

8 files changed

+18
-31
lines changed

8 files changed

+18
-31
lines changed

.github/labeler.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ docs:
5454
- tutorial
5555
- "*.rst"
5656
infra:
57-
- "*travis*"
5857
- .github/*
5958
- .github/**/*
6059
- Dockerfile

.github/scripts/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/bin/bash
22

3-
source .github/scripts/common.sh
43
set -e
54

5+
source $(dirname "$0")/common.sh
6+
67
$SPACER
78

89
start_section "vtr.build" "${GREEN}Building..${NC}"

.github/scripts/common.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ NC='\033[0m' # No Color
1313

1414
SPACER="echo -e ${GRAY} - ${NC}"
1515

16-
travis_nanoseconds() { true; }
17-
travis_fold() { true; }
18-
travis_time_start() { true; }
19-
travis_time_finish() { true; }
20-
2116
function start_section() {
2217
echo -e "${PURPLE}Verilog To Routing${NC}: - $2${NC}"
2318
echo -e "${GRAY}-------------------------------------------------------------------${NC}"

.github/scripts/cron_build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/bin/bash
22

3-
source .github/scripts/common.sh
43
set -e
54

5+
source $(dirname "$0")/common.sh
6+
67
$SPACER
78

89
if [ "_${_COVERITY_EMAIL}" == "_" ] ||

.github/scripts/unittest.sh

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

3-
source .github/scripts/common.sh
43
set -e
54

5+
source $(dirname "$0")/common.sh
6+
7+
$(dirname "$0")/build.sh
8+
69
$SPACER
710

811
start_section "vtr.test.0" "${GREEN}Testing..${NC} ${CYAN}C++ unit tests${NC}"

.github/workflows/test.yml

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ jobs:
2929
- name: Test
3030
env:
3131
BUILD_TYPE: release
32-
run: |
33-
source .github/scripts/common.sh
34-
./.github/scripts/build.sh
32+
run: ./.github/scripts/build.sh
3533

3634

3735
Format:
@@ -54,9 +52,7 @@ jobs:
5452
- run: pip install -r requirements.txt
5553

5654
- name: Test
57-
run: |
58-
source .github/scripts/common.sh
59-
./dev/${{ matrix.script }}
55+
run: ./dev/${{ matrix.script }}
6056

6157

6258
UniTests:
@@ -74,10 +70,7 @@ jobs:
7470
- name: Test
7571
env:
7672
CMAKE_PARAMS: "-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on"
77-
run: |
78-
source .github/scripts/common.sh
79-
./.github/scripts/build.sh
80-
./.github/scripts/unittest.sh
73+
run: ./.github/scripts/unittest.sh
8174

8275

8376
Warnings:
@@ -97,9 +90,7 @@ jobs:
9790
#In order to get compilation warnings produced per source file, we must do a non-IPO build
9891
#We also turn warnings into errors for this target by doing a strict compile
9992
CMAKE_PARAMS: "-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on -DVTR_ENABLE_STRICT_COMPILE=on -DVTR_IPO_BUILD=off"
100-
run: |
101-
source .github/scripts/common.sh
102-
./.github/scripts/build.sh
93+
run: ./.github/scripts/build.sh
10394

10495

10596
Regression:
@@ -148,7 +139,6 @@ jobs:
148139
env:
149140
CMAKE_PARAMS: ${{ matrix.params }}
150141
run: |
151-
source .github/scripts/common.sh
152142
./.github/scripts/build.sh
153143
./run_reg_test.py ${{ matrix.suite }} -show_failures -j2
154144
@@ -177,7 +167,6 @@ jobs:
177167
BUILD_TYPE: debug
178168
LSAN_OPTIONS: 'exitcode=42' #Use a non-standard exit code to ensure LSAN errors are detected
179169
run: |
180-
source .github/scripts/common.sh
181170
./.github/scripts/build.sh
182171
# We skip QoR since we are only checking for errors in sanitizer runs
183172
./run_reg_test.py ${{ matrix.suite }} -show_failures -j2 -skip_qor
@@ -199,7 +188,6 @@ jobs:
199188
CMAKE_PARAMS: '-DVTR_ASSERT_LEVEL=3 -DVTR_ENABLE_SANITIZE=on -DVTR_IPO_BUILD=off -DWITH_BLIFEXPLORER=on'
200189
BUILD_TYPE: debug
201190
run: |
202-
source .github/scripts/common.sh
203191
./.github/scripts/build.sh
204192
./run_reg_test.py odin_reg_basic -show_failures -j2
205193
@@ -233,9 +221,7 @@ jobs:
233221
CMAKE_PARAMS: "-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on"
234222
MATRIX_EVAL: ${{ matrix.eval }}
235223
BUILD_TYPE: ${{ matrix.build }}
236-
run: |
237-
source .github/scripts/common.sh
238-
./.github/scripts/build.sh
224+
run: ./.github/scripts/build.sh
239225

240226

241227
Coverity:
@@ -264,6 +250,4 @@ jobs:
264250
CMAKE_PARAMS: '-DVTR_ASSERT_LEVEL=3 -DWITH_BLIFEXPLORER=on'
265251
_COVERITY_URL: 'https://scan.coverity.com/download/linux64'
266252
_COVERITY_MD5: 'd0d7d7df9d6609e578f85096a755fb8f'
267-
run: |
268-
source .github/scripts/common.sh
269-
./.github/scripts/build.sh
253+
run: ./.github/scripts/build.sh

dev/check-format-py.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
source $(dirname "$0")/../.github/scripts/common.sh
4+
35
clean=$(git status -s -uno | wc -l) #Short ignore untracked
46

57
if [ $clean -ne 0 ]; then

dev/check-format.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bash
22

3+
source $(dirname "$0")/../.github/scripts/common.sh
4+
35
clean=$(git status -s -uno | wc -l) #Short ignore untracked
46

57
if [ $clean -ne 0 ]; then

0 commit comments

Comments
 (0)