-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
47 lines (40 loc) · 1.19 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
sudo: false
language: java
env:
global:
- LIBBITCOIN_URL=https://s3.amazonaws.com/upload.bitwatch.co/java-libbitcoinconsensus
- LIBBITCOIN_HASH=a42e47f8bb1841ef78d1865905109b068d3500abac9274a4988f0e5d4ef7f167
- KEY_FINGERPRINT=f43718054c3e7c5cfb33e8257675e31cf5719832
matrix:
fast_finish: true
include:
- os: osx
- os: linux
jdk: oraclejdk8
env: MAKE_DOCS=true
- os: linux
jdk: oraclejdk7
- os: linux
jdk: openjdk7
cache:
directories:
- $HOME/.gradle/caches
before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install gpg; fi
install:
- wget $LIBBITCOIN_URL/libbitcoinconsensus_0.11.tar.gz.asc
- wget $LIBBITCOIN_URL/libbitcoinconsensus_0.11.tar.gz
- echo "$LIBBITCOIN_HASH libbitcoinconsensus_0.11.tar.gz" | shasum --algorithm 256 --check
- gpg --keyserver pgp.mit.edu --recv-keys $KEY_FINGERPRINT
- gpg --verify libbitcoinconsensus_0.11.tar.gz.asc
- mkdir -p src/main/resources
- tar -C src/main/resources -zxvf libbitcoinconsensus_0.11.tar.gz
script:
- ./gradlew clean test
deploy:
provider: script
script: scripts/deploy_gh-pages.sh
skip_cleanup: true
on:
branch: master
condition: $MAKE_DOCS = true