Skip to content

Commit 401c2f3

Browse files
fix: travis ci settings
1 parent 0121fff commit 401c2f3

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.travis.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ dist: trusty
88
git:
99
depth: 3
1010

11-
cache: yarn
12-
1311
notifications:
1412
email: false
1513
slack:
@@ -21,6 +19,12 @@ branches:
2119
- master
2220
- "/^v[0-9\\.]+/"
2321

22+
cache:
23+
yarn: true
24+
directories:
25+
- node_modules
26+
- "${TRAVIS_BUILD_DIR}/.work/cache"
27+
2428
stages:
2529
- name: check
2630
if: branch = master and tag IS blank and type IN (pull_request, api)
@@ -93,8 +97,10 @@ jobs:
9397
- GH_PAGES_TRACKING_ID=UA-78163306-3
9498
script: skip
9599
before_deploy:
96-
- source tests/bin/deploy/env.sh
97-
- bash tests/bin/deploy/gh-pages.sh
100+
- git clone --depth=1 https://github.com/wp-content-framework/travis-ci.git travis-ci
101+
- bash travis-ci/bin/prepare.sh
102+
- source travis-ci/bin/deploy/env.sh
103+
- bash travis-ci/bin/deploy/gh-pages.sh
98104
deploy:
99105
provider: pages
100106
skip_cleanup: true

0 commit comments

Comments
 (0)