Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
simplifying yarn tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
evertonfraga committed Jul 23, 2018
1 parent b0c2eec commit 01d8786
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 63 deletions.
62 changes: 5 additions & 57 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,14 @@ linux_dependencies: &linux_dependencies
sudo apt-get install --no-install-recommends -y gcc-multilib g++-multilib icnsutils xz-utils &&
sudo apt-get install graphicsmagick
windows_dependencies: &windows_dependencies
name: Windows package dependencies
command: |
sudo apt-get install software-properties-common &&
sudo dpkg --add-architecture i386 &&
sudo add-apt-repository ppa:ubuntu-wine/ppa -y &&
sudo apt-get install --no-install-recommends -y mono-devel nsis ca-certificates-mono wine1.8
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 modules using yarn
command: yarn global add gulp-cli meteor-build-client && yarn
name: Installing node dependencies using yarn
command: yarn


# Javascript Node CircleCI 2.0 configuration file
Expand Down Expand Up @@ -96,8 +88,7 @@ jobs:
- run:
<<: *install_node_modules

- run: yarn run gulp --linux
- run: yarn run gulp verify-artifacts --mist --linux
- run: yarn build:mist --linux

- store_artifacts:
path: dist_mist/release
Expand All @@ -115,50 +106,7 @@ jobs:
- run:
<<: *install_node_modules

- run: yarn run gulp --wallet --linux
- run: yarn run gulp verify-artifacts --wallet --linux

- store_artifacts:
path: dist_wallet/release

mist-windows:
<<: *defaults
steps:
- attach_workspace:
at: /home/circleci/

- run:
<<: *linux_dependencies
- run:
<<: *windows_dependencies
- run:
<<: *install_meteor
- run:
<<: *install_node_modules

- run: yarn run gulp --win
- run: yarn run gulp verify-artifacts --mist --win

- store_artifacts:
path: dist_mist/release

wallet-windows:
<<: *defaults
steps:
- attach_workspace:
at: /home/circleci/

- run:
<<: *linux_dependencies
- run:
<<: *windows_dependencies
- run:
<<: *install_meteor
- run:
<<: *install_node_modules

- run: yarn run gulp --wallet --win
- run: yarn run gulp verify-artifacts --wallet --win
- run: yarn build:wallet --linux

- store_artifacts:
path: dist_wallet/release
Expand All @@ -169,7 +117,7 @@ jobs:
steps:
- attach_workspace:
at: /home/circleci/
- run: xvfb-run yarn run gulp test
- run: xvfb-run yarn test:e2e

unit-test:
<<: *defaults
Expand Down
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ install:
script:
- yarn test:unit:once

- yarn gulp --mist --$GULP_PLATFORM
- yarn build:mist --$GULP_PLATFORM

- yarn gulp --wallet --$GULP_PLATFORM
- yarn build:wallet --$GULP_PLATFORM

- yarn gulp test
- yarn test:e2e

after_success:
- if [[ $TRAVIS_BRANCH == "master" ]]; then
gulp upload-queue --$GULP_PLATFORM;
gulp upload-queue --wallet --$GULP_PLATFORM;
yarn dist:mist --$GULP_PLATFORM;
yarn dist:wallet --$GULP_PLATFORM;
fi

7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
"dev:tools": "remotedev & (sleep 3 && open http://localhost:8000)",
"test:unit": "mocha --compilers babel-register tests/unit/**/* --watch",
"test:unit:once": "mocha --compilers babel-register tests/unit/**/*",
"gulp": "gulp"
"test:e2e": "gulp test",
"build:wallet": "gulp --wallet",
"build:mist": "gulp --mist",
"dist:mist": "gulp upload-queue --mist",
"dist:wallet": "gulp upload-queue --wallet",
"task": "gulp"
},
"main": "main.js",
"dependencies": {
Expand Down

1 comment on commit 01d8786

@mfct
Copy link

@mfct mfct commented on 01d8786 Aug 9, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Master, please help me

Please sign in to comment.