Update .travis.settings.xml, .travis.yml, and 2 more files...
This commit is contained in:
parent
799dc8f7fc
commit
ffdac3537c
41
.travis.settings.xml
Normal file
41
.travis.settings.xml
Normal 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>
|
||||
|
||||
|
||||
|
||||
|
||||
|
38
.travis.yml
38
.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
|
||||
|
||||
|
3
travis/deploy_master.sh
Normal file
3
travis/deploy_master.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash -e
|
||||
echo "Deployed"
|
||||
echo "$TRAVIS_OS_NAME"
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/bash -e
|
||||
|
||||
# Build deps
|
||||
choco install gperf
|
||||
|
Loading…
Reference in New Issue
Block a user