'checkout' not working - I'm stuck on master?

*Edit - A bulleted list seems to conserve the indentations in config.yml. If there’s a better way to do this, I can change it.

Thank you in advance for any advice or suggestions on what I’m doing wrong here.

My tests only seem to run on the origin/master branch on Github.

I’m running a Docker executor, which sets up my environment, clones my repo, and does an initial build.

My workflow has the following sequence of jobs jobs, which:

  1. rebuilds, stores stdout as an artifact, and persists the build directory to my workspace.
  2. attaches the previous workspace, and prints the current commit hash, which matches the HEAD of origin/master.

My config.yml is pasted below.

  • version: 2

  • jobs:

  • build:

  • docker:
    
  •   - image: sgpearse/vapor3-ubuntu16:latest
    
  • steps:
    
  •   - checkout
    
  •   - run:
    
  •       name: cmake and make
    
  •       command: |
    
  •         cd /VAPOR
    
  •         cd build
    
  •         cmake ..
    
  •         make &> buildResults.txt
    
  •         ls ../test_apps
    
  •   - store_artifacts:
    
  •       path: /VAPOR/build/buildResults.txt
    
  •       destination: build-results
    
  •   - persist_to_workspace:
    
  •       root: /
    
  •       paths: VAPOR
    
  • checkWarnings:

  • docker:
    
  •   - image: sgpearse/vapor3-ubuntu16:latest
    
  • steps:
    
  •   - attach_workspace:
    
  •       at: /
    
  •   - run:
    
  •       name: Checking for warnings
    
  •       command: |
    
  •         cd /VAPOR
    
  •         git branch
    
  •         echo ' v log v'
    
  •         git log
    
  •         git status
    
  •         echo ' ^ log ^'
    
  •         echo ''
    
  •         echo $CIRCLE_TAG
    
  •         echo ''
    
  •         echo $CIRCLE_BRANCH
    
  •         echo ''
    
  •         ls /VAPOR
    
  •         echo ''
    
  •         ls /VAPOR/test_apps
    
  •         echo ''
    
  •         ls /VAPOR/test_apps/circleTests
    
  •         /VAPOR/test_apps/circleTests/checkForWarnings.sh
    
  • testVersion:

  • docker:
    
  •   - image: sgpearse/vapor3-ubuntu16:latest
    
  • steps:
    
  •   - attach_workspace:
    
  •       at: /
    
  •   - run:
    
  •       name: Running tests
    
  •       command: |
    
  •         /VAPOR/build/bin/vaporversion > /version.txt
    
  •   - store_artifacts:
    
  •       path: /version.txt
    
  •       destination: vapor-version-info
    
  • workflows:

  • version: 2

  • build:

  • jobs:
    
  •   - build
    
  •   - checkWarnings:
    
  •       requires:
    
  •         - build
    
  •   - testVersion:
    
  •       requires:
    
  •         - build