tdlight-java-natives/.travis.yml
2020-10-10 20:43:28 +02:00

75 lines
1.5 KiB
YAML

language: shell
os:
- linux
- windows
- osx
arch:
- amd64
- arm64
env:
- IMPLEMENTATION_NAME=tdlib CACHE_NAME=tdlib
- IMPLEMENTATION_NAME=tdlight CACHE_NAME=tdlight
osx_image: xcode11.3
dist: bionic
before_install:
- cp .travis.settings.xml $HOME/.m2/settings.xml
- chmod +x travis/build.sh
- chmod +x travis/build_success.sh
- chmod +x travis/deploy.sh
- 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
- clang-10
- clang-tools-10
- libc++-10-dev
- libc++abi-10-dev
- libc++-10-dev
- libc++1-10
- libc++abi1-10
- ccache
- maven
- python3
- python3-pip
- php7.2-cli
- openjdk-11-jdk
cache:
bundler: true
cocoapods: true
ccache: true
directories:
- ".autoconf"
- "$HOME/.m2"
- "$HOME/.ccache"
- "$HOME/pip"
#deploy:
# - provider: pages
# skip-cleanup: true
# 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
install: ./travis/install_dependencies.sh
script: ./travis/build.sh
after_success:
- if [ "$TRAVIS_BRANCH" = "develop" ]; then ./travis/build_success.sh; fi
- if [ "$TRAVIS_BRANCH" = "master" ]; then ./travis/deploy.sh; fi