forked from guilhermejccavalcanti/s3m
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
70 lines (54 loc) · 2.17 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
# Java is currently unsupported on Windows, so we use a bash build and
# install it using Gravis' (https://github.com/DanySK/Gravis-CI) script.
language: bash
env:
- GRAVIS="https://raw.githubusercontent.com/DanySK/Gravis-CI/master/" JDK="1.8"
os:
- linux
- osx
- windows
notifications:
email:
recipients:
on_success: always
before_install:
- curl "${GRAVIS}.install-jdk-travis.sh" --output ~/.install-jdk-travis.sh
- source ~/.install-jdk-travis.sh
- ./gradlew clean build -x test --console=plain # build
- cp build/libs/jFSTMerge-all.jar ${HOME}/s3m.jar
- bash testfiles/shelltests/config/gitconfiguration.sh # configure git integration with S3M
- git config --global user.email "[email protected]"
- git config --global user.name "Guilherme Cavalcanti"
script:
- ./gradlew test --console=plain
- cd testfiles/shelltests
- if [ "${TRAVIS_OS_NAME}" == "windows" ]; then
javac -cp .\;dependencies/* s3mGitIntegrationTests.java;
java -cp .\;dependencies/* org.junit.runner.JUnitCore s3mGitIntegrationTests;
else
javac -cp .:dependencies/* s3mGitIntegrationTests.java;
java -cp .:dependencies/* org.junit.runner.JUnitCore s3mGitIntegrationTests;
fi
before_cache:
- curl "${GRAVIS}.clean_gradle_cache.sh" --output ~/.clean_gradle_cache.sh
- bash ~/.clean_gradle_cache.sh
jobs:
include:
- if: type == cron # Cron build: triggered periodically.
before_install:
- ./gradlew clean build -x test --console=plain # build
- cp build/libs/jFSTMerge-all.jar ${HOME}/s3m.jar
- bash testfiles/shelltests/config/gitconfiguration.sh # configure git integration with S3M
- git config --global user.email "[email protected]"
- git config --global user.name "Guilherme Cavalcanti"
before_script:
- cd testfiles/shelltests
script:
- if [ "${TRAVIS_OS_NAME}" == "windows" ]; then
javac -cp .\;dependencies/* s3mCronTests.java;
java -cp .\;dependencies/* org.junit.runner.JUnitCore s3mCronTests;
else
javac -cp .:dependencies/* s3mCronTests.java;
java -cp .:dependencies/* org.junit.runner.JUnitCore s3mCronTests;
fi