Path and environment variables for test-results-store


#1

Hi CircleCI 2.0 pals,

Here’s a snippet of our circle.yml:

version: 2
executorType: docker
containerInfo:
  - image: node:6.9.4
  - image: rethinkdb:2.3.5
stages:
  build:
    workDir: /home/ubuntu/action

      - type: shell
        name: NPM run test
        command: |
          mkdir -p $CIRCLE_TEST_REPORTS &&
          npm run test:xunit > $CIRCLE_TEST_REPORTS/action-ava.xml ;
          echo "directory is $CIRCLE_TEST_REPORTS" ;
          ls -l $CIRCLE_TEST_REPORTS
        environment:
          - CIRCLE_TEST_REPORTS: "/home/ubuntu/test-reports/junit"

      - type: test-results-store
        path: /home/ubuntu/test-reports

I would love to be able to use a single global environment variable $CIRCLE_TEST_REPORTS with the path field of the test-results-store command, like this:

  - type: test-results-store
    path: $CIRCLE_TEST_REPORTS

It would clean up our config a little bit.


Test results accumulating for rebuilds
#2

Any updates on this one?


#3