-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
48 lines (41 loc) · 1.35 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
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 -- -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 -w /usr/src/libbwt \
--entrypoint scripts/build.sh 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: Linux/Windows/ARMv7/ARMv8
env: IMAGE=builder
- <<: *build
name: Mac OSX
env: IMAGE=builder-osx