Skip to content

Commit

Permalink
First attempt at implementing PR workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jbhoosreddy committed Oct 19, 2019
1 parent 78cd63d commit 49dfd2d
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .circleci/config.yml
Expand Up @@ -86,8 +86,11 @@ jobs:
- run:
name: Setup Test Runner
command: |
git clone --recurse-submodules https://github.com/babel/babel-test262-runner
# Switch to master branch later
git clone --recurse-submodules https://github.com/jbhoosreddy/babel-test262-runner
cd babel-test262-runner
git fetch origin compare-master-results
git checkout compare-master-results
yarn
yarn add tap-mocha-reporter --dev
curl -L https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 > jq
Expand All @@ -102,10 +105,21 @@ jobs:
<<: *test262_workdir
- store_artifacts: *artifact_test262_tap
- run:
name: Output test262 results
name: Output Test262 results
command: |
cat ~/test262.tap | $(npm bin)/tap-mocha-reporter spec || true
<<: *test262_workdir
- run:
name: Download master branch Test262 artifact
command: node lib/download-master-artifact ~/master.tap
<<: *test262_workdir
- run:
name: Compare master branch & PR results
command: |
mkdir -p ~/test-results/test262
node lib/compare-results ~/master.tap ~/test262.tap | $(npm bin)/tap-mocha-reporter xunit | tee ~/test-results/test262/results.xml
<<: *test262_workdir
- store_test_results: *artifact_test262_xunit


workflows:
Expand All @@ -120,3 +134,10 @@ workflows:
branches:
only:
- master
test262-after-approval:
jobs:
# - approve-test262-run:
# type: approval
- test262
# requires:
# - approve-test262-run

0 comments on commit 49dfd2d

Please sign in to comment.