forked from scalatest/scalatest
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
84 lines (75 loc) · 2.18 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
78
79
80
81
82
83
84
language: scala
scala:
- 2.10.7
- 2.11.12
- 2.12.12
- 2.13.3
jdk:
- oraclejdk8
dist: trusty
sudo: true
env:
#see https://github.com/scalatest/scalatest/pull/245
#global values should be replaced using http://docs.travis-ci.com/user/encryption-keys/ with valid values
global:
- SCALATEST_NEXUS_LOGIN=tbd
- SCALATEST_NEXUS_PASSWORD=tbd
- SCALATEST_GPG_FILE=tbd
- SCALATEST_GPG_PASSPHASE=tbd
matrix:
- MODE=RegularTests1
- MODE=RegularTests2
- MODE=RegularTests3
- MODE=RegularTests4
- MODE=RegularTests5
- MODE=ScalacticTests
- MODE=genMustMatchersTests1
- MODE=genMustMatchersTests2
- MODE=genMustMatchersTests3
- MODE=genMustMatchersTests4
- MODE=genGenTests
- MODE=genTablesTests
- MODE=genInspectorsTests
- MODE=genInspectorsShorthandsTests1
- MODE=genInspectorsShorthandsTests2
- MODE=genTheyTests
- MODE=genContainTests1
- MODE=genContainTests2
- MODE=genSortedTests
- MODE=genLoneElementTests
- MODE=genEmptyTests
- MODE=examples
- MODE=examplesJS
branches:
only:
- 3.0.x
- 3.1.x
- 3.2.x-new
- 3.3.x
script:
# work around https://github.com/travis-ci/travis-ci/issues/9713
- if [[ $JAVA_HOME = *java-6* ]]; then jdk_switcher use openjdk6; fi
- java -version
- ./travis_build.sh $MODE
notifications:
email:
- bill@artima.com
- cheeseng@amaseng.com
cache:
directories:
- $HOME/.ivy2
#after_success:
# # only 'scalatest/scalatest' 'master' branch is published from the first node
# - |
# echo "Succeded on: ${TRAVIS_REPO_SLUG}/${TRAVIS_BRANCH}"
# if [ "${TRAVIS_REPO_SLUG}/${TRAVIS_BRANCH}" = "scalatest/scalatest/master" ]; then
# # temporary for convinience taken outside, todo: grab in repo, also some of steps may be hidden in inside of travis_build
# curl -o travis_after_all.py https://raw.github.com/dmakhno/travis_after_all/master/travis_after_all.py
# python travis_after_all.py
# export $(cat .to_export_back)
# if [ "$BUILD_LEADER" = "YES" ]; then
# if [ "$BUILD_AGGREGATE_STATUS" = "others_succeeded" ]; then
# ./travis_build.sh Publish
# fi
# fi
# fi