forked from JetBrains/intellij-scala
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
41 lines (32 loc) · 1.08 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
language: scala
jdk:
- oraclejdk8
sudo: true
# required to update jdk, there is a compile error with the default version on Travis
addons:
apt:
packages:
- oracle-java8-installer
env:
global:
- IDEA_SDK=$HOME/.ScalaPluginIC/sdk
before_script:
# relies on travis supporting sbt-extras launcher
- sbt -jvm-opts travis/package.jvmopts packagePluginCommunity test:compile setUpTestEnvironment
script:
# only typeInference tests are run because Travis times out even for the fastTests selection
- sbt -jvm-opts travis/fastTests.jvmopts runTypeInferenceTests
# These directories are cached to S3 at the end of the build
cache:
directories:
- $HOME/.m2/repository
- $HOME/.ivy2/cache
- $HOME/.sbt
- $IDEA_SDK
before_cache:
# Tricks to avoid unnecessary cache updates
- find $HOME/.sbt -name "*.lock" -delete
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
- find $IDEA_SDK -name "ideaIC-*.zip" -delete
# remove all but the newest ideaSDK
- ls -Art $IDEA_SDK | tail -n 1 | xargs find $IDEA_SDK -maxdepth 1 -mindepth 1 -not -name | xargs rm -r