UNPKG

mutou-micro

Version:

Get the current time in microseconds

63 lines (58 loc) 1.49 kB
language: node_js jobs: include: - os: linux node_js: 4 env: [TEST_CMD=lint-test] - os: linux node_js: 6 env: [TEST_CMD=lint-test] - os: linux node_js: 8 env: [TEST_CMD=lint-test] - os: linux node_js: 10 env: [TEST_CMD=lint-test] - os: linux node_js: node env: [TEST_CMD=lint-test, BUILD_CMD=prebuild, BUILD_GROUP=linux-x64] # fails to compile with Node v6, but the n-api artifact built with a newer # version does work with v6. # - os: osx # - node_js: 6 # - env: [TEST_CMD=lint-test] - os: osx node_js: 4 env: [TEST_CMD=lint-test] - os: osx node_js: 6 env: [TEST_CMD=lint-test] - os: osx node_js: 8 env: [TEST_CMD=lint-test] - os: osx node_js: 10 env: [TEST_CMD=lint-test] - os: osx node_js: node env: [TEST_CMD=lint-test, BUILD_CMD=prebuild, BUILD_GROUP=darwin-x64] - name: arm os: linux node_js: node env: [BUILD_CMD=prebuildify-cross-armv7, BUILD_GROUP=arm] if: tag is present script: - if [[ ! -z "$TEST_CMD" ]]; then npm run $TEST_CMD; fi before_deploy: - export ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$BUILD_GROUP.tar.gz" - npm run $BUILD_CMD - tar -zcvf "$ARCHIVE_NAME" -C prebuilds . deploy: provider: releases draft: false api_key: "$PREBUILDIFY_TOKEN" file: "$ARCHIVE_NAME" skip_cleanup: true on: tags: true condition: "! -z $BUILD_CMD"