Skip to content

Commit

Permalink
Fix nix run for Travis (#203)
Browse files Browse the repository at this point in the history
* Remove solc line from tavis file

* Remove --use flag as solc is overwriten in shell.nix

* Fix shell.nix
  • Loading branch information
gbalabasquer authored Feb 16, 2021
1 parent 5fc42eb commit 0c816d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ 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
script:
- nix-shell --pure --run 'dapp --use solc:0.5.12 test'
- nix-shell --pure --run 'dapp test'
6 changes: 3 additions & 3 deletions shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
}: with dappPkgs;

mkShell {
DAPP_SOLC = solc-static-versions.solc_0_5_12 + "/bin/solc-0.5.12";
# SOLC_FLAGS = "--optimize --optimize-runs=200";
buildInputs = [
(dapp.override {
solc = solc-static-versions.solc_0_5_12;
})
dapp
];
}

0 comments on commit 0c816d7

Please sign in to comment.