Skip to content

Commit

Permalink
Only run fossa on master.
Browse files Browse the repository at this point in the history
We are currently hitting the below error when running fossa on pull request branches:
Error during upload: could not upload: could not send API HTTP request: Post https://app.fossa.com/api/builds/custom?branch=pull%2F37&locator=custom%2Bgit%40github.com%3Alaconiajs%2Flaconia.git%24a14711c4e1a0f56b11842e224db8d3a6d91cf238&managedBuild=true&title=git%40github.com%3Alaconiajs%2Flaconia.git&v=0.7.29: unexpected EOF
  • Loading branch information
ceilfors committed May 14, 2019
1 parent 97d224c commit 589e47d
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .circleci/config.yml
Expand Up @@ -8,16 +8,12 @@ jobs:
build:
<<: *defaults
steps:
- run: |
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: npm install
- run: fossa init
- run: fossa analyze
- save_cache:
paths:
- node_modules
Expand All @@ -29,6 +25,19 @@ jobs:
paths:
- node_modules
- packages/*/node_modules
license_test:
<<: *defaults
steps:
- run: |
curl -H 'Cache-Control: no-cache' https://raw.githubusercontent.com/fossas/fossa-cli/master/install.sh | bash
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: npm install
- run: fossa init
- run: fossa analyze

integration_test:
<<: *defaults
Expand All @@ -52,6 +61,10 @@ workflows:
pipeline:
jobs:
- build
- license_test:
filters:
branches:
only: master
- integration_test:
requires:
- build

0 comments on commit 589e47d

Please sign in to comment.