forked from project-serum/serum-dex
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
51 lines (48 loc) · 1.41 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
dist: bionic
language: shell
os: linux
env:
global:
- NODE_VERSION="v14.7.0"
- SOLANA_VERSION="v1.14.16"
_defaults: &defaults
cache: false
services:
- docker
before_install:
- scripts/travis/run-docker.sh
before_cache:
- scripts/travis/stop-docker.sh
_localnet: &localnet
language: rust
rust:
- stable
before_script:
- nvm install $NODE_VERSION
- sudo apt-get install -y pkg-config build-essential libudev-dev
- sh -c "$(curl -sSfL https://release.solana.com/${SOLANA_VERSION}/install)"
- export PATH="/home/travis/.local/share/solana/install/active_release/bin:$PATH"
- export PATH="/home/travis/.local/share/solana/install/active_release/bin:$PATH"
- yes | solana-keygen new
jobs:
include:
- <<: *defaults
name: Dex tests
<<: *localnet
script:
- docker exec dev ./scripts/travis/dex-tests.sh
- <<: *defaults
name: Fmt and Common Tests
script:
- docker exec dev cargo build
- docker exec dev cargo fmt -- --check
- docker exec -w=/workdir/common dev cargo test --features client,strict
- <<: *localnet
name: Permissioned Markets Tests
script:
- mkdir -p /tmp/tests && cd /tmp/tests
- git clone --recursive https://github.com/project-serum/permissioned-markets-quickstart.git
- cd permissioned-markets-quickstart
- yarn
- yarn build
- yarn test