forked from arkworks-rs/snark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
109 lines (101 loc) · 3.94 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
language: rust
addons:
apt:
update: true
packages:
- python3-pip
- python3-dev
- python3-six
- python3-setuptools
python:
- "3.7"
before_install:
- set -e
- export SCCACHE_CACHE_SIZE=200M
- export SCCACHE_DIR="$TRAVIS_HOME/.cache/sccache"
- mkdir "$TRAVIS_HOME/.bin"
- wget https://github.com/mozilla/sccache/releases/download/0.2.13/sccache-0.2.13-x86_64-unknown-linux-musl.tar.gz
- tar -C "$TRAVIS_HOME/.bin" -xvf sccache-0.2.13-x86_64-unknown-linux-musl.tar.gz
- mv $TRAVIS_HOME/.bin/sccache-0.2.13-x86_64-unknown-linux-musl/sccache $TRAVIS_HOME/.bin/sccache
- export PATH="$PATH:$TRAVIS_HOME/.bin"
- export RUSTC_WRAPPER="sccache"
cache:
directories:
- $TRAVIS_HOME/.cache/sccache
- $TRAVIS_HOME/.cargo
# See https://levans.fr/rust_travis_cache.html
before_cache:
- rm -rf "$TRAVIS_HOME/.cargo/registry"
after_script:
- (sccache -s||true)
- set +e
matrix:
fast_finish: true
include:
- rust: stable
install:
- rustup component add rustfmt
- pip3 install --user git+https://github.com/naftulikay/travis-pls
script:
- cargo fmt -- --check
- travis-pls -m 2400 cargo build --all --tests
- travis-pls -m 2400 cargo test --all -- --skip dpc --skip integration_test
- cargo check --examples --all
- cargo check --all-features --examples --all
- rust: nightly
install:
- pip3 install --user git+https://github.com/naftulikay/travis-pls
script:
- travis-pls -m 2400 cargo build --all --tests
- travis-pls -m 2400 cargo test --all -- --skip dpc --skip integration_test
- cargo check --examples --all --benches
- cargo check --all-features --examples --all --benches
- rust: stable
install:
- rustup target add thumbv6m-none-eabi
env: RUSTFLAGS='-C target-cpu=cortex-a7'
after_script:
- set +e
script:
# test algebra-core
- cd algebra-core
- cargo build -p algebra-core --no-default-features --target thumbv6m-none-eabi
- cargo check --examples -p algebra-core --no-default-features --target thumbv6m-none-eabi
- cd ..
# test algebra
- cd algebra
- cargo build -p algebra --no-default-features --features "full" --target thumbv6m-none-eabi
- cargo check --examples -p algebra --no-default-features --features "full" --target thumbv6m-none-eabi
- cd ..
# test r1cs-core
- cd r1cs-core
- cargo build -p r1cs-core --no-default-features --target thumbv6m-none-eabi
- cargo check --examples -p r1cs-core --no-default-features --target thumbv6m-none-eabi
- cd ..
# test r1cs-std
- cd r1cs-std
- cargo build -p r1cs-std --no-default-features --features "full" --target thumbv6m-none-eabi
- cargo check --examples -p r1cs-std --no-default-features --features "full" --target thumbv6m-none-eabi
- cd ..
# test ff-fft
- cd ff-fft
- cargo build -p ff-fft --no-default-features --target thumbv6m-none-eabi
- cargo check --examples -p ff-fft --no-default-features --target thumbv6m-none-eabi
- cd ..
# test groth16
- cd groth16
- cargo build -p groth16 --no-default-features --target thumbv6m-none-eabi
- cargo check --examples -p groth16 --no-default-features --target thumbv6m-none-eabi
- cd ..
# test gm17
- cd gm17
- cargo build -p gm17 --no-default-features --target thumbv6m-none-eabi
- cargo check --examples -p gm17 --no-default-features --target thumbv6m-none-eabi
- cd ..
# test crypto-primitives
- cd crypto-primitives
- cargo build -p crypto-primitives --no-default-features --features "r1cs" --target thumbv6m-none-eabi
- cargo check --examples -p crypto-primitives --no-default-features --features "r1cs" --target thumbv6m-none-eabi
- cd ..
script:
- echo "script!"