ci: Fix Travis CI tests (#2)
This commit is contained in:
parent
7017ecbaee
commit
aa68417b1e
20
.travis.yml
20
.travis.yml
|
@ -1,28 +1,36 @@
|
|||
dist: bionic
|
||||
|
||||
language: rust
|
||||
rust:
|
||||
- stable
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.local/share/solana
|
||||
- $HOME/.cargo
|
||||
- $TRAVIS_BUILD_DIR/target
|
||||
- $TRAVIS_BUILD_DIR/node_modules
|
||||
|
||||
env:
|
||||
global:
|
||||
- NODE_VERSION="v14.7.0"
|
||||
- SOLANA_VERSION="v1.7.8"
|
||||
- SOLANA_VERSION="v1.7.11"
|
||||
git:
|
||||
submodules: true
|
||||
|
||||
_defaults: &defaults
|
||||
before_install:
|
||||
- nvm install $NODE_VERSION
|
||||
- npm install -g ts-mocha
|
||||
- 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 NODE_PATH="/home/travis/.nvm/versions/node/${NODE_VERSION}/lib/node_modules/:${NODE_PATH}"
|
||||
- export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
|
||||
- export NODE_PATH="$HOME/.nvm/versions/node/${NODE_VERSION}/lib/node_modules/:${NODE_PATH}"
|
||||
- yes | solana-keygen new
|
||||
- yarn
|
||||
|
||||
jobs:
|
||||
include:
|
||||
- <<: *defaults
|
||||
name: Builds and runs the tests
|
||||
script:
|
||||
- yarn test
|
||||
- yarn install
|
||||
- npx @project-serum/anchor-cli test
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# Assert Balances
|
||||
|
||||
[![Build Status](https://app.travis-ci.com/project-serum/assert-balances.svg?branch=master)](https://app.travis-ci.com/project-serum/assert-balances)
|
||||
|
||||
Assert Balances can be used as an additional safety check by wallets and other apps
|
||||
to ensure the outcome of a given transaction is as expected. One can
|
||||
insert into the end of a transaction an instruction that calls this program,
|
||||
|
|
Loading…
Reference in New Issue