-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): add support for verdaccio in travis
- Loading branch information
Showing
13 changed files
with
81 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
WITHOUT_COMMENTS=( | ||
compiled/DefaultParamentersInheritance.sol | ||
compiled/DoubleNamedImports.sol | ||
compiled/MultiImports.sol | ||
compiled/NamedImportOnlySelectedFailContract.sol | ||
) | ||
|
||
SKIPPED=( | ||
compiled/EmptyFile.sol | ||
compiled/LocalImportsWithSPDX.sol | ||
) | ||
|
||
compareFile() { | ||
local file="$1"; | ||
echo "Comparing file: $file" | ||
cmp -s $file test/$file; | ||
if [ $? -ne 0 ] | ||
then | ||
exit 1 | ||
fi | ||
} | ||
|
||
# Compare files with comments | ||
|
||
rm -rf compiled | ||
sol-merger "test/contracts/*.sol" compiled | ||
|
||
echo "Default compilation (with comments)" | ||
|
||
FILES=($(ls compiled/*.sol)) | ||
for file in "${FILES[@]}" | ||
do | ||
if [[ " ${WITHOUT_COMMENTS[@]} " =~ " $file " ]]; then | ||
continue | ||
fi | ||
if [[ " ${SKIPPED[@]} " =~ " $file " ]]; then | ||
continue | ||
fi | ||
compareFile $file | ||
done | ||
|
||
# Remove SPDX Plugin | ||
echo "Compilation with plugins" | ||
rm -rf compiled | ||
sol-merger --export-plugin ./dist/lib/plugins/SPDXLicenseRemovePlugin.js "test/contracts/*.sol" compiled | ||
|
||
compareFile compiled/LocalImportsWithSPDX.sol | ||
|
||
# Remove Comments | ||
echo "Compilation with --remove-comments option" | ||
rm -rf compiled | ||
sol-merger --remove-comments "test/contracts/*.sol" compiled | ||
|
||
for file in "${WITHOUT_COMMENTS[@]}" | ||
do | ||
compareFile $file | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -559,4 +559,4 @@ contract ERC777Test is ERC777( | |
"" | ||
); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,4 +71,4 @@ contract MyAwesomeToken is ERC20Basic { | |
return balances[_owner]; | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,4 @@ contract MyOwned is GlobalRenamed$Ownable { | |
string public constant name = "My Owned"; | ||
|
||
function MyOwned() {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,4 @@ contract MyOwned is Ownable { | |
string public constant name = "My Owned"; | ||
|
||
function MyOwned() {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,4 +30,4 @@ contract MyOwned is Ownable { | |
* Super important description here | ||
*/ | ||
function MyOwned() {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,4 @@ contract MyOwned is Ownable { | |
string public constant name = "My Owned"; | ||
|
||
function MyOwned() {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,4 +38,4 @@ contract MyAwesomeToken is BasicToken { | |
return totalSupply_; | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,4 @@ contract MyOwned is Ownable { | |
string public constant name = "My Owned"; | ||
|
||
function MyOwned() {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,4 @@ contract MyOwned is RenamedOwnable { | |
string public constant name = "My Owned"; | ||
|
||
function MyOwned() {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ contract Ballot { | |
address delegate; | ||
uint vote; | ||
} | ||
} | ||
} |