Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 2ac2a1d

Browse files
committed
Fix fat finger errors and echo solc version
1 parent ae7bc6c commit 2ac2a1d

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ before_install:
2323
- if [ -n "$SOLC_VERSION" ]; then sudo apt-get install -y tree unzip; fi
2424
install:
2525
- if [ -n "$SOLC_VERSION" ]; then /.$TRAVIS_BUILD_DIR/.travis/install_solc.sh; fi
26-
install:
2726
- travis_retry pip install setuptools --upgrade
2827
- travis_retry pip install tox
2928
- travis_retry pip install coverage

.travis/install_solc.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,27 @@ set -e
77
set -u
88

99
mkdir -p $HOME/solc-versions/solc-$SOLC_VERSION
10-
cd solc-versions/solc-$SOLC_VERSION
10+
cd $HOME/solc-versions/solc-$SOLC_VERSION
1111

1212
if [ ! -f solc ]
1313
then
1414
git clone --recurse-submodules --branch v$SOLC_VERSION --depth 50 https://github.com/ethereum/solidity.git
1515
./solidity/scripts/install_deps.sh
1616
wget https://github.com/ethereum/solidity/releases/download/v$SOLC_VERSION/solidity-ubuntu-trusty.zip
1717
unzip solidity-ubuntu-trusty.zip
18-
echo "Solidity installed at $TRAVIS_BUILD_DIR/solc-versions/solc-$SOLC_VERSION/solc"
19-
tree $TRAVIS_BUILD_DIR/solc-versions/solc-$SOLC_VERSION
18+
echo "Solidity installed at $HOME/solc-versions/solc-$SOLC_VERSION/solc"
19+
tree $HOME/solc-versions/solc-$SOLC_VERSION
2020
fi
2121

2222
if [ -f $HOME/.bin/solc ]
2323
then
2424
rm $HOME/.bin/solc
2525
fi
2626

27-
ln -s $HOME/solc-versions/solc-$SOLC_VERSION $HOME/.bin/solc
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

0 commit comments

Comments
 (0)