CI updated for libs and ide build

pull/19/head
aniket-engg 4 years ago committed by Aniket
parent f6502598c3
commit d73e227177
  1. 51
      .circleci/config.yml
  2. 1
      package.json

@ -4,6 +4,29 @@
# #
version: 2 version: 2
jobs: jobs:
remix-libs:
docker:
# specify the version you desire here
- image: circleci/node:10.18.0-browsers
# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
# documented at https://circleci.com/docs/2.0/circleci-images/
resource_class: xlarge
# - image: circleci/mongo:3.4.4
environment:
- COMMIT_AUTHOR_EMAIL: "yann@ethereum.org"
- COMMIT_AUTHOR: "Circle CI"
working_directory: ~/remix-project
parallelism: 20
steps:
- checkout
- run: npm install
- run: npm run lint:libs
- run: npm run build:libs
- run: npm run test:libs
remix-ide-chrome: remix-ide-chrome:
docker: docker:
# specify the version you desire here # specify the version you desire here
@ -25,6 +48,9 @@ jobs:
- checkout - checkout
- run: npm install - run: npm install
- run: npm run lint - run: npm run lint
- run: npm run build:libs
- run: npm run downloadsolc_root
- run: npm run build
- run: - run:
name: Download Compatible JAVA Version for Selenium name: Download Compatible JAVA Version for Selenium
command: | command: |
@ -67,6 +93,9 @@ jobs:
- checkout - checkout
- run: npm install - run: npm install
- run: npm run lint - run: npm run lint
- run: npm run build:libs
- run: npm run downloadsolc_root
- run: npm run build
- run: - run:
name: Download Selenium name: Download Selenium
command: ./node_modules/.bin/selenium-standalone install --config=../remix-project/apps/remix-ide/seleniumConfig.js command: ./node_modules/.bin/selenium-standalone install --config=../remix-project/apps/remix-ide/seleniumConfig.js
@ -106,6 +135,9 @@ jobs:
- checkout - checkout
- run: npm install - run: npm install
- run: npm run lint - run: npm run lint
- run: npm run build:libs
- run: npm run downloadsolc_root
- run: npm run build
- run: - run:
name: Download Compatible JAVA Version for Selenium name: Download Compatible JAVA Version for Selenium
command: | command: |
@ -146,6 +178,9 @@ jobs:
- checkout - checkout
- run: npm install - run: npm install
- run: npm run lint - run: npm run lint
- run: npm run build:libs
- run: npm run downloadsolc_root
- run: npm run build
- run: - run:
name: Deploy name: Deploy
command: | command: |
@ -175,6 +210,9 @@ jobs:
- checkout - checkout
- run: npm install - run: npm install
- run: npm run lint - run: npm run lint
- run: npm run build:libs
- run: npm run downloadsolc_root
- run: npm run build
- run: - run:
name: Deploy name: Deploy
command: | command: |
@ -188,9 +226,16 @@ workflows:
version: 2 version: 2
build_all: build_all:
jobs: jobs:
- remix-ide-chrome - remix-libs
- remix-ide-firefox - remix-ide-chrome:
- remix-ide-run-deploy requires:
- remix-libs
- remix-ide-firefox:
requires:
- remix-libs
- remix-ide-run-deploy:
requires:
- remix-libs
- deploy-remix-live: - deploy-remix-live:
requires: requires:
- remix-ide-chrome - remix-ide-chrome

@ -89,7 +89,6 @@
"nightwatch_local_fileManager": "nightwatch ./apps/remix-ide/test-browser/tests/fileManager_api.test.js --config apps/remix-ide/nightwatch.js --env chrome ", "nightwatch_local_fileManager": "nightwatch ./apps/remix-ide/test-browser/tests/fileManager_api.test.js --config apps/remix-ide/nightwatch.js --env chrome ",
"nightwatch_local_runAndDeploy": "nightwatch ./apps/remix-ide/test-browser/tests/runAndDeploy.js --config apps/remix-ide/nightwatch.js --env chrome-runAndDeploy ", "nightwatch_local_runAndDeploy": "nightwatch ./apps/remix-ide/test-browser/tests/runAndDeploy.js --config apps/remix-ide/nightwatch.js --env chrome-runAndDeploy ",
"onchange": "onchange apps/remix-ide/build/app.js -- npm-run-all lint", "onchange": "onchange apps/remix-ide/build/app.js -- npm-run-all lint",
"prepublish": "mkdirp build; npm-run-all -ls downloadsolc_root build:libs build",
"remixd": "remixd -s ./apps/remix-ide/contracts --remix-ide http://127.0.0.1:8080", "remixd": "remixd -s ./apps/remix-ide/contracts --remix-ide http://127.0.0.1:8080",
"selenium": "selenium-standalone start", "selenium": "selenium-standalone start",
"selenium-install": "selenium-standalone install", "selenium-install": "selenium-standalone install",

Loading…
Cancel
Save