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.
22 lines
585 B
YAML
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"
|