ci.sh 1.0 KB

123456789101112131415161718192021222324252627282930
  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:ci
  6. # npm run lint # for v5!!!
  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 everything angular when in a CI environment because of ChromeHeadless problems (fixed?)"
  13. EXCLUDE_PKGS='**/angular'
  14. else
  15. echo "Skipping angular example project because we sometimes get a 'Maximum call stack size exceeded' when 'flattening the source-map'"
  16. echo "TODO: come up with a solution for v5"
  17. EXCLUDE_PKGS='example-projects/angular'
  18. fi
  19. # all contrib projects build/test/lint/etc?
  20. npx monorepo run ci --filter-pkgs 'packages-contrib/*' --exclude-pkgs "$EXCLUDE_PKGS" --no-parallel
  21. # all example projects can build?
  22. npx monorepo run build --filter-pkgs 'example-projects/*' --exclude-pkgs "$EXCLUDE_PKGS" --no-parallel
  23. # TODO: make --no-parallel the default for monorepo-tool