forked from DanySK/Gravis-CI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
82 lines (75 loc) · 1.74 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
# Do not double-build branches and PRs from this repo
if: repo != head_repo
# UTILITIES
_python_job: &python_job
stage: python
script: source $GRAVIS/install-python
_maven_job: &maven_job
stage: maven
script:
- source $GRAVIS/install-jdk
- source $GRAVIS/install-maven
_old_maven: &old_maven
env: MAVEN_VERSION="3.6.1" JDK="adopt"
stages:
- name: test
if: NOT commit_message =~ /\[\s*(PYTHON|MAVEN).*\].*/
- name: python
if: NOT commit_message =~ /\[\s*(JDK|MAVEN).*\].*/
- name: maven
if: NOT commit_message =~ /\[\s*(JDK|PYTHON).*\].*/
if: NOT commit_message =~ /\[\s*SKIP(_|-|\s*)BUILD.*\].*/
language: minimal
os:
- linux
- osx
- windows
env:
global:
- GRAVIS="$TRAVIS_BUILD_DIR"
matrix:
# - JDK="" # Blocked by https://github.com/shyiko/jabba/issues/645
- JDK="adopt"
- JDK="[email protected]"
- JDK="[email protected]"
- JDK="adopt-openj9"
- JDK="[email protected]"
- JDK="[email protected]"
jobs:
include:
- <<: *python_job
- <<: *python_job
env: PYTHON="3.6.1"
- <<: *python_job
os: osx
- <<: *python_job
env: PYTHON="3.6.1"
os: osx
- <<: *python_job
os: windows
- <<: *python_job
env: PYTHON="3.6.1"
os: windows
- <<: *maven_job
- <<: *maven_job
<<: *old_maven
- <<: *maven_job
os: osx
- <<: *maven_job
<<: *old_maven
os: osx
- <<: *maven_job
os: windows
- <<: *maven_job
<<: *old_maven
os: windows
script:
# Never use travis_retry: hides failures. travis_retry is used internally where possible.
- source $GRAVIS/install-jdk
before_cache:
- $GRAVIS/clean-gradle-cache
notifications:
email:
if: branch = master
on_success: never
on_failure: change