Skip to content

Commit

Permalink
Upgrade travis to use a newer dapptools version and using the method …
Browse files Browse the repository at this point in the history
…without cloning
  • Loading branch information
gbalabasquer committed Jan 6, 2021
1 parent 36dab5c commit cd62fd7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ language: nix
nix: 2.3.6
before_install:
- nix-env -iA nixpkgs.cachix
- nix-env -f https://github.com/dapphub/dapptools/archive/master.tar.gz -iA solc-static-versions.solc_0_5_12
- echo "trusted-users = root travis" | sudo tee -a /etc/nix/nix.conf && sudo pkill nix-daemon
- cachix use maker
- git clone --recursive https://github.com/dapphub/dapptools $HOME/.dapp/dapptools
- nix-env -f https://github.com/makerdao/makerpkgs/tarball/master -iA dappPkgsVersions.hevm-0_42_0.dapp
script:
- dapp --use solc:0.5.12 test
- nix-shell --pure --run 'dapp --use solc:0.5.12 test'
12 changes: 12 additions & 0 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{ dappPkgs ? (
import (fetchTarball "https://github.com/makerdao/makerpkgs/tarball/master") {}
).dappPkgsVersions.hevm-0_43_1
}: with dappPkgs;

mkShell {
buildInputs = [
(dapp.override {
solc = solc-static-versions.solc_0_5_12;
})
];
}

0 comments on commit cd62fd7

Please sign in to comment.