Update travis

This commit is contained in:
armaniferrante 2021-08-27 20:04:18 -07:00
parent 60d8005614
commit a698e05078
No known key found for this signature in database
GPG Key ID: 58BEF301E91F7828
3 changed files with 31 additions and 2 deletions

View File

@ -47,11 +47,11 @@ _defaults: &defaults
- 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}"
- yes | solana-keygen new
- cargo install --git https://github.com/project-serum/anchor --tag v${ANCHOR_VERSION} anchor-cli --locked
- yarn
jobs:
include:
- <<: *defaults
name: Runs the tests
script:
- anchor test
- yarn test

View File

@ -1,3 +1,5 @@
anchor_version = "0.4.4"
[provider]
cluster = "localnet"
wallet = "~/.config/solana/id.json"

27
package.json Normal file
View File

@ -0,0 +1,27 @@
{
"name": "stake",
"version": "1.0.0",
"description": "Programs for staking and lockups. For a technical introduction, see the [docs](./docs).",
"main": "index.js",
"directories": {
"doc": "docs",
"test": "tests"
},
"scripts": {
"build": "anchor build",
"test": "anchor test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/project-serum/stake.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/project-serum/stake/issues"
},
"homepage": "https://github.com/project-serum/stake#readme",
"devDependencies": {
"@project-serum/anchor-cli": "^0.13.2"
}
}