-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (41 loc) · 974 Bytes
/
.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
# Only build on master branch and stable branch
if: branch = master OR branch = stable
matrix:
include:
# Build JAR
- language: java
jdk: oraclejdk8
# Cache the build files
cache:
directories:
- .autoconf
- $HOME/.m2
- $HOME/.gradle
# Deploy to GH releases
deploy:
provider: script
script: bash scripts/github_release.sh
skip_cleanup: true
on:
repo: whsmc/GUIShopMinus
branch: master
# Build config gen
- language: node_js
node_js:
- "10"
# Cache dependencies
cache: npm
# Build and install deps
script:
- cd website
- npm ci
- npm run build
deploy:
# Deploy the webapp to gh-pages
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: true
local_dir: website/dist
on:
branch: master