Update .travis.yml and preinstall.sh

This commit is contained in:
Andrea Cavalli 2020-08-18 21:56:36 +02:00
parent 09dd1e528d
commit e342c9791f
2 changed files with 6 additions and 3 deletions

View File

@ -9,7 +9,7 @@ arch:
osx_image: xcode10.1
dist: bionic
before_install:
- sudo apt-get -y install make git zlib1g-dev libssl-dev gperf php cmake openjdk-11-jdk-headless g++ ccache maven
- bash travis/preinstall.sh
- cp .travis.settings.xml $HOME/.m2/settings.xml
addons:
apt:
@ -38,8 +38,7 @@ deploy:
script: |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
bash -e travis/linux.sh;
bash -e travis/deploy_master.sh
bash -e travis/linux.sh && bash -e travis/deploy_master.sh
fi
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then

4
travis/preinstall.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash -e
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get -y install make git zlib1g-dev libssl-dev gperf php cmake openjdk-11-jdk-headless g++ ccache maven
fi