-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
40 lines (37 loc) · 1.08 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
jobs:
## ----------------------------------------
## --- Steps to test and build the code
## ----------------------------------------
include:
- language: java
jdk:
- oraclejdk9
before_install:
- chmod +x gradlew
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
## ----------------------------------------------------
## --- Steps to build and publish the documentation
## ----------------------------------------------------
- language: node_js
stage: Build docs
node_js:
- lts/*
install:
- npm ci
script:
- npm run docs:build
- echo 'kt.sdk.docs.commercio.network' > docs/.vuepress/dist/CNAME
deploy:
provider: pages
skip_cleanup: true
local_dir: docs/.vuepress/dist
github_token: $GITHUB_TOKEN
keep_history: true
on:
branch: master