forked from intellij-rust/intellij-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
38 lines (32 loc) · 1.38 KB
/
appveyor.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
branches:
only:
- staging
- trying
environment:
# use the most aggressive compressing because .gradle is HUGE
APPVEYOR_CACHE_ENTRY_ZIP_ARGS: -t7z -m0=lzma2 -mx=9
JAVA_HOME: C:\Program Files\Java\jdk1.8.0
RUST_VERSION: 1.36.0
JAVA_OPTS: -Xmx2g
RUST_SRC_WITH_SYMLINK: C:\Users\appveyor\.rust-src
install:
- appveyor-retry appveyor DownloadFile https://win.rustup.rs -FileName rustup-init.exe
- rustup-init.exe --default-toolchain %RUST_VERSION% -y
- set PATH=C:\Users\appveyor\.cargo\bin;%PATH%
- rustup component add rust-src
- rustup component add clippy-preview
- rustup component add rustfmt-preview
- for /f "delims=*" %%a in ('rustc --print sysroot') do (Mklink /D "C:\Users\appveyor\.rust-src" "%%a\lib\rustlib\src\rust\src\")
build_script:
- gradlew.bat -Dkotlin.compiler.execution.strategy="in-process" assemble testClasses --no-daemon
test_script:
- gradlew.bat check -PexcludeTests=org/rustPerformanceTests/** --no-daemon
on_success:
- ps: rm C:\Users\appveyor\.gradle\caches\modules-2\modules-2.lock -force
- ps: rm C:\Users\appveyor\.gradle\caches\*\plugin-resolution\ -recurse -force
- ps: rm C:\Users\appveyor\.gradle\caches\*\fileHashes\fileHashes.bin -force
- ps: rm C:\Users\appveyor\.gradle\caches\*\fileHashes\fileHashes.lock -force
cache:
- C:\Users\appveyor\.cargo\registry
- C:\Users\appveyor\.cargo\bin
- C:\Users\appveyor\.gradle