-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is a desperate and experimental attempt to fix the pipeline, since it works for that branch
- Loading branch information
Showing
1 changed file
with
29 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,48 @@ | ||
language: node_js | ||
os: linux | ||
node_js: | ||
- '14' | ||
- '14' | ||
|
||
env: | ||
# skip Puppeteer download, only needed for Netlify build | ||
- PUPPETEER_SKIP_DOWNLOAD=1 | ||
# skip Puppeteer download, only needed for Netlify build | ||
- PUPPETEER_SKIP_DOWNLOAD=1 | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- libgconf-2-4 | ||
apt: | ||
packages: | ||
- libgconf-2-4 | ||
|
||
cache: | ||
yarn: true | ||
directories: | ||
- 'node_modules' | ||
- '~/.cache' | ||
yarn: true | ||
directories: | ||
- 'node_modules' | ||
- '~/.cache' | ||
|
||
before_script: | ||
- yarn global add license-checker | ||
- yarn run lerna bootstrap | ||
- git checkout . | ||
- yarn run cy:verify | ||
- yarn run cy:info | ||
- yarn global add license-checker | ||
- yarn run lerna bootstrap | ||
- git checkout . | ||
- yarn run cy:verify | ||
- yarn run cy:info | ||
|
||
script: | ||
- yarn run check-licenses | ||
- yarn run dependency-cruiser | ||
- yarn run lint | ||
- yarn test | ||
# All Percy snapshots except SearchBar have been moved to Cypress, to avoid confusion disable the old "snapshot" command. | ||
# When the Cypress setuisbe verified, this command might be removed. | ||
# - yarn run snapshot | ||
- yarn run cy:run --record --key ${CYPRESS_RECORD_KEY} | ||
# after all tests finish running we need | ||
# to kill all background jobs (like "npm start &") | ||
# this avoids flake in Travis jobs | ||
- kill $(jobs -p) || true | ||
- yarn run check-licenses | ||
- yarn run dependency-cruiser | ||
- yarn run lint | ||
- yarn test | ||
# All Percy snapshots except SearchBar have been moved to Cypress, to avoid confusion disable the old "snapshot" command. | ||
# When the Cypress setuisbe verified, this command might be removed. | ||
# - yarn run snapshot | ||
- yarn run cy:run --record --key ${CYPRESS_RECORD_KEY} | ||
|
||
before_deploy: | ||
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc | ||
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc | ||
|
||
deploy: | ||
if: branch = master AND tag IS present | ||
provider: script | ||
- provider: script | ||
script: 'yarn run lerna:publish' | ||
cleanup: false | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
condition: $TRAVIS_COMMIT_MESSAGE =~ ^Publish | ||
branch: master | ||
condition: $TRAVIS_COMMIT_MESSAGE =~ ^Publish |