forked from intellij-rust/intellij-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (28 loc) · 1.1 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
language: java
jdk: oraclejdk8
env:
global: ORG_GRADLE_PROJECT_downloadIdeaSources=false
matrix:
- ORG_GRADLE_PROJECT_ideaVersion=LATEST-EAP-SNAPSHOT RUST_VERSION=nightly
- ORG_GRADLE_PROJECT_ideaVersion=2016.2 RUST_VERSION=1.13.0
before_script:
- curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain $RUST_VERSION -y
- export PATH=$HOME/.cargo/bin:$PATH
- rustfmt --help || cargo install rustfmt --force
install: true
script:
# BACKCOMPAT:
# HACK: Force grammar kit to use current IDEA version when generating parser.
# For actual compilation and running the version from the matrix will be used.
- ORG_GRADLE_PROJECT_ideaVersion=2016.3.2 ./gradlew generateRustParser generateTomlParser
- ./gradlew check -x generateRustParser -x generateTomlParser
# 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/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.cargo/registry/
- $HOME/.cargo/bin/