forked from intellij-rust/intellij-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (54 loc) · 2.2 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
branches:
only:
- staging
- master
- trying
language: java
jdk: openjdk8
env:
global:
- OLD_RUST_VERSION=1.28.0
- CURRENT_RUST_VERSION=1.36.0
- NIGHLY_RUST_VERSION=nightly-2019-06-18
- RUST_SRC_WITH_SYMLINK=$HOME/.rust-src
matrix:
include:
# 191 platform
- name: idea-191/old-rust
env: RUST_VERSION=$OLD_RUST_VERSION ORG_GRADLE_PROJECT_platformVersion=191 ORG_GRADLE_PROJECT_ideaVersion=2019.1.2
# 192 platform
- name: idea-192/stable-rust
env: RUST_VERSION=$CURRENT_RUST_VERSION ORG_GRADLE_PROJECT_platformVersion=192
- name: clion-192/stable-rust
env: RUST_VERSION=$CURRENT_RUST_VERSION ORG_GRADLE_PROJECT_platformVersion=192 ORG_GRADLE_PROJECT_baseIDE=clion
- name: idea-192/nightly-rust
env: RUST_VERSION=$NIGHLY_RUST_VERSION ORG_GRADLE_PROJECT_platformVersion=192
- name: clion-192/nightly-rust
env: RUST_VERSION=$NIGHLY_RUST_VERSION ORG_GRADLE_PROJECT_platformVersion=192 ORG_GRADLE_PROJECT_baseIDE=clion
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
- if [ $RUST_VERSION != $OLD_RUST_VERSION ]; then rustup component add clippy-preview; fi # BACKCOMPAT: Rust 1.28.0
- 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 30 ./gradlew check -PexcludeTests=org/rustPerformanceTests/** -Pkotlin.incremental=false --no-daemon
- ./gradlew runPrettyPrintersTests --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/