-
Notifications
You must be signed in to change notification settings - Fork 36
/
Copy path.travis.yml
29 lines (29 loc) · 1.25 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
language: node_js
node_js:
- 16
cache:
yarn: true
directories:
- node_modules
script:
- yarn lint
- yarn build
- yarn build:css:all
- yarn build:doc:react
- yarn build:doc:kss
- yarn test
- mkdir ./screenshots
- yarn screenshots --mode react --viewport desktop --screenshot-dir ./screenshots/reactDesktop
- yarn screenshots --mode react --viewport 300x600 --screenshot-dir ./screenshots/reactMobile
- yarn screenshots --mode kss --screenshot-dir ./screenshots/kss
- yarn argos:upload screenshots/reactDesktop/ --token $ARGOS_TOKEN --branch $TRAVIS_BRANCH --commit $TRAVIS_COMMIT --batchCount 3 --external-build-id $TRAVIS_COMMIT
- yarn argos:upload screenshots/reactMobile/ --token $ARGOS_TOKEN --branch $TRAVIS_BRANCH --commit $TRAVIS_COMMIT --batchCount 3 --external-build-id $TRAVIS_COMMIT
- yarn argos:upload screenshots/kss/ --token $ARGOS_TOKEN --branch $TRAVIS_BRANCH --commit $TRAVIS_COMMIT --batchCount 3 --external-build-id $TRAVIS_COMMIT
- yarn bundlemon
deploy:
- provider: script
repo: cozy/cozy-ui
skip-cleanup: true
script: yarn deploy:doc -- --username cozycloud --email [email protected] --repo https://cozy-bot:[email protected]/cozy/cozy-ui.git && yarn semantic-release
on:
branch: master