forked from oss-review-toolkit/ort
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
76 lines (66 loc) · 2.54 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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"
- RUST_VERSION="1.35.0"
- STACK_VERSION="2.1.1"
- YARN_VERSION="1.16.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 -sSL https://github.com/commercialhaskell/stack/raw/v$STACK_VERSION/etc/scripts/get-stack.sh | sh
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain $RUST_VERSION
- export PATH=$PATH:$HOME/.cargo/bin
- 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