debian-image-builder-frontend/.travis.yml
Jacob Kozol ea09205a27 test: add initial jest tests
Basic jest tests are added for the landing page. These tests use the
react testing library so the enzyme dependencies are removed from the
package.json. The travis config is also updated.
2020-10-22 10:23:08 +02:00

22 lines
585 B
YAML

language: node_js
sudo: required
notifications:
email: false
node_js:
- '10'
cache:
directories:
- node_modules
install:
- npm ci
script:
- npm run travis:verify
- 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:osbuild/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"