Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
c9f60da6
Commit
c9f60da6
authored
Jul 23, 2016
by
chriseth
Committed by
GitHub
Jul 23, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #123 from ethereum/self-contained
Self contained Travis build - work without Internet connection
parents
e5d96d11
3f628550
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
10 deletions
+26
-10
.travis.yml
.travis.yml
+2
-2
package.json
package.json
+1
-0
app.js
src/app.js
+17
-7
compiler.js
src/app/compiler.js
+6
-1
No files found.
.travis.yml
View file @
c9f60da6
...
@@ -2,7 +2,7 @@ language: node_js
...
@@ -2,7 +2,7 @@ language: node_js
node_js
:
node_js
:
-
stable
-
stable
script
:
script
:
-
npm run lint && npm run test && npm run build
-
npm run lint && npm run test && npm run
downloadsolc && npm run
build
-
./ci/browser_tests.sh
-
./ci/browser_tests.sh
deploy
:
deploy
:
provider
:
script
provider
:
script
...
@@ -16,7 +16,7 @@ env:
...
@@ -16,7 +16,7 @@ env:
-
COMMIT_AUTHOR_EMAIL="chris@ethereum.org"
-
COMMIT_AUTHOR_EMAIL="chris@ethereum.org"
-
COMMIT_AUTHOR="Travis CI"
-
COMMIT_AUTHOR="Travis CI"
-
PUSH_REPO="git@github.com:ethereum/browser-solidity.git"
-
PUSH_REPO="git@github.com:ethereum/browser-solidity.git"
-
FILES_TO_PACKAGE="assets background.js build icon.png index.html manifest.json README.md"
-
FILES_TO_PACKAGE="assets background.js build icon.png index.html manifest.json README.md
soljson.js
"
cache
:
cache
:
directories
:
directories
:
-
node_modules
-
node_modules
package.json
View file @
c9f60da6
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
"browser-test-remote-chrome"
:
"nightwatch --config nightwatch.js --env chrome"
,
"browser-test-remote-chrome"
:
"nightwatch --config nightwatch.js --env chrome"
,
"browser-test-remote-safari"
:
"nightwatch --config nightwatch.js --env safari"
,
"browser-test-remote-safari"
:
"nightwatch --config nightwatch.js --env safari"
,
"build"
:
"mkdir -p build; browserify src/index.js -g yo-yoify -o build/app.js"
,
"build"
:
"mkdir -p build; browserify src/index.js -g yo-yoify -o build/app.js"
,
"downloadsolc"
:
"rm soljson.js; wget https://ethereum.github.io/solc-bin/soljson.js"
,
"lint"
:
"semistandard"
,
"lint"
:
"semistandard"
,
"serve"
:
"http-server ."
"serve"
:
"http-server ."
},
},
...
...
src/app.js
View file @
c9f60da6
...
@@ -330,12 +330,18 @@ var run = function () {
...
@@ -330,12 +330,18 @@ var run = function () {
// var soljsonSources is provided by bin/list.js
// var soljsonSources is provided by bin/list.js
$
(
'option'
,
'#versionSelector'
).
remove
();
$
(
'option'
,
'#versionSelector'
).
remove
();
$
.
each
(
soljsonSources
,
function
(
i
,
file
)
{
if
(
window
.
soljsonSources
!==
undefined
)
{
if
(
file
)
{
$
.
each
(
soljsonSources
,
function
(
i
,
file
)
{
var
version
=
file
.
replace
(
/soljson-
(
.*
)
.js/
,
'$1'
);
if
(
file
)
{
$
(
'#versionSelector'
).
append
(
new
Option
(
version
,
file
));
var
version
=
file
.
replace
(
/soljson-
(
.*
)
.js/
,
'$1'
);
}
$
(
'#versionSelector'
).
append
(
new
Option
(
version
,
file
));
});
}
});
}
// always include the local version
$
(
'#versionSelector'
).
append
(
new
Option
(
'latest local version'
,
'soljson.js'
));
$
(
'#versionSelector'
).
change
(
function
()
{
$
(
'#versionSelector'
).
change
(
function
()
{
queryParams
.
update
({
version
:
$
(
'#versionSelector'
).
val
()
});
queryParams
.
update
({
version
:
$
(
'#versionSelector'
).
val
()
});
loadVersion
(
$
(
'#versionSelector'
).
val
());
loadVersion
(
$
(
'#versionSelector'
).
val
());
...
@@ -452,7 +458,11 @@ var run = function () {
...
@@ -452,7 +458,11 @@ var run = function () {
}
}
};
};
loadVersion
(
queryParams
.
get
().
version
||
'soljson-latest.js'
);
if
(
window
.
soljsonSources
!==
undefined
)
{
loadVersion
(
queryParams
.
get
().
version
||
'soljson-latest.js'
);
}
else
{
loadVersion
(
'soljson.js'
);
}
document
.
querySelector
(
'#optimize'
).
addEventListener
(
'change'
,
function
()
{
document
.
querySelector
(
'#optimize'
).
addEventListener
(
'change'
,
function
()
{
queryParams
.
update
({
optimize
:
document
.
querySelector
(
'#optimize'
).
checked
});
queryParams
.
update
({
optimize
:
document
.
querySelector
(
'#optimize'
).
checked
});
...
...
src/app/compiler.js
View file @
c9f60da6
...
@@ -118,7 +118,12 @@ function Compiler (editor, renderer, queryParams, handleGithubCall, outputField,
...
@@ -118,7 +118,12 @@ function Compiler (editor, renderer, queryParams, handleGithubCall, outputField,
}
}
this
.
loadVersion
=
function
(
usingWorker
,
version
,
setVersionText
)
{
this
.
loadVersion
=
function
(
usingWorker
,
version
,
setVersionText
)
{
var
url
=
'https://ethereum.github.io/solc-bin/bin/'
+
version
;
var
url
;
if
(
version
!==
'soljson.js'
)
{
url
=
'https://ethereum.github.io/solc-bin/bin/'
+
version
;
}
else
{
url
=
'soljson.js'
;
}
console
.
log
(
'Loading '
+
url
+
' '
+
(
usingWorker
?
'with worker'
:
'without worker'
));
console
.
log
(
'Loading '
+
url
+
' '
+
(
usingWorker
?
'with worker'
:
'without worker'
));
if
(
usingWorker
)
{
if
(
usingWorker
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment