cpu-metrics
Version:
Dump cpu profile metrics after test to be tracked over all commits for the life of the branch.
28 lines (21 loc) • 796 B
YAML
language: node_js
node_js:
- "6"
- "7"
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
install:
- npm install
# Install the testspace Client
- mkdir -p $HOME/bin # already added to "Travis Path Variable" by default, even though the dir does not exist
- curl -s https://testspace-client.s3.amazonaws.com/testspace-linux-dev.tgz | tar -zxvf- -C $HOME/bin
- testspace config url https://rjhowell44.testspace.com
after_script:
# matrix build. push files for each node version into a unique folder eg. "/Node-6/Metrics/heap-metrics.html"
- testspace [Node-$TRAVIS_NODE_VERSION/Tests]./test-results.xml [Node-$TRAVIS_NODE_VERSION/Metrics]$HOME/bin/cpu-metrics.html "+$HOME/bin/cpu-metrics.html{cpu-metrics-file}"