This repository was archived by the owner on May 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +44
-4
lines changed Expand file tree Collapse file tree 2 files changed +44
-4
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,6 @@ language: python
2
2
python : 3.5
3
3
sudo : required
4
4
dist : trusty
5
- before_install :
6
- - sudo add-apt-repository -y ppa:ethereum/ethereum
7
- - sudo apt-get update
8
- - sudo apt-get install -y solc
9
5
env :
10
6
matrix :
11
7
- TOX_ENV=py27
15
11
- COVERAGE_APPEND="--append"
16
12
- secure : cKbIgpTJ1yjKLBxpCEiT6IH7NShDWZUE+BvnrAfc+ujCsR6LyLJcKxFQmKnWryJCqg7fp82Ep2bF2oDKzanAROar2xDY1SFGbai42seYMaFCw53YPGJ6u3VNCcfT0rN9BWgE7el/m4fjcD6CRsZYKArNNJbMX8csRt3uXXCFLso=
17
13
- secure : " QyFPrxQHd2LlNQ6zNeTFYhgPmZaOHoWuywcgn8qaSOh6PklyFxHbexkwg0bl23JvtgNEZ1mCD8j0x1/ydSdtxgCFwK9SEL0h7aYuAq+OAIa/G18OPeTJMf7ASsb2QZdfkt9reFpUnjbadzHkuv+rqqb4bFnTJBKwB2LWzHPLhWg="
14
+ - SOLC_VERSION=0.4.8
15
+ cache :
16
+ directories :
17
+ - $HOME/.bin
18
+ - $HOME/solc-versions
19
+ before_install :
20
+ - mkdir -p $HOME/.bin
21
+ - export PATH=$PATH:$HOME/.bin
22
+ - if [ -n "$SOLC_VERSION" ]; then export LD_LIBRARY_PATH="$HOME/solc-versions/solc-$SOLC_VERSION"; fi
23
+ - if [ -n "$SOLC_VERSION" ]; then sudo apt-get install -y tree unzip; fi
18
24
install :
25
+ - if [ -n "$SOLC_VERSION" ]; then /.$TRAVIS_BUILD_DIR/.travis/install_solc.sh; fi
19
26
- travis_retry pip install setuptools --upgrade
20
27
- travis_retry pip install tox
21
28
- travis_retry pip install coverage
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ #
3
+ # Install solc
4
+ #
5
+
6
+ set -e
7
+ set -u
8
+
9
+ mkdir -p $HOME /solc-versions/solc-$SOLC_VERSION
10
+ cd $HOME /solc-versions/solc-$SOLC_VERSION
11
+
12
+ if [ ! -f solc ]
13
+ then
14
+ git clone --recurse-submodules --branch v$SOLC_VERSION --depth 50 https://github.com/ethereum/solidity.git
15
+ ./solidity/scripts/install_deps.sh
16
+ wget https://github.com/ethereum/solidity/releases/download/v$SOLC_VERSION /solidity-ubuntu-trusty.zip
17
+ unzip solidity-ubuntu-trusty.zip
18
+ echo " Solidity installed at $HOME /solc-versions/solc-$SOLC_VERSION /solc"
19
+ tree $HOME /solc-versions/solc-$SOLC_VERSION
20
+ fi
21
+
22
+ if [ -f $HOME /.bin/solc ]
23
+ then
24
+ rm $HOME /.bin/solc
25
+ fi
26
+
27
+ ln -s $HOME /solc-versions/solc-$SOLC_VERSION /solc $HOME /.bin/solc
28
+ # Check path is correctly set up and echo version
29
+ cd
30
+ echo $PATH
31
+ ls -al $HOME /.bin
32
+ ls -al $( readlink -f $HOME /.bin/solc)
33
+ solc --version
You can’t perform that action at this time.
0 commit comments