-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.travis.yml
More file actions
54 lines (50 loc) · 1.46 KB
/
.travis.yml
File metadata and controls
54 lines (50 loc) · 1.46 KB
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
49
50
51
52
53
54
# Deploy the pattern library to gh-pages
language: node_js
node_js:
- 14
branches:
except:
- /^.visual-framework\/.*$/
before_script:
- yarn install
- yarn global add gulp-cli
# with the new 11ty based library, we shouldn't need these anymore most likely
# there will probably be changes needed for percy
# - cd tools/vf-core
# - gulp vf-core:prepare-deploy
# - cd ../..
- cd tools/vf-component-library
- yarn install
- gulp build
# Disabled Wallace as its been failing with `curl: (22) The requested URL returned error: 412 Precondition Failed`
# - "curl https://www.projectwallace.com/webhooks/v1/imports?token=$WALLACE_TOKEN -fsS --retry 3 -X POST -H 'Content-Type: text/css' -d @build/css/styles.css"
# gh-pages shouldn't try to compile the .md files
- cd build && touch .nojekyll && cd ..
jobs:
include:
- stage: percy
skip-cleanup: true
env:
- PERCY_TARGET_BRANCH=develop
script:
- npx percy snapshot ./build/components/ --base-url "/"
cache:
paths:
- node_modules
branches:
except:
- develop
# deploy:
# provider: pages
# skip-cleanup: true
# github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
# wallace-token: $WALLACE_TOKEN
# keep-history: true
# target-branch: gh-pages
# local-dir: tools/vf-component-library/build
# cache:
# paths:
# - node_modules
# on:
# branch:
# - develop