Skip to content

Commit

Permalink
Cherrypick changes from #331
Browse files Browse the repository at this point in the history
This is a desperate and experimental attempt to fix the pipeline,
since it works for that branch
  • Loading branch information
LBBO committed Nov 29, 2022
1 parent 5195d87 commit 4bd9772
Showing 1 changed file with 29 additions and 32 deletions.
61 changes: 29 additions & 32 deletions .travis.yml
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

0 comments on commit 4bd9772

Please sign in to comment.