From ffdac3537c9cf5a66cf6f2eabb921eedfe5d5818 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Tue, 18 Aug 2020 16:31:36 +0200 Subject: [PATCH] Update .travis.settings.xml, .travis.yml, and 2 more files... --- .travis.settings.xml | 41 +++++++++++++++++++++++++++++++++++++++++ .travis.yml | 38 +++++++++++++++++++++----------------- travis/deploy_master.sh | 3 +++ travis/win.sh | 2 +- 4 files changed, 66 insertions(+), 18 deletions(-) create mode 100644 .travis.settings.xml create mode 100644 travis/deploy_master.sh diff --git a/.travis.settings.xml b/.travis.settings.xml new file mode 100644 index 0000000..9bc015e --- /dev/null +++ b/.travis.settings.xml @@ -0,0 +1,41 @@ + + + + github + + + + + github + + + central + https://repo1.maven.org/maven2 + true + true + + + github + GitHub OWNER Apache Maven Packages + https://maven.pkg.github.com/tdlight-team/tdlight-java + + + + + + + + github + Cavallium + ${env.PACKAGECLOUD_TOKEN} + + + + + + + + diff --git a/.travis.yml b/.travis.yml index 3f91bda..103233c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,30 +11,33 @@ arch: jobs: include: - - os: linux - arch: amd64 - - os: linux - arch: arm64 - - os: windows - arch: amd64 + - stage: deploy + name: "Deploy binaries to master" + script: "bash travis/deploy_master.sh" cache: bundler: true cocoapods: true ccache: true directories: - - .autoconf - - $HOME/.m2 + - ".autoconf" + - "$HOME/.m2" + - "$HOME/.cache" deploy: - provider: pages - skip-cleanup: true - github-token: $GITHUB_TOKEN - keep-history: true - local-dir: out - repo: tdlight-team/tdlib-docs - on: - branch: master + - provider: pages + skip-cleanup: true + github-token: $GITHUB_TOKEN + keep-history: true + local-dir: out + repo: tdlight-team/tdlib-docs + on: + branch: master +# - provider: script +# skip-cleanup: true +# script: "mvn -B -V deploy" +#before_install: +# - cp .travis.settings.xml $HOME/.m2/settings.xml script: | if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then @@ -43,4 +46,5 @@ script: | if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then bash travis/win.sh; - fi + fi + diff --git a/travis/deploy_master.sh b/travis/deploy_master.sh new file mode 100644 index 0000000..9243893 --- /dev/null +++ b/travis/deploy_master.sh @@ -0,0 +1,3 @@ +#!/bin/bash -e +echo "Deployed" +echo "$TRAVIS_OS_NAME" diff --git a/travis/win.sh b/travis/win.sh index caf2f6a..f6a0c40 100644 --- a/travis/win.sh +++ b/travis/win.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -e # Build deps choco install gperf