This repository has been archived by the owner on Mar 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.travis.yml
61 lines (52 loc) · 2.67 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
language: scala
scala:
- 2.10.7
- 2.11.12
- 2.12.8
- 2.13.0-RC2
jdk:
- oraclejdk8
cache:
directories:
- "$HOME/.ivy2/cache"
- "$HOME/.sbt"
before_cache:
- find "$HOME/.sbt" -name "*.lock" -print -delete
- find "$HOME/.ivy2" -name "ivydata-*.properties" -print -delete
script:
- if [[ "${TRAVIS_PULL_REQUEST}" == "false" &&
"${TRAVIS_BRANCH}" == "master" &&
$(cat version.sbt) =~ "-SNAPSHOT"
]]; then
sbt ++${TRAVIS_SCALA_VERSION} validate publish ;
else
sbt ++${TRAVIS_SCALA_VERSION} validate ;
fi
sudo: false
env:
global:
- secure: IpoxV5fFSLBFGiwrY9jdqb0WP/kj9gux0Sp6lettwCYVZxlsCmfsVSwAJsUoxM7vSR+vA45vhi7jjxFpo9VQX/QQctM15Ob8vb1cAwqatosuLFmSkC1bGphA38d/863MBkAQu8b5wG8suRsbPJJRhVP+Ll1O4E1/wNcabsg4+hn53XQtNsTJKIeuZWaGp1wrpct/1nlSY0nvS7kB2N4jwVGMgj+7BHR9/ATGL8bCuC3LHVRlFoylKlzX6Q0gNu+oLT2n/BckxmH0EGiPfauo+6GG8XSAB3mO1/czG4Lc+WBURNSVEA7fi2knK1vBpJ7qH043Cq1rD+KUJPzLy73Qnwx0Qv1ESrvhxByP4QReB10ZI4hE0QoLk9Bm5wfxnucrA4FX4WlJS7ivmo7sa4bLAXz/7TfnbllvW4rDiIRN7m/ksBahXBAT9yEIR9+pviF+Ulox7JMYqjCm4i5Fl+DvCQFaxJ5Kk56IBtqavQVjQmLWwFCnOtI35tRAuU+38zKAdpcsOoZg7bdGteRywf86oxEoCh3xwPIhkLpyIY0vVvBX6HT6ct+gDb9SnkMYvVmN6tYKY67EvEEMaTVJ1wL5l8rRYoRYZEMZ7Fu3UPTAoYXvfQZwR82x0ffr+uX8YayW+jnaL6L9Bmj07LvKfgkn7+4iwti3GBJjDJWT3IXwCw0=
- secure: Exgiy4yr7UpfdSFCrOK2Kr7PHSPSXw8/wR54WvJUV43Ua0d2ux/9y14i6H6+h6+XXBETRqklzigHcFCSji278wBHzwNgbzg9CPeVTpwQuNLM+v0MYLss74YbWxp6L0N38DygQ2PNq77hFs+JYiFEb1PzDI5m2Rhoxz2e9ARDJ0wzZMaL5oFJ2EIpXpda73KJeaYL9hJYyIPst9GyfYJhEiB8iOztxOQNokon5u9jwYMwDW/GQuby+v55FrLf7LMwPDlnv02EK3GQZWCzuwnX4/ND8X9rzRUGTPPkEiroqdhHpdO9i0TM5l+6wUP7Q96xBdHhBV6m27qWGLPsS0+IqZvZxYIVdDrVaysmvAvRtzjbjinVVsep+zIJqcJYgBLu7x86Fa4Rm3QCmymGx6inCno0Xn+qvS2b7pc+cQK+CaJ7KjZuiYs8cNMFHBzCcVilJDmcy6RCYYhr1UJDXGPbTkd0UHKe0RRix36hZwJol1w2oCu2msaEte5xpY+kxt8UE7lzTP9MgBqEWIqfjdKjFg2yQ0X+kGyiU6Kh28ik+jZ4WuzqLMoR5qulDkVlL+2FtPfVWpfxQJZOYer7TYL9RjwNqkoKN9SDqXyOg51AWalMFoXlfTyI3ZcTu0OIjoaoR0m7ulKi7TgZ2rp3pqiLTkLLO1j9ScJdtRcN72SXGrg=
matrix:
include:
## Add Scala Native to the build matrix using Scala 2.11.
- scala: 2.11.12
sudo: required
before_script:
- sudo chmod +x /usr/local/bin/sbt
before_install:
- sudo apt-get update
- curl https://raw.githubusercontent.com/scala-native/scala-native/master/scripts/travis_setup.sh | bash -x
script:
- if [[ "${TRAVIS_PULL_REQUEST}" == "false" &&
"${TRAVIS_BRANCH}" == "master" &&
$(cat version.sbt) =~ "-SNAPSHOT"
]]; then
sbt ++${TRAVIS_SCALA_VERSION} nativeTest/run coreNative/publish ;
else
sbt ++${TRAVIS_SCALA_VERSION} nativeTest/run ;
fi
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/a4f66c5cc6ca6aae0e94