Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
chore: put all CI steps into separate script files
Browse files Browse the repository at this point in the history
  • Loading branch information
robertrossmann committed Jan 15, 2019
1 parent 788bb41 commit d06fcff
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,16 @@ cache:
- node_modules

before_install:
- touch package.json
- ci/before-install.sh

install:
- make install
- make precompile
- ci/install.sh

script:
- make lint
- make test
- ci/script.sh

after_success:
- make coverage
- cat coverage/lcov.info | node_modules/.bin/coveralls
- ci/after-success.sh

env:
global:
Expand Down
7 changes: 7 additions & 0 deletions ci/after-success.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -o errexit
set -o pipefail

make coverage
node_modules/.bin/coveralls < coverage/lcov.info
6 changes: 6 additions & 0 deletions ci/before-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -o errexit
set -o pipefail

touch package.json
7 changes: 7 additions & 0 deletions ci/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -o errexit
set -o pipefail

make install
make precompile
7 changes: 7 additions & 0 deletions ci/script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -o errexit
set -o pipefail

make lint
make test

0 comments on commit d06fcff

Please sign in to comment.