language: node_js
node_js:
  - "node"
before_script:
  - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
      mkdir build;
      curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./build/cc-test-reporter;
      chmod +x ./build/cc-test-reporter;
      ./build/cc-test-reporter before-build;
    fi
script:
  - "npm run test-ci"
after_script:
  - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
      cd ./build;
      ./cc-test-reporter after-build --prefix '..' --exit-code $TRAVIS_TEST_RESULT;
    fi

language: node_js
node_js:
  - "node"
before_script:
  - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
      mkdir build;
      curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./build/cc-test-reporter;
      chmod +x ./build/cc-test-reporter;
      ./build/cc-test-reporter before-build;
    fi
script:
  - "npm run test-ci"
after_script:
  - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
      cd ./build;
      ./cc-test-reporter after-build --prefix /home/travis/build/jordansne/ntwitbot --exit-code $TRAVIS_TEST_RESULT;
    fi

Change --prefix dir to absolute path
Change --prefix dir to absolute path
