forked from Heapy/awesome-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 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
54
55
56
57
58
59
language: java
os: linux
dist: bionic
jdk:
- openjdk11
addons:
ssh_known_hosts: kotlin.link
before_install:
- nvm install 12
install:
- yarn --cwd app-frontend install
- ./gradlew assemble
script:
# - curl https://kotlin.link/api/readme > readme/README.adoc
- ./gradlew check installDist
- ./build/install/awesome-kotlin/bin/awesome-kotlin
- yarn --cwd app-frontend run build
- docker build -t "heapy/awesome:b${TRAVIS_BUILD_NUMBER}" -t "heapy/awesome:latest" ./app-backend/
deploy:
- provider: script
script: bash .ci/deploy-docker.sh
skip_cleanup: true
on:
branch: main
- provider: script
script: bash .ci/deploy-site.sh
skip_cleanup: true
on:
branch: main
- provider: pages
skip_cleanup: true
github_token: $GH_TOKEN
keep_history: true
local_dir: readme
target_branch: readme
committer_from_gh: true
on:
branch: main
before_cache:
- rm -f "${HOME}/.gradle/caches/modules-2/modules-2.lock"
- rm -rf "${HOME}/.gradle/caches/*/plugin-resolution/"
- rm -rf "${HOME}/.gradle/caches/*/fileHashes/"
cache:
yarn: true
directories:
- "${HOME}/.cache/awesome-kotlin/"
- "${HOME}/.gradle/caches/"
- "${HOME}/.gradle/wrapper/"
git:
depth: 10