-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
141 lines (141 loc) · 4.75 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
branches:
only:
- master
before_install:
- git config --global user.name "$USER"
- git config --global user.email "$TRAVIS_BUILD_NUMBER@$TRAVIS_COMMIT"
- openssl aes-256-cbc -K $encrypted_4308745bc0f5_key -iv $encrypted_4308745bc0f5_iv -in project/travis-deploy-key.enc -out project/travis-deploy-key -d
- chmod 600 project/travis-deploy-key
- eval "$(ssh-agent -s)"
- ssh-add project/travis-deploy-key
notifications:
email:
recipients:
- github@quadstingray.com
script:
- echo ''
os: linux
cache:
directories:
- $HOME/.ivy2
- $HOME/.sbt
before_cache:
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
jobs:
include:
- stage: Tests
name: "Test on Linux with JDK 8"
language: scala
os: linux
jdk: openjdk8
before_script:
- sudo apt-get install fakeroot
script: rm -rf $HOME/.ivy2/local; sbt "^scripted linux/*"
- stage: Tests
name: "Test on Linux with JDK 9"
language: scala
os: linux
jdk: oraclejdk9
before_script:
- sudo apt-get install fakeroot
script: rm -rf $HOME/.ivy2/local; sbt "^scripted linux/*"
# - stage: Tests
# name: "Test on Linux with JDK 10"
# language: scala
# os: linux
# jdk: openjdk10
# before_script:
# - sudo apt-get install fakeroot
# script: rm -rf $HOME/.ivy2/local; sbt "^scripted linux/*"
# - stage: Tests
# name: "Test on Linux with JDK 11"
# language: scala
# os: linux
# jdk: openjdk11
# before_script:
# - sudo apt-get install fakeroot
# - ls -la $JAVA_HOME
# - ls -la $JAVA_HOME/lib
# script: rm -rf $HOME/.ivy2/local; sbt "^scripted linux/*"
- stage: Tests
name: "Test on Mac with Oracle JDK 8"
before_install:
- brew install sbt
os: osx
osx_image: xcode9.3
script: rm -rf $HOME/.ivy2/local; sbt "^scripted mac/*"
- stage: Tests
name: "Test on Mac with OpenJDK 9"
before_install:
- sudo rm -rf /Library/Java/JavaVirtualMachines
- curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash && . ~/.jabba/jabba.sh
- jabba install openjdk@1.9.0-4
- brew install sbt
os: osx
osx_image: xcode10.2
script: rm -rf $HOME/.ivy2/local; sbt "^scripted mac/*"
- stage: Tests
name: "Test on Mac with OpenJDK 10"
before_install:
- sudo rm -rf /Library/Java/JavaVirtualMachines
- curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash && . ~/.jabba/jabba.sh
- jabba install openjdk@1.10.0
- brew install sbt
os: osx
osx_image: xcode10.2
script: rm -rf $HOME/.ivy2/local; sbt "^scripted mac/*"
- stage: Tests
name: "Test on Mac with Oracle JDK 11"
before_install:
- brew install sbt
os: osx
osx_image: xcode10.1
script: rm -rf $HOME/.ivy2/local; sbt "^scripted mac/*"
- stage: Tests
name: "Test on Mac with OpenJDK 11"
before_install:
- sudo rm -rf /Library/Java/JavaVirtualMachines
- curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash && . ~/.jabba/jabba.sh
- jabba install openjdk@1.11.0
- brew install sbt
os: osx
osx_image: xcode10.2
# script: rm -rf $HOME/.ivy2/local; sbt coverage ^scripted coverageReport coverageAggregate codacyCoverage
script: rm -rf $HOME/.ivy2/local; sbt "^scripted mac/*"
- stage: Tests
name: "Test on Mac with OpenJDK 12"
before_install:
- sudo rm -rf /Library/Java/JavaVirtualMachines
- curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash && . ~/.jabba/jabba.sh
- jabba install openjdk@1.12.0
- brew install sbt
os: osx
osx_image: xcode10.2
script: rm -rf $HOME/.ivy2/local; sbt "^scripted mac/*"
# - stage: Tests
# name: "Test on Mac with OpenJDK 13"
# before_install:
# - sudo rm -rf /Library/Java/JavaVirtualMachines
# - curl -sL https://github.com/shyiko/jabba/raw/master/install.sh | bash && . ~/.jabba/jabba.sh
# - jabba install openjdk@1.13.0
# - brew install sbt
# os: osx
# osx_image: xcode10.2
# script: rm -rf $HOME/.ivy2/local; sbt "^scripted mac/*"
- stage: Publish
language: scala
if: branch = master
scala:
- 2.12.8
os: linux
jdk: openjdk11
script: '/bin/bash "$TRAVIS_BUILD_DIR/.travis.publish.sh"'
- stage: Release and Build Docu
language: scala
if: branch = master
scala:
- 2.12.8
os: linux
jdk: openjdk11
script: '/bin/bash "$TRAVIS_BUILD_DIR/.travis.release.sh"'