forked from Giphy/giphy-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (41 loc) · 1.04 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
language: node_js
os: linux
node_js:
- '14'
env:
# skip Puppeteer download, only needed for Netlify build
- PUPPETEER_SKIP_DOWNLOAD=1
addons:
apt:
packages:
- libgconf-2-4
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
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}
before_deploy:
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc
deploy:
- provider: script
script: 'yarn run lerna:publish'
cleanup: false
skip_cleanup: true
on:
branch: master
condition: $TRAVIS_COMMIT_MESSAGE =~ ^Publish