Skip to content

Commit 748db04

Browse files
committed
Fast exit in travis if any task fails
1 parent b5381aa commit 748db04

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525
before_install: npm install --global yarn
2626
install: yarn
2727
script:
28-
- yarn lint:js
29-
- yarn lint:markdown
30-
- yarn lint:social
31-
- yarn build
32-
- yarn lint:links
28+
- yarn lint:js || travis_terminate 1
29+
- yarn lint:markdown || travis_terminate 1
30+
- yarn lint:social || travis_terminate 1
31+
- yarn build || travis_terminate 1
32+
- yarn lint:links || travis_terminate 1
3333

3434
- stage: Build
3535
name: Proselint

src/utilities/fetch-package-readmes.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ async function main() {
5757
await writeFile(fileName, headmatter + body);
5858

5959
console.log('Generated:', path.relative(cwd, fileName));
60+
})
61+
.catch(err => {
62+
throw err;
6063
});
6164
}
6265
}

0 commit comments

Comments
 (0)