-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy path.travis.yml
77 lines (67 loc) · 4.27 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
language: java
jdk:
- oraclejdk8
dist: trusty
sudo: false
env:
global:
- secure: PrFbSr/qjhVXrpiOzrcEMUZrnjEWJmvx5DC9QdaAmnUKpG9/7mJBQVgNziVj+GWfW84WJpkOsQf+I2lx7/cQsWQKad/t8wtypl30wGesSTpAgl5fCiKLOBAbOghKXir+WIaxtcATPPffur9OLh3ogEcmIQbVi682YUKmA5zF11JZdpCR4QONc/u+DqB29FuHru/cFiesYP0Oz82A+M0UtMcYsurKIxdKMD4YK/uSG892PUrcZU6STXlukhgQuy3PitSWkYV2KGxXMVKzWGM7dJvRggN05r/S871pscuRwZ+Doxqr9b17B3umCHi3i4KXmNH+Esb0p1mvegs0iS/b7RyA5SENre+H24n3SOeXTa3wSpTnF90XxQrDEBbY5wV7lN7MJG+pHxkOvoZt6pS3f7x2VYR8Joa4J+Gf6IDvxZMiCd1v3N1kc9ygyvJmHf5wDmLMdupk0/frojApDXfJT6bqiVL3S0FqZpXSPGAsKYf8wfn30Xz/YUBsnfUQ/a21Zz52+OTqPbt32Hf1FGYIEJSkZJUN90Q8rHVJt9zPg37xKCDuf6bxlvT040KSzuuXtizLkOnHq2rhg4Oad/JTw3d4NzPoRVzUI9qDKPrA7RdUAjmrB04Z1f3g/I6w3h2B9JTSFAzBcMZ5NYZhIqE31GQukgStaqC98y32/zo9xFs=
- secure: "WalAXxkaD+B+mMBN+1QXrsQVl90984+giSLl7dgPwTPdQ/Ka/8AlX4n53HATztgmjwgJbM+Y53YhoSR6Zaj8CRUL6WhXGwNA2q7Xma8q0WNmX8LmoBsJlw44G50yG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EbmNphWzz/vFO4UCphMSMt6SLoN7r3br7DYLRUevdK8vrIUb1LUQPGMYf7WIdMnckme7y+oJ3SR2YO6+vs3EyQsF1AdJqpbvag0/AbWHFVi2vfwrvKZwperPLtXE+EXh8B+Ck62gcYsTyUuMpoEws/+DqHUFByOgDbPDFBmFYwPWCoZh4h3Rw=
matrix:
fast_finish: true
include:
- env: TASK=core-tests
- env: TASK=checkstyle
- env: TASK=kompos-tests
- env: TASK=replay1-tests
- env: TASK=replay2-tests
- env: TASK=snapshot-tests
- env: TASK=native
- os: linux
dist: trusty
jdk: openjdk11
env: TASK=unit-tests
- os: osx
osx_image: xcode9.3
language: generic
env: TASK=unit-tests
before_install:
- |
run() {
ID=`echo "$@" | sed -e 's/ /_/g'`
STR=`echo "$@"`
printf "travis_fold:start:$ID\n$STR\n"
eval "$@"
RESULT_EVAL=$?
printf "travis_fold:end:$ID\n"
return $RESULT_EVAL
}
if [ "$TRAVIS_OS_NAME" = "osx" ]
then
brew update
brew install ant
fi
install: |
printf "travis_fold:start:downloads\nLoad JDK and/or Eclipse\n"
if [ "$TASK" = "checkstyle" ]
then
export ECLIPSE_TAR=eclipse.tar.gz
export ECLIPSE_URL=http://archive.eclipse.org/eclipse/downloads/drops4/R-4.6.3-201703010400/eclipse-SDK-4.6.3-linux-gtk-x86_64.tar.gz
wget --progress=bar:force ${ECLIPSE_URL} -O ${ECLIPSE_TAR}
tar -C ${TRAVIS_BUILD_DIR}/.. -xzf ${ECLIPSE_TAR}
export ECLIPSE_EXE=${TRAVIS_BUILD_DIR}/../eclipse/eclipse
fi
export ANT="ant -e"
printf "travis_fold:end:downloads\n"
script:
- if [ "$TASK" = "core-tests" ]; then $ANT core-tests && $ANT serialization-tests && $ANT coverage; fi
- if [ "$TASK" = "checkstyle" ]; then $ANT checkstyle && $ANT eclipseformat-check && run cd tools/kompos && nvm install 7 && run npm install && run npm run lint; fi
- if [ "$TASK" = "kompos-tests" ]; then run nvm install 8 && $ANT && cd tools/kompos && run npm -s run verify && run npm test; fi
- if [ "$TASK" = "replay1-tests" ]; then $ANT compile && run ./tests/replay/test.sh 1; fi
- if [ "$TASK" = "replay2-tests" ]; then $ANT compile && run ./tests/replay/test.sh 2; fi
- if [ "$TASK" = "snapshot-tests" ]; then $ANT compile && run ./tests/snapshot/test.sh; fi
- if [ "$TASK" = "unit-tests" ]; then $ANT compile && run ./som core-lib/TestSuite/TestRunner.ns; fi
- if [ "$TASK" = "native" ]; then $ANT native; fi