Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
72 lines (61 sloc) 2.24 KB
dist: xenial
sudo: required
language: java
jdk:
- openjdk10
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.ivy2
- $HOME/.m2/repository/
- $HOME/.ort/analyzer/cache/http
- $HOME/.ort/analyzer/cache/remote_artifacts
- $HOME/.ort/downloader/cache/http
- $HOME/.ort/scanner/cache/http
env:
global:
- ANDROID_HOME="/opt/android"
- ANDROID_SDK_VERSION="4333796"
- BOWER_VERSION="1.8.8"
- GIMME_GO_VERSION="1.10" # Used internally by Travis.
- GO_DEP_VERSION="0.5.1"
- NPM_VERSION="6.4.0"
- PHP_VERSION="7.1"
- YARN_VERSION="1.13.0"
before_install:
- sudo rm -f $JAVA_HOME/lib/security/cacerts
- sudo ln -s /etc/ssl/certs/java/cacerts $JAVA_HOME/lib/security/cacerts
install:
- sudo apt install -y cvs
- eval "$(gimme)"
- curl https://raw.githubusercontent.com/golang/dep/v$GO_DEP_VERSION/install.sh | sh
- npm install -g bower@$BOWER_VERSION npm@$NPM_VERSION yarn@$YARN_VERSION
- phpenv global $PHP_VERSION
- curl -Ls https://git.io/sbt > ~/bin/sbt
- chmod a+x ~/bin/sbt
- curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
- chmod a+x ~/bin/repo
- curl -Os https://dl.google.com/android/repository/sdk-tools-linux-$ANDROID_SDK_VERSION.zip
- unzip -q sdk-tools-linux-$ANDROID_SDK_VERSION.zip -d $ANDROID_HOME
- export SDKMANAGER_OPTS="--add-modules java.xml.bind"
- yes | $ANDROID_HOME/tools/bin/sdkmanager --verbose "platform-tools"
script:
- set -o pipefail
- if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then
./gradlew --no-daemon --stacktrace :cli:dockerBuildImage;
./gradlew --no-daemon --stacktrace -Dkotlintest.tags.exclude=ScanCodeTag check jacocoReport | tee log.txt;
else
./gradlew --no-daemon --scan --stacktrace -Dkotlintest.tags.exclude=ExpensiveTag check jacocoReport | tee log.txt;
fi
- if grep -A1 ".+Test.+STARTED$" log.txt | grep -q "^:"; then
echo "Some tests seemingly have been aborted.";
exit 1;
fi
after_success:
- if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then
bash <(curl -s https://codecov.io/bash) -X gcov -f '!*/src/*/assets/*'
fi
You can’t perform that action at this time.