forked from intellij-rust/intellij-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (45 loc) · 1.79 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
branches:
only:
- staging
- master
- trying
language: java
jdk: oraclejdk8
env:
global:
- OLD_RUST_VERSION=1.25.0
- CURRENT_RUST_VERSION=1.30.0
- NIGHLY_RUST_VERSION=nightly-2018-11-09
- RUST_SRC_WITH_SYMLINK=$HOME/.rust-src
matrix:
# 182 platform
- RUST_VERSION=$NIGHLY_RUST_VERSION ORG_GRADLE_PROJECT_platformVersion=182 ORG_GRADLE_PROJECT_sinceBuild=182 ORG_GRADLE_PROJECT_ideaVersion=182.4892.20 # modified by script
- RUST_VERSION=$CURRENT_RUST_VERSION ORG_GRADLE_PROJECT_platformVersion=182
- RUST_VERSION=$OLD_RUST_VERSION ORG_GRADLE_PROJECT_platformVersion=182 ORG_GRADLE_PROJECT_sinceBuild=182 ORG_GRADLE_PROJECT_ideaVersion=2018.2
# 183 platform
- RUST_VERSION=$CURRENT_RUST_VERSION ORG_GRADLE_PROJECT_platformVersion=183
install: true
before_script:
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain $RUST_VERSION -y
- export PATH=$HOME/.cargo/bin:$PATH
- rustup component add rust-src
- rustup component add rustfmt-preview
- ln -s $(rustc --print sysroot)/lib/rustlib/src/rust/src $RUST_SRC_WITH_SYMLINK
- ./check-license.sh
- ./gradlew :resolveDependencies -Pkotlin.incremental=false --no-daemon
- ./gradlew assemble testClasses -Pkotlin.incremental=false --no-daemon
script:
- travis_wait ./gradlew check -Pkotlin.incremental=false --no-daemon
# https://docs.travis-ci.com/user/languages/java/#Caching
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
- rm -f $HOME/.gradle/caches/*/fileHashes/fileHashes.bin
- rm -f $HOME/.gradle/caches/*/fileHashes/fileHashes.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.cargo/registry/cache/
- $HOME/.cargo/registry/src/
- $HOME/.cargo/bin/