ci.sh 752 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env bash
  2. set -e # always immediately exit upon error
  3. npm run clean
  4. npm run build
  5. npm run test:single
  6. npm run lint
  7. EXCLUDE_PKGS=''
  8. # all angular-related packages have e2e tests that require a complicated CI setup.
  9. # (see .travis.yml in each project). Skip altogether for now.
  10. if [[ "$CI" == "true" ]]
  11. then
  12. echo "Skipping angular because we're in a CI environment"
  13. EXCLUDE_PKGS='**/angular'
  14. fi
  15. # all contrib projects build/test/lint/etc?
  16. npx monorepo run ci --filter-pkgs 'packages-contrib/*' --exclude-pkgs "$EXCLUDE_PKGS" --no-parallel
  17. # all example projects can build?
  18. npx monorepo run build --filter-pkgs 'example-projects/*' --exclude-pkgs "$EXCLUDE_PKGS" --no-parallel
  19. # TODO: make --no-parallel the default for monorepo-tool