This disables npm caching for all Travis runs. The effect on the duration of the run is not significant and it should prevent problems with dirty cache in the future.
29 lines
910 B
YAML
29 lines
910 B
YAML
language: node_js
|
|
sudo: required
|
|
branches:
|
|
only:
|
|
- main
|
|
- stage-stable
|
|
- prod-beta
|
|
- prod-stable
|
|
notifications:
|
|
email: false
|
|
node_js:
|
|
- '16'
|
|
cache:
|
|
npm: false
|
|
install:
|
|
- npm ci
|
|
before_script: |
|
|
npm run api && [ -z "$(git status --porcelain=v1 2>/dev/null)" ] && echo "✓ No manual API changes." || echo "✗ API manually changed, please refer to the README for the procedure to follow for programmatically generated API endpoints." && [ -z "$(git status --porcelain=v1 2>/dev/null)" ]
|
|
script:
|
|
- NODE_ENV=production npm run build
|
|
- npm run lint
|
|
- npm run test
|
|
- npx codecov
|
|
after_success:
|
|
- curl -sSL https://raw.githubusercontent.com/RedHatInsights/insights-frontend-builder-common/master/src/bootstrap.sh | bash -s
|
|
env:
|
|
global:
|
|
- DEPLOY_REPO="git@github.com:RedHatInsights/image-builder-frontend-build"
|
|
- NODE_OPTIONS="--max-old-space-size=4096 --max_old_space_size=4096"
|