forked from UTCWeb/particle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (50 loc) · 1.23 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
49
50
51
52
53
language: php
php:
- 8.0
# env:
# matrix:
# - TRAVIS_NODE_VERSION="10"
# - TRAVIS_NODE_VERSION="11"
# - TRAVIS_NODE_VERSION="12"
# blocklist
# branches:
# except:
# - /^Deploy\s.*$/
matrix:
fast_finish: true
# before_install:
# - '. $HOME/.nvm/nvm.sh'
# - nvm install $TRAVIS_NODE_VERSION
# - nvm use $TRAVIS_NODE_VERSION
# - npm install -g npm@latest
before_install:
# Disable xdebug.
- nvm install v14.7.0
- nvm use v14.7.0
- npm install -g [email protected]
install:
- npm install
- npm run setup
cache:
directories:
- '$HOME/.npm'
before_script:
- php --version
- node --version
- npm --version
script:
- npm run build:drupal --if-present
- npm run build:pl --if-present
after_success:
- git add .
- git commit -m "[skip travis] Adding particle dist/ assets"
# - git push https://bmartinez287:${GITHUB_API_KEY}@${GH_REF} HEAD:develop #clownvary is my username on github, you need to use yourself , do not use travis or others.
deploy:
provider: pages
edge: true
target_branch: develop
github-token: ${GITHUB_API_KEY} # Your GitHub token set in Travis CI console
on:
branch: develop
verbose: true
commit_message: "[skip travis] Deploying Compiled Assets [skip travis-ci]"