ChestsPlusPlus/.travis.yml

49 lines
1.7 KiB
YAML
Raw Permalink Normal View History

2020-06-26 13:02:51 +02:00
language: java
dist: trusty
2020-07-02 23:48:22 +02:00
2020-07-04 03:07:32 +02:00
before_install:
2020-07-04 03:09:00 +02:00
- cd BuildTools
2021-07-13 21:31:30 +02:00
- bash build-pre1.17.sh
- wget https://github.com/sormuras/bach/raw/master/install-jdk.sh
- chmod +x $TRAVIS_BUILD_DIR/BuildTools/install-jdk.sh
2022-01-12 20:57:07 +01:00
# Installs Java 16 and runs scripts needing Java 16.
- export JAVA_HOME=$HOME/openjdk16
- $TRAVIS_BUILD_DIR/BuildTools/install-jdk.sh -F 16 --target $JAVA_HOME
- export PATH=$JAVA_HOME/bin:$PATH
2022-01-12 20:57:07 +01:00
- bash build-1.17.sh
# Installs Java 17 and runs scripts needing Java 17.
- export JAVA_HOME=$HOME/openjdk17
- $TRAVIS_BUILD_DIR/BuildTools/install-jdk.sh -F 17 --target $JAVA_HOME
- export PATH=$JAVA_HOME/bin:$PATH
- bash build-1.18+.sh
##
2020-07-04 03:03:53 +02:00
- cd ../
2020-07-04 03:07:32 +02:00
2020-07-04 03:49:58 +02:00
install:
- mvn -U clean install
2020-07-04 03:07:32 +02:00
script:
2020-07-04 03:49:58 +02:00
- mvn package -DskipTests
2020-07-02 23:48:22 +02:00
2020-07-04 03:03:53 +02:00
cache:
directories:
- $HOME/.m2
- BuildTools/Bukkit
- BuildTools/Spigot
- BuildTools/CraftBukkit
- BuildTools/BuildData
2020-07-04 19:03:26 +02:00
before-deploy:
- export FOO=$(ls Server/plugins/ChestsPlusPlus-*.jar)
2020-07-04 03:03:53 +02:00
2020-06-26 13:02:51 +02:00
deploy:
provider: releases
2020-07-07 20:22:30 +02:00
skip_cleanup: true
2020-07-07 20:38:47 +02:00
draft: true
2020-06-26 13:02:51 +02:00
api_key:
2020-07-07 22:18:14 +02:00
secure: PQ5CocKxo9VifO+yJzTPHGgbRZT5tOu2sWLLov6yvwkIRyItb2xAmdpyNUlJq2XrtEUaZFRgrioiSFcujriRFMQ0zSvPz3JYPaUwkp/98ljLobNJwGLyzj4IUJrdXPQnq/DLNm5GEwxuzWqRl+3RemEeZsm6cPf8hQY1QKeJIa8FnwH0hjmaDQSRq7GQDpsN3XIqwClNoV3tgOvNa+7qXEfh4lQA78hnS3bX8GlHzuzV8rBW2ttzFSdeMcV+hnoGYN/dv8CnX+4mz0hNuwX+N1+5pgfnc2wKnAlUu6maYyTt9z71sX2lnGyoTh1Nq5rxbk36PuovYqlhqJhmgEGCtQnSILUpL1ndNDDl3zBMskZugA70/PuXL46y5vdsP9zqTh0Q+xFsXx9zByIVEPSi8m2+F4MM6693i7OOm775cFFUB9G9NKpJnWcTmW0CG4yW0nYmyg8PnERe4uFsxCBk7iaEC7y4Gtk8XqasKDmLNrPxwWVN8bvRU5m2ai41WLgLS/Wnff3dOOlVftFjRVkjjSK5Gxcvb39DVITJyNabEqkYyeFBWw7MoL2pPJyICEyHt2bj6uLq92h5v8JDKI1eDBtoW341wLesaQMhqRW3UNbN9AOmA+saJQHR6WerNyKOBSaBhy/MdlfCvzycqIfuNx/BcVv3xLUodliFM2iwD8I=
2020-06-26 13:02:51 +02:00
file: "${FOO}"
on:
tags: true
repo: JamesPeters98/ChestsPlusPlus