Skip to content

Commit 2210b07

Browse files
committed
update CI
1 parent fc32150 commit 2210b07

File tree

2 files changed

+33
-3
lines changed

2 files changed

+33
-3
lines changed

.github/workflows/check_md_links.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ name: Check Markdown links
22

33
# checking for any dead links in markdown files
44

5-
on: push
5+
on:
6+
push:
7+
branches:
8+
- master
9+
- dev
10+
pull_request:
11+
branches: '*'
612

713
jobs:
814
markdown-link-check:

.travis.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ python:
1212

1313
cache:
1414
apt: true # only works with Pro version
15+
directories:
16+
- node_modules # NPM packages for the remark markdown linter
17+
18+
branches:
19+
only: # only run the CI for those branches
20+
- master
21+
- dev
1522

1623
env:
1724
global: # Define environment variables for bash
@@ -43,9 +50,26 @@ before_script:
4350

4451
jobs:
4552
include:
46-
- name: "BIDS validator: create and check dataset"
53+
# BIDS validation
54+
- stage: "BIDS validator"
55+
name: "BIDS validator: create and check dataset"
4756
script: octave $OCTFLAGS --eval "test_makeRawDataset" && bids-validator `pwd`/output/raw/ --ignoreNiftiHeaders
48-
- name: "miss_hit: checking code quality"
57+
58+
# naming the Tests stage
59+
- stage: "miss_hit"
60+
name: "miss_hit: checking code quality"
4961
script: mh_metric . --ci
62+
5063
- name: "miss_hit: checking code style"
5164
script: mh_style .
65+
66+
# naming the Linter stage
67+
- stage: Markdown linter
68+
name: "Check markdown"
69+
language: node_js
70+
node_js:
71+
- "10"
72+
before_script:
73+
- npm install `cat npm-requirements.txt`
74+
script:
75+
- remark . --frail

0 commit comments

Comments
 (0)