Skip to content

Commit

Permalink
Revert "Merge pull request #222 from Mister-Hope/master"
Browse files Browse the repository at this point in the history
This reverts commit f104646, reversing
changes made to 17f15f0.
  • Loading branch information
yanyiwu committed Jul 14, 2024
1 parent e91f3ec commit e40e975
Show file tree
Hide file tree
Showing 30 changed files with 2,853 additions and 3,409 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
43 changes: 0 additions & 43 deletions .github/workflows/release.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/test.yml

This file was deleted.

24 changes: 19 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
.idea/
node_modules/
build/
coverage/
dist/
tags
build
*.demo
*swp
*.out
*.o
*.d
*.ut
log
main
lib*.a
*_demo
segdict*
tmp
t.*
*.pid
node_modules
npm-debug.log
.idea
90 changes: 90 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
language: node_js

stages:
- test
- name: deploy
if: tag IS present

jobs:
include:

- &test
stage: test
os: linux
node_js: "10"
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
after_script: NODE_ENV=test istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
- <<: *test
node_js: "12"
- <<: *test
node_js: "14"
- <<: *test
node_js: "15"

## deploy linux
- &deploy
stage: deploy
os: linux
node_js: "10"
env:
- CXX=g++
script:
- ./node_modules/.bin/node-pre-gyp package
deploy:
provider: releases
token: ${GH_TOKEN}
file_glob: true
file:
- build/stage/*/**
skip_cleanup: true
on:
branch: master
tags: true
- <<: *deploy
node_js: "12"
- <<: *deploy
node_js: "14"
- <<: *deploy
node_js: "15"

## deploy osx
- <<: *deploy
os: osx
node_js: "10"
- <<: *deploy
os: osx
node_js: "12"
- <<: *deploy
os: osx
node_js: "14"
- <<: *deploy
os: osx
node_js: "15"

## deploy windows
- <<: *deploy
os: windows
node_js: "10"
- <<: *deploy
os: windows
node_js: "12"
- <<: *deploy
os: windows
node_js: "14"
- <<: *deploy
os: windows
node_js: "15"

notifications:
recipients:
- [email protected]
email:
on_success: change
on_failure: always
13 changes: 0 additions & 13 deletions .vscode/c_cpp_properties.json

This file was deleted.

Loading

0 comments on commit e40e975

Please sign in to comment.