andreacavalli
/
JTDLib
Archived
forked from ErnyTech/JTDLib
1
0
Fork 0

Update .travis.settings.xml, .travis.yml, and 2 more files...

This commit is contained in:
Andrea Cavalli 2020-08-18 16:31:36 +02:00
parent 799dc8f7fc
commit ffdac3537c
4 changed files with 66 additions and 18 deletions

41
.travis.settings.xml Normal file
View File

@ -0,0 +1,41 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>
<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>central</id>
<url>https://repo1.maven.org/maven2</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
<repository>
<id>github</id>
<name>GitHub OWNER Apache Maven Packages</name>
<url>https://maven.pkg.github.com/tdlight-team/tdlight-java</url>
</repository>
</repositories>
</profile>
</profiles>
<servers>
<server>
<id>github</id>
<username>Cavallium</username>
<password>${env.PACKAGECLOUD_TOKEN}</password>
</server>
</servers>
</settings>

View File

@ -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

3
travis/deploy_master.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash -e
echo "Deployed"
echo "$TRAVIS_OS_NAME"

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -e
# Build deps
choco install gperf