This repository has been archived by the owner on Sep 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4022 from ethereum/develop
`develop` changes into `master`
- Loading branch information
Showing
24 changed files
with
489 additions
and
743 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
# | ||
# TODO: compilation | ||
# TODO: store_artifacts | ||
# TODO: name commands properly | ||
# TODO: mac job | ||
# TODO: improve caching | ||
# TODO: fix `xvfb gulp test` command | ||
# TODO: windows job | ||
# TODO: store_test_results | ||
# TODO: docker images | ||
# | ||
|
||
defaults: &defaults | ||
working_directory: /home/circleci/mist | ||
docker: | ||
- image: circleci/node:8.9.4-browsers | ||
environment: | ||
# Setting variable to fix node-gyp build error: | ||
# https://github.com/nodejs/node/issues/7173#issuecomment-224772258 | ||
- CXX_host: 'g++ -m32' | ||
|
||
linux_dependencies: &linux_dependencies | ||
name: Linux package dependencies | ||
# Installing multilib (build for 32 and 64 architectures): | ||
# https://www.quora.com/How-do-I-fix-fatal-error-sys-cdefs-h-file-not-found-include-sys-cdefs-h | ||
command: | | ||
sudo apt-get update && | ||
sudo apt-get install --no-install-recommends -y gcc-multilib g++-multilib icnsutils xz-utils && | ||
sudo apt-get install graphicsmagick | ||
install_meteor: &install_meteor | ||
name: Installing Meteor | ||
# PATH=$PATH:$HOME/.meteor && curl -L https://raw.githubusercontent.com/arunoda/travis-ci-meteor-packages/1390e0f96162d0d70fc1e60a6b0f4f891a0e8f42/configure.sh | /bin/sh | ||
command: which meteor || curl https://install.meteor.com | /bin/sh | ||
|
||
install_node_modules: &install_node_modules | ||
name: Installing node dependencies using yarn | ||
command: yarn | ||
|
||
|
||
# Javascript Node CircleCI 2.0 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-javascript/ for more details | ||
# | ||
version: 2 | ||
jobs: | ||
build: | ||
<<: *defaults | ||
steps: | ||
- checkout | ||
|
||
# Download and cache dependencies | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "package.json" }} | ||
# fallback to using the latest cache if no exact match is found | ||
- v1-dependencies- | ||
|
||
# Setting PATH: https://circleci.com/docs/2.0/env-vars/#setting-path | ||
- run: echo 'export PATH=`yarn global bin`:$PATH' >> $BASH_ENV | ||
|
||
- run: | ||
<<: *linux_dependencies | ||
- run: | ||
<<: *install_meteor | ||
- run: | ||
<<: *install_node_modules | ||
|
||
- save_cache: | ||
paths: | ||
- node_modules | ||
key: v1-dependencies-{{ checksum "package.json" }} | ||
- persist_to_workspace: | ||
root: /home/circleci/ | ||
paths: | ||
- mist | ||
|
||
mist-linux: | ||
<<: *defaults | ||
steps: | ||
- attach_workspace: | ||
at: /home/circleci/ | ||
|
||
- run: | ||
<<: *linux_dependencies | ||
- run: | ||
<<: *install_meteor | ||
- run: | ||
<<: *install_node_modules | ||
|
||
- run: yarn build:mist --linux | ||
|
||
- store_artifacts: | ||
path: dist_mist/release | ||
|
||
wallet-linux: | ||
<<: *defaults | ||
steps: | ||
- attach_workspace: | ||
at: /home/circleci/ | ||
|
||
- run: | ||
<<: *linux_dependencies | ||
- run: | ||
<<: *install_meteor | ||
- run: | ||
<<: *install_node_modules | ||
|
||
- run: yarn build:wallet --linux | ||
|
||
- store_artifacts: | ||
path: dist_wallet/release | ||
|
||
spectron-test: | ||
docker: | ||
- image: circleci/node:8.9.4 | ||
steps: | ||
- attach_workspace: | ||
at: /home/circleci/ | ||
- run: xvfb-run yarn test:e2e | ||
|
||
unit-test: | ||
<<: *defaults | ||
steps: | ||
- attach_workspace: | ||
at: /home/circleci/ | ||
- run: << *install_node_modules | ||
- run: yarn test:unit:once | ||
|
||
workflows: | ||
version: 2 | ||
build_and_test: | ||
jobs: | ||
- build | ||
- mist-linux: | ||
requires: | ||
- build | ||
- wallet-linux: | ||
requires: | ||
- build | ||
- unit-test: | ||
requires: | ||
- build |
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
initLabels: | ||
- "Status: Triage" | ||
label: "Status: Triage" |
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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "dapp-styles"] | ||
path = interface/public/dapp-styles | ||
url = git://github.com/ethereum/dapp-styles.git | ||
[submodule "meteor-dapp-wallet"] | ||
path = meteor-dapp-wallet | ||
url = https://github.com/ethereum/meteor-dapp-wallet.git |
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
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
Oops, something went wrong.