Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Closed
Show file tree
Hide file tree
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
89 changes: 51 additions & 38 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,56 @@
version: 2

workflows:
version: 2
workflow:
jobs:
- node-8
- node-10
- node-12

defaults: &defaults
macos:
xcode: 10.2.0
steps:
- checkout
- run:
name: install llvm
command: |
brew update
brew uninstall node yarn
brew cleanup
brew install llvm@7 node@$NODE_VERSION
echo "export PATH=${PATH}:/usr/local/opt/llvm@7/bin" >> $BASH_ENV
brew link --force --overwrite node@$NODE_VERSION
- run: npm install --build-from-source
- run: npm run ci:circle
- store_test_results:
path: test-results
- store_artifacts:
path: test-results
- run:
name: lint js
command: npm run lint:js
- run:
name: format c++
command: npm run format && git diff --exit-code -- src/ test/
- run:
name: lint c++
command: npm run lint:cpp
- run:
name: deploy on tag
command: git describe --tags --exact >/dev/null 2>&1 && npm run pre-build -- -u ${NODE_PRE_GYP_GITHUB_TOKEN} || true

jobs:
build:
macos:
xcode: 8.3.3
node-8:
<<: *defaults
environment:
- NODE_VERSION: "8"
steps:
- checkout
- run:
name: install llvm
command: |
brew update
brew install llvm
echo "export PATH=${PATH}:/usr/local/opt/llvm/bin" >> $BASH_ENV
- run:
name: install node.js with nvm
command: |
export NVM_DIR=${HOME}/.nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash
[ -s "${NVM_DIR}/nvm.sh" ] && \. "${NVM_DIR}/nvm.sh"
nvm install ${NODE_VERSION}
nvm alias default ${NODE_VERSION}
echo "[ -s \"${NVM_DIR}/nvm.sh\" ] && . \"${NVM_DIR}/nvm.sh\"" >> $BASH_ENV
- run: npm install --build-from-source
- run: npm run ci:circle
- store_test_results:
path: test-results
- store_artifacts:
path: test-results
- run:
name: lint js
command: npm run lint:js
- run:
name: format c++
command: npm run format && git diff --exit-code -- src/ test/
- run:
name: lint c++
command: npm run lint:cpp
- run:
name: deploy on tag
command: git describe --tags --exact >/dev/null 2>&1 && npm run pre-build -- -u ${NODE_PRE_GYP_GITHUB_TOKEN} || true
node-10:
<<: *defaults
environment:
- NODE_VERSION: "10"
node-12:
<<: *defaults
environment:
- NODE_VERSION: "12"
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: node_js
node_js:
- 8
- 10
- 12
sudo: false
dist: trusty
addons:
Expand Down
5 changes: 4 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ cache:
- '%APPDATA%\npm-cache'

environment:
nodejs_version: "8"
NODE_PRE_GYP_GITHUB_TOKEN:
secure: izXdqKc3Q97YCK/iHmkf5704WRhBwZXVBn2G+MX/NgyxVJPfwTkZxc8WMET/QZOh
matrix:
- nodejs_version: "8"
- nodejs_version: "10"
- nodejs_version: "11"

platform:
- x86
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"dependencies": {
"event-kit": "2.5.3",
"fs-extra": "7.0.1",
"nan": "2.13.1",
"nan": "2.13.2",
"prebuild-install": "5.2.5"
},
"standard": {
Expand Down