forked from swoval/swoval
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
92 lines (76 loc) · 2.9 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
image:
- MacOS
- Visual Studio 2015
- Visual Studio 2017
- Ubuntu
build: off
init:
- git config --global core.autocrlf input
cache:
- '%USERPROFILE%\.ivy2\cache'
- '%USERPROFILE%\.sbt'
for:
-
matrix:
only:
- image: Ubuntu
artifacts:
- path: ./files/jvm/target/classes/native/x86_64/libswoval-files0.so
name: libswoval-files0.so
install:
- curl -sL https://github.com/sbt/sbt/releases/download/v1.4.4/sbt-1.4.4.tgz > ~/sbt-bin.tgz
- mkdir ~/sbt
- tar -xf ~/sbt-bin.tgz --directory ~/sbt
- curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash && . ~/.jabba/jabba.sh
- jabba install [email protected]
- jabba use [email protected]
- export PATH="~/sbt/sbt/bin:$PATH"
- export JAVA_HOME="~/.jabba/jdk/[email protected]"
- export PATH="$PATH:$JAVA_HOME/bin"
- export SBT_OPTS=-"Xmx2g -Dswoval.format=false -Dfile.encoding=UTF8 -Dswoval.skip.native=true -Dswoval.fork.tests=true -Dswoval.alltests.iterations=50"
test_script:
- sbt "filesJVM/jacoco" "travisQuickListReflectionTest" "allTests"
-
matrix:
only:
- image: MacOS
artifacts:
- path: ./files/jvm/target/classes/native/x86_64/libswoval-files0.dylib
name: libswoval-files0.dylib
install:
- curl -sL https://github.com/sbt/sbt/releases/download/v1.4.4/sbt-1.4.4.tgz > ~/sbt-bin.tgz
- mkdir ~/sbt
- tar -xf ~/sbt-bin.tgz --directory ~/sbt
- curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash && . ~/.jabba/jabba.sh
- jabba install [email protected]
- jabba use [email protected]
- export PATH="~/sbt/sbt/bin:$PATH"
- export JAVA_HOME="~/.jabba/jdk/[email protected]"
- export PATH="$PATH:$JAVA_HOME/bin"
- export SBT_OPTS="-Xmx2g -Dswoval.format=false -Dfile.encoding=UTF8 -Dswoval.skip.native=true -Dswoval.fork.tests=true -Dswoval.alltests.iterations=50"
test_script:
- sbt "filesJVM/jacoco" "travisQuickListReflectionTest" "allTests"
-
matrix:
only:
- image: Visual Studio 2015
- image: Visual Studio 2017
artifacts:
- path: ./files/jvm/target/classes/native/x86_64/swoval-files0.dll
name: swoval-files0.dll
install:
- SET JAVA_HOME=C:\Program Files\Java\jdk1.8.0
- SET PATH=%JAVA_HOME%\bin;%PATH%
- ps: |
Add-Type -AssemblyName System.IO.Compression.FileSystem
if (!(Test-Path -Path "C:\sbt" )) {
(new-object System.Net.WebClient).DownloadFile(
'https://github.com/sbt/sbt/releases/download/v1.4.4/sbt-1.4.4.zip',
'C:\sbt-bin.zip'
)
[System.IO.Compression.ZipFile]::ExtractToDirectory("C:\sbt-bin.zip", "C:\sbt")
}
- SET PATH=C:\sbt\sbt\bin;%PATH%
- SET SBT_OPTS=-Xmx2g -Dswoval.format=false -Dfile.encoding=UTF8 -Dswoval.skip.native=true -Dswoval.fork.tests=true -Dswoval.alltests.iterations=50
test_script:
- sbt "filesJVM/jacoco" "travisQuickListReflectionTest" "allTests"