Run snyk only on non fork repo and run --build on setup

This commit is contained in:
Alexandre Bodin 2019-03-21 08:59:24 +01:00
parent 81ed8d0fb2
commit c41e114b23

View File

@ -32,10 +32,14 @@ install:
jobs: jobs:
include: include:
- stage: test - stage: test
name: 'Lint / Snyk / Unit Tests ' name: Snyk
script: npm run -s test:snyk
if: fork = false
- stage: test
name: 'Lint / Unit Tests '
script: script:
- npm run -s lint - npm run -s lint
- npm run -s test:snyk
- npm run -s test:unit - npm run -s test:unit
- <<: *e2e_tests - <<: *e2e_tests