travis: Pin nightly version (#131)

This commit is contained in:
Armani Ferrante 2021-03-27 10:09:03 -07:00 committed by GitHub
parent c1119ccc56
commit 46a9ff9dab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 6 deletions

View File

@ -1,7 +1,6 @@
dist: bionic dist: bionic
language: rust language: rust
rust: rust: nightly-2021-03-25
- nightly
cache: cargo cache: cargo
env: env:
- NODE_VERSION="14.7.0" - NODE_VERSION="14.7.0"

View File

@ -4,7 +4,7 @@ use crate::config::{read_all_programs, Config, Program};
use anchor_lang::idl::{IdlAccount, IdlInstruction}; use anchor_lang::idl::{IdlAccount, IdlInstruction};
use anchor_lang::{AccountDeserialize, AnchorDeserialize, AnchorSerialize}; use anchor_lang::{AccountDeserialize, AnchorDeserialize, AnchorSerialize};
use anchor_syn::idl::Idl; use anchor_syn::idl::Idl;
use anyhow::{Context, Result, anyhow}; use anyhow::{anyhow, Context, Result};
use clap::Clap; use clap::Clap;
use flate2::read::ZlibDecoder; use flate2::read::ZlibDecoder;
use flate2::write::ZlibEncoder; use flate2::write::ZlibEncoder;
@ -22,7 +22,7 @@ use solana_sdk::signature::Keypair;
use solana_sdk::signature::Signer; use solana_sdk::signature::Signer;
use solana_sdk::sysvar; use solana_sdk::sysvar;
use solana_sdk::transaction::Transaction; use solana_sdk::transaction::Transaction;
use std::{fs::{self, File}}; use std::fs::{self, File};
use std::io::prelude::*; use std::io::prelude::*;
use std::path::{Path, PathBuf}; use std::path::{Path, PathBuf};
use std::process::{Child, Stdio}; use std::process::{Child, Stdio};
@ -934,13 +934,17 @@ fn test(skip_deploy: bool, skip_local_validator: bool, file: Option<String>) ->
.env("ANCHOR_PROVIDER_URL", cfg.cluster.url()) .env("ANCHOR_PROVIDER_URL", cfg.cluster.url())
.stdout(Stdio::inherit()) .stdout(Stdio::inherit())
.stderr(Stdio::inherit()) .stderr(Stdio::inherit())
.output().map_err(anyhow::Error::from).with_context(|| "ts-mocha"), .output()
.map_err(anyhow::Error::from)
.with_context(|| "ts-mocha"),
false => std::process::Command::new("mocha") false => std::process::Command::new("mocha")
.args(args) .args(args)
.env("ANCHOR_PROVIDER_URL", cfg.cluster.url()) .env("ANCHOR_PROVIDER_URL", cfg.cluster.url())
.stdout(Stdio::inherit()) .stdout(Stdio::inherit())
.stderr(Stdio::inherit()) .stderr(Stdio::inherit())
.output().map_err(anyhow::Error::from).with_context(|| "mocha"), .output()
.map_err(anyhow::Error::from)
.with_context(|| "mocha"),
}; };
exit exit