2020-10-10 04:03:20 +02:00
|
|
|
language: shell
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- windows
|
|
|
|
- osx
|
|
|
|
arch:
|
|
|
|
- amd64
|
|
|
|
- arm64
|
2020-10-10 15:23:23 +02:00
|
|
|
env:
|
2020-10-10 19:11:09 +02:00
|
|
|
- IMPLEMENTATION_NAME=tdlib CACHE_NAME=tdlib
|
|
|
|
- IMPLEMENTATION_NAME=tdlight CACHE_NAME=tdlight
|
2020-10-10 04:03:20 +02:00
|
|
|
osx_image: xcode11.3
|
2020-10-10 18:51:42 +02:00
|
|
|
dist: bionic
|
2020-10-10 04:03:20 +02:00
|
|
|
before_install:
|
|
|
|
- cp .travis.settings.xml $HOME/.m2/settings.xml
|
|
|
|
- chmod +x travis/build.sh
|
|
|
|
- chmod +x travis/build_success.sh
|
2020-10-10 16:08:07 +02:00
|
|
|
- chmod +x travis/deploy.sh
|
2020-10-10 04:03:20 +02:00
|
|
|
- chmod +x travis/install_dependencies.sh
|
|
|
|
- chmod +x travis/setup_variables.sh
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
update: true
|
|
|
|
packages:
|
|
|
|
- make
|
|
|
|
- git
|
|
|
|
- zlib1g-dev
|
|
|
|
- libssl-dev
|
|
|
|
- gperf
|
|
|
|
- cmake
|
|
|
|
- g++
|
2020-10-10 15:44:12 +02:00
|
|
|
- clang
|
|
|
|
- libc++-dev
|
2020-10-10 04:03:20 +02:00
|
|
|
- ccache
|
|
|
|
- maven
|
|
|
|
- python3
|
2020-10-10 17:27:48 +02:00
|
|
|
- python3-pip
|
2020-10-10 18:51:42 +02:00
|
|
|
- php7.2-cli
|
|
|
|
- openjdk-11-jdk
|
2020-10-10 04:03:20 +02:00
|
|
|
cache:
|
|
|
|
bundler: true
|
|
|
|
cocoapods: true
|
|
|
|
ccache: true
|
|
|
|
directories:
|
|
|
|
- ".autoconf"
|
|
|
|
- "$HOME/.m2"
|
|
|
|
- "$HOME/.ccache"
|
2020-10-10 17:50:15 +02:00
|
|
|
- "$HOME/.cache/pip"
|
2020-10-10 04:03:20 +02:00
|
|
|
|
2020-10-10 15:15:49 +02:00
|
|
|
#deploy:
|
|
|
|
# - provider: pages
|
2020-10-10 04:03:20 +02:00
|
|
|
# skip-cleanup: true
|
2020-10-10 15:15:49 +02:00
|
|
|
# github-token: $GITHUB_TOKEN
|
|
|
|
# keep-history: false
|
|
|
|
# local-dir: out/docs
|
|
|
|
# repo: tdlight-team/tdlight-docs
|
|
|
|
# target_branch: master
|
|
|
|
# email: andrea@cavallium.it
|
|
|
|
# name: "Andrea Cavalli"
|
|
|
|
# verbose: true
|
|
|
|
# on:
|
|
|
|
# branch: dev
|
|
|
|
# condition: $TRAVIS_OS_NAME = linux && $TRAVIS_CPU_ARCH = amd64
|
2020-10-10 04:03:20 +02:00
|
|
|
|
|
|
|
install: ./travis/install_dependencies.sh
|
|
|
|
script: ./travis/build.sh
|
2020-10-10 15:57:55 +02:00
|
|
|
after_success:
|
|
|
|
- if [ "$TRAVIS_BRANCH" = "develop" ]; then ./travis/build_success.sh; fi
|
|
|
|
- if [ "$TRAVIS_BRANCH" = "master" ]; then ./travis/deploy.sh; fi
|