-
Notifications
You must be signed in to change notification settings - Fork 34
/
.travis.yml
40 lines (40 loc) · 1.01 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
language: generic
sudo: required
cache:
timeout: 600
directories:
- $HOME/.cargo
services:
- docker
env:
- HASH_ALGO=sha3hash CRYPTO_ALGO=secp256k1 UPLOAD_COVERAGE=true
#- HASH_ALGO=sha3hash CRYPTO_ALGO=ed25519
#- HASH_ALGO=sha3hash CRYPTO_ALGO=sm2
#- HASH_ALGO=blake2bhash CRYPTO_ALGO=secp256k1
- HASH_ALGO=blake2bhash CRYPTO_ALGO=ed25519
#- HASH_ALGO=blake2bhash CRYPTO_ALGO=sm2
#- HASH_ALGO=sm3hash CRYPTO_ALGO=secp256k1
#- HASH_ALGO=sm3hash CRYPTO_ALGO=ed25519
- HASH_ALGO=sm3hash CRYPTO_ALGO=sm2
install:
- docker pull cita/cita-build:ubuntu-18.04-20191128
script:
- bash '.ci-scripts/test' $HASH_ALGO $CRYPTO_ALGO $UPLOAD_COVERAGE
stages:
- Format
- Clippy
- Test
jobs:
include:
- stage: Format
env:
script: bash '.ci-scripts/format'
- stage: Clippy
env:
script: bash '.ci-scripts/clippy'
- stage: Test
name: Run Benches
env:
script: bash '.ci-scripts/bench'
before_cache:
- sudo chown -R travis:travis $HOME/.cargo