debian-image-builder-frontend/.travis.yml
Sanne Raymaekers c124439112 package.json: Simplify scripts
It's important to have NODE_ENV=production during build time in travis,
as packages can have different build artifacts depending on the NODE_ENV
value.
2022-04-12 20:03:38 +02:00

25 lines
640 B
YAML

language: node_js
sudo: required
branches:
only:
- main
- prod-beta
notifications:
email: false
node_js:
- '16'
install:
- npm ci
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:
- REPO="git@github.com:RedHatInsights/image-builder-frontend-build"
- REPO_DIR="image-builder-frontend-build"
- BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}
- NODE_OPTIONS="--max-old-space-size=4096 --max_old_space_size=4096"