forked from scalapb/ScalaPB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
61 lines (52 loc) · 1.51 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
language: scala
sudo: required
dist: trusty
scala:
- 2.10.6
- 2.11.12
- 2.12.2
env:
- TEST_SCRIPT=e2e.sh E2E_SHADED=0
- TEST_SCRIPT=e2e.sh E2E_SHADED=1
- TEST_SCRIPT=proptest.sh
matrix:
exclude:
- scala: 2.10.6
env: TEST_SCRIPT=e2e.sh E2E_SHADED=0
- scala: 2.10.6
env: TEST_SCRIPT=e2e.sh E2E_SHADED=1
include:
- scala: 2.11.12
env: SCALA_NATIVE
before_install:
- curl https://raw.githubusercontent.com/scala-native/scala-native/9069e8d447f7a9/bin/travis_setup.sh | bash -x
script:
- sbt runtimeNative/test "show runtimeNative/nativeMissingDependencies"
- scala: 2.11.12
env: TEST_SCRIPT=__misc__
script:
- cd examples && sbt test && cd ..
- sbt -J-Xmx4500M ++$TRAVIS_SCALA_VERSION universal:packageBin
- ./test_generated_code_checked_in.sh
# These directories are cached to S3 at the end of the build
cache:
directories:
- $HOME/.ivy2/cache
- $HOME/.sbt
script:
- ./$TEST_SCRIPT
before_cache:
# Tricks to avoid unnecessary cache updates
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
- find $HOME/.sbt -name "*.lock" -print -delete
deploy:
provider: releases
api_key:
secure: ZHv5KXgAHNvO6ZS2cv5SdQ43UMjcc1Bm7p9Q66z4NJoLNq5SY/Ln9ZFeUgoBMv+1SPvzL0GRWLxBxa4UYuFgFwRywlU8hQ1GF0ztZ35bvZUrFvTWp4sM62sdmSogHFDmgpG58IPNeQSPcZ+sYFhlWzvAz9hUCXzPPu6jeZSanew=
file: scalapbc/target/universal/scalapbc-${TRAVIS_TAG:1}.zip
skip_cleanup: true
on:
repo: scalapb/ScalaPB
tags: true
scala: 2.11.11
condition: "$TEST_SCRIPT = __misc__"