forked from portable-scala/sbt-crossproject
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
58 lines (54 loc) · 3.4 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
scala:
- "2.11.8"
matrix:
include:
- os: linux
sudo: required
jdk: oraclejdk8
language: scala
before_install:
- sudo apt-get -qq update
- sudo sh -c "echo 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.7 main' >> /etc/apt/sources.list"
- sudo sh -c "echo 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise main' >> /etc/apt/sources.list"
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
- sudo apt-get -qq update
- sudo apt-get install -y libgc-dev clang++-3.7 llvm-3.7 llvm-3.7-dev llvm-3.7-runtime llvm-3.7-tool
- os: osx
sudo: required
osx_image: xcode7.3
before_install:
- brew update
- brew install sbt
- brew install bdw-gc
- brew link bdw-gc
- brew install jq
cache:
directories:
- $HOME/.ivy2/cache
env:
global:
- MAVEN_REALM="Sonatype Nexus Repository Manager"
- MAVEN_DOMAIN="oss.sonatype.org"
- secure: "LUWaEVwDOFlihINjm2yBji0WoZ7KXf7pt9yFUD+Opnsex+VAFPRuzdDmHd9NPneKO8laHteSHmQrFP5yFcy+or3pKL5oSdGSST1f+ir/VULwCiAvxTFx0BAX5DwqIUljxuYvR9ISMquDtXqYG6bi/L2O4JjQJzO2i1qJM9z+aWYy0nczATNJqRbSC2FwQoKcsMAXZbCzslgqm8lMulpb1P1RQNsFxsFDrWYMIfdxEiQPQS0gtzsEHxJ1yQUqI8wkhV1Mb3TVBaWKGtI1lm3A5eTRtWMxzisnn5APPbwZGsVILAXRYGg2miaLyAuz9PS09gnQ5jHi0z/bbwBJI3BnY5PE3bvfd1pn3qEhUiPMRCLMYQuymGK6UTFAoVDtjmo754tvZeb5uhD9Tkye11qXPGyFm6zR15ZLVMfXSBQ0TftUubuQGKCuMqv/jvxZ+FE7OH2HEEpuzzF0KlVqX630iD9M8FYpL3tw0lfFY8x8fD1ot8BGzft841SMKL2jRjyPZYmPl43rQCBiG1s6Q3vUuw+M/Kd2KUOEIx524h05yFQedSc2GYCic0uLhe62r7lpLE4b8u99fcl3raE+Ku7czRbIu4gDlifJ8uOuq4XXFnTAoENao4wSe1OIU7uzryTS0C9TNMQnxMhftyiZZ8Itl82y5NwkbDh/EaZN4Iw5Lks="
- secure: "Eiex0yninNFTT4CaldF7ej+z6jhRkbmHD7ox2NUOP/Wlonsgn6y65MALMQrSYZ1vYavwA9kDNYfkhZYeoqT4fjMZlFPnDUvY0emLh8XsjKm9LtlOOFhi4wX0lfjQKOcQOPBJOQZmrJtgC7BgC1H3A/lw0x/Vz5xI/qfpp3lbSC6PZ3ARQbroTwPp2QjURcxeOlmbaSC/U5XguyC1ZFfikynI1XIOeXqiu3v+sImYEWdHSqmBSv6ggvEz/cCm0Z1lP07+N/bEoCvllQ7Ru1kHnsqgUHSpu5N8KXWW+FDmn9Df+xXR7lkucETJhCNxMitpCTmQknjdeLgsxlMekdDyUzfdJL2AmtdPsc6MZ3Q/HymB4flJoZTGzO3jNLNwwiKB6t3TXUACLKUKYoo5oL4kxspljvaOEhvWynl4rnNTvlyGGo8Gksb4338F3iyvcaokzLDSO6rdDZGwH4Nlhin80sqgvS+56G6pHNUHJXNPq8OJE+0CMA2qKc419lGNgSQnCJsTL5TKGDIExF5DoRddBkq+8Q/Y/vxqE7FQooxal59O8b89oSx4yQzC0Z3agejx2oC7n5xGE7teXumeHyhSjuA0KVAjgEyxuT2UCAcb+a921qRoLUDa2F3fYpzT29FR1tmvStoAACyAl5y5CwkoSrQrDPyRtyl1GeYVJeszWzs="
before_script:
- if [ "$TRAVIS_PULL_REQUEST" != "false" ] ; then
echo "Incoming pull request from https://github.com/$TRAVIS_REPO_SLUG/pull/$TRAVIS_PULL_REQUEST";
author=$(curl -u dummy4dummy:dummy2dummy -s "https://api.github.com/repos/$TRAVIS_REPO_SLUG/pulls/$TRAVIS_PULL_REQUEST" | jq -r ".user.login");
if [ $? -ne 0 ] ; then exit 1; fi;
echo "Pull request submitted by $author";
signed=$(curl -s http://www.lightbend.com/contribute/cla/scala/check/$author | jq -r ".signed");
if [ $? -ne 0 ] ; then exit 1; fi;
if [ "$signed" = "true" ] ; then
echo "CLA check for $author successful";
else
echo "CLA check for $author failed";
echo "Please sign the Scala CLA to contribute to Scala Native";
echo "Go to https://www.lightbend.com/contribute/cla/scala and then resubmit this pull request";
exit 1;
fi;
fi;
script:
- java -version
- bin/scalafmt --test && sbt sbtCrossTest/scripted publishSnapshot