-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
46 lines (41 loc) · 1.52 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
# Some parts copied from https://github.com/remkop/picocli-native-image-maven-demo/blob/master/.travis.yml
jobs:
include:
- os: linux
env: JAVA_HOME="$HOME/.sdkman/candidates/java/current"
- os: osx
env: JAVA_HOME="$HOME/.sdkman/candidates/java/current"
- os: windows
language: shell
env: JAVA_HOME="$HOME/.sdkman/candidates/java/current"
branches:
only:
- master
# Ruby regex to match tags. Required, or travis won't trigger deploys when
# a new tag is pushed. Version tags should be of the form: v0.1.0
- /^v\d+\.\d+\.\d+.*$/
before_install:
- if [ $TRAVIS_OS_NAME = windows ]; then choco install zip unzip ; fi
- if [ $TRAVIS_OS_NAME = windows ]; then choco install visualstudio2017-workload-vctools ; fi
- curl -sL https://get.sdkman.io | bash
- mkdir -p "$HOME/.sdkman/etc/"
- echo sdkman_auto_answer=true > "$HOME/.sdkman/etc/config"
- echo sdkman_auto_selfupdate=true >> "$HOME/.sdkman/etc/config"
- source "$HOME/.sdkman/bin/sdkman-init.sh"
install:
- sdk install java 20.0.0.r11-grl
- if [ $TRAVIS_OS_NAME != windows ]; then gu install native-image ; fi
- if [ $TRAVIS_OS_NAME = windows ]; then gu.cmd install native-image ; fi
- if [ $TRAVIS_OS_NAME != windows ]; then native-image --version ; fi
- if [ $TRAVIS_OS_NAME = windows ]; then native-image.cmd --version ; fi
- sdk install sbt
script:
- ./ci/script.sh
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: release/teleport-scala*
skip_cleanup: true
on:
tags: true