Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 27 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,50 @@ version: 2
jobs:
node10:
docker:
- image: circleci/node:10.19
- image: circleci/node:10.23 # Current BAS node version
working_directory: ~/repo
steps:
- checkout
- run: npm install
- run: npm run ci
- run:
command: cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
environment:
COVERALLS_SERVICE_NAME: circle-ci
COVERALLS_GIT_BRANCH: ${CIRCLE_BRANCH}
- run: npm run ci
- run: ls -la
- run: echo node 10 job finished successfully

node13:
node12:
docker:
- image: circleci/node:12 # Future BAS node version
working_directory: ~/repo
steps:
- checkout
- run: npm install
- run: npm run ci
- run: ls -la
- run: echo node 12 job finished successfully

node14:
docker:
- image: circleci/node:13
- image: circleci/node:14
working_directory: ~/repo
steps:
- checkout
- run: npm install
- run: npm run ci
- run:
name: Define environment variable with lastest commit's message
name: Define environment variable with latest commit message
command: |
echo 'export COMMIT_MESSAGE=$(git log -1 --pretty=format:"%s")' >> $BASH_ENV
source $BASH_ENV
- run:
name: Lint commit message
command: echo "$COMMIT_MESSAGE" | npx commitlint
- run:
command: cat ./coverage/lcov.info | ./node_modules/.bin/coveralls
environment:
COVERALLS_SERVICE_NAME: circle-ci
COVERALLS_GIT_BRANCH: ${CIRCLE_BRANCH}
- run: ls -la
- run: echo node 13 job finished successfully
- run: echo node 14 job finished successfully


compliance:
docker:
Expand All @@ -48,9 +60,10 @@ jobs:
pip3 install --user reuse
~/.local/bin/reuse lint


deploy-npm:
docker:
- image: circleci/node:10.19
- image: circleci/node:14
working_directory: ~/repo
steps:
- checkout
Expand All @@ -70,7 +83,8 @@ workflows:
build:
jobs:
- node10
- node13
- node12
- node14
- compliance
deploy:
jobs:
Expand Down