appveyor.yml
image: ubuntu
platform: Any CPU
environment:
CODACY_PROJECT_TOKEN:
secure: 0PigqVPDYtWgTsId7INm6ZR8GLqtvs6/rXgBitBTDU7lWs1NVCBT5aEnSe0ZE2vG
CC_TEST_REPORTER_ID:
secure: sQB8xeDC7Dy2bXW1BDO608S2u34dtnX7DPePnSSLEN5GY4bDQKEepEto0ZTbfip9tyDq+QoB6uSorK6UPUXVUly2uvtDwtqXWH5mesudNdQ=
stack: "node 14"
install:
# Output useful info for debugging.
- node --version
- npm --version
# install modules
- sh: npm install
- sh: npm install -g mocha nyc
before_test:
# Download codeclimate test report
- sh: curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./codeclimate-test-reporter
- sh: chmod +x ./codeclimate-test-reporter
test_script:
- nyc --reporter=lcov mocha --timeout 30000
after_test:
# Send test result to codeclimate
- sh: ./codeclimate-test-reporter before-build
- sh: ./codeclimate-test-reporter after-build -t lcov --exit-code $?
# Send test result to Codacy
- sh: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r ./coverage/lcov.info
# Don't actually build.
build: off