-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
52 lines (44 loc) · 1.55 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
language: rust
rust: [ stable ]
cache: { cargo: true }
env: [ CARGO_TERM_COLOR=always ]
jobs:
include:
- stage: Check
name: cargo fmt
env: CACHE_BUCKET=fmt
install: rustup component add rustfmt
script: cargo fmt -- --check
- name: cargo check
env: CACHE_BUCKET=check
script: cargo check
- name: clippy
env: CACHE_BUCKET=clippy
install: rustup component add clippy
script: cargo clippy --all-targets --features http,electrum,android -- -A clippy::redundant_field_names
- &build
stage: Reproducible builds
cache: false
before_script: |
git submodule update --init
docker build -t bwt-builder - < bwt/scripts/builder.Dockerfile
[ "$IMAGE" == "builder" ] || docker build -t bwt-$IMAGE - < bwt/scripts/$IMAGE.Dockerfile
script:
- >
echo -e tr''avis_fo''ld:start:build\\nBuilding... &&
docker run -u `id -u` -v `pwd`:/usr/src/libbwt-jni -w /usr/src/libbwt-jni \
--entrypoint scripts/$SCRIPT bwt-$IMAGE &&
echo tr''avis_fol''d:end:build
- >
echo '-----BEGIN SHA256SUM-----' &&
(cd dist && sha256sum *.tar.gz | sort) &&
echo
# XXX if: branch in (master, dev, stable) OR tag IS present
name: JNI for Linux/Windows/ARMv7/ARMv8
env: [ IMAGE=builder, SCRIPT=build.sh ]
- <<: *build
name: JNI for Mac OSX
env: [ IMAGE=builder-osx, SCRIPT=build.sh ]
- <<: *build
name: JNI+AAR for Android
env: [ IMAGE=builder-android, SCRIPT=build-android.sh ]