From 8ebe374a86ff554a29162262f743aaef44c5525c Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Mon, 13 Jul 2020 13:33:56 +0100 Subject: [PATCH] Include missing changes --- .circleci/config.yml | 201 +++++++++++++++++++++++++++++++++++++++++++ .env | 6 +- 2 files changed, 204 insertions(+), 3 deletions(-) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000000..374e72e6bc --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,201 @@ +# Javascript Node CircleCI 2.0 configuration file +# +# Check https://circleci.com/docs/2.0/language-javascript/ for more details +# +version: 2 +jobs: + remix-ide-chrome: + 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" + - FILES_TO_PACKAGE: "apps/remix-ide/assets apps/remix-ide/background.js apps/remix-ide/build apps/remix-ide/icon.png apps/remix-ide/index.html apps/remix-ide/manifest.json apps/remix-ide/README.md apps/remix-ide/soljson.js apps/remix-ide/package.json" + working_directory: ~/remix-project + + parallelism: 20 + steps: + - checkout + - run: npm install + - run: npm run lint + - run: + name: Download Compatible JAVA Version for Selenium + command: | + java -version + sudo apt-get purge --auto-remove java-common + sudo apt-get update + sudo apt-get install openjdk-8-jdk + java -version + - run: + name: Download Selenium + command: ./node_modules/.bin/selenium-standalone install --config=../remix-project/apps/remix-ide/seleniumConfig.js + - run: + name: Start Selenium + command: ./node_modules/.bin/selenium-standalone start --config=../remix-project/apps/remix-ide/seleniumConfig.js + background: true + - run: ./apps/remix-ide/ci/browser_tests_chrome.sh + - store_test_results: + path: ./apps/remix-ide/reports/tests + - store_artifacts: + path: ./apps/remix-ide/reports/screenshots + + remix-ide-firefox: + 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" + - FILES_TO_PACKAGE: "apps/remix-ide/assets apps/remix-ide/background.js apps/remix-ide/build apps/remix-ide/icon.png apps/remix-ide/index.html apps/remix-ide/manifest.json apps/remix-ide/README.md apps/remix-ide/soljson.js apps/remix-ide/package.json" + working_directory: ~/remix-project + + parallelism: 20 + steps: + - checkout + - run: npm install + - run: npm run lint + - run: + name: Download Selenium + command: ./node_modules/.bin/selenium-standalone install --config=../remix-project/apps/remix-ide/seleniumConfig.js + - run: + name: Start Selenium + command: ./node_modules/.bin/selenium-standalone start --config=../remix-project/apps/remix-ide/seleniumConfig.js + background: true + - run: + name: Download Latest Firefox + command: sudo apt-get purge -y firefox && wget https://sourceforge.net/projects/ubuntuzilla/files/mozilla/apt/pool/main/f/firefox-mozilla-build/firefox-mozilla-build_73.0.1-0ubuntu1_amd64.deb + - run: + name: Install Firefox + command: sudo dpkg -i firefox-mozilla-build_73.0.1-0ubuntu1_amd64.deb + - run: ./apps/remix-ide/ci/browser_tests_firefox.sh + - store_test_results: + path: ./apps/remix-ide/reports/tests + - store_artifacts: + path: ./apps/remix-ide/reports/screenshots + + remix-ide-run-deploy: + 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" + - FILES_TO_PACKAGE: "apps/remix-ide/assets apps/remix-ide/background.js apps/remix-ide/build apps/remix-ide/icon.png apps/remix-ide/index.html apps/remix-ide/manifest.json apps/remix-ide/README.md apps/remix-ide/soljson.js apps/remix-ide/package.json" + working_directory: ~/remix-project + + steps: + - checkout + - run: npm install + - run: npm run lint + - run: + name: Download Selenium + command: ./node_modules/.bin/selenium-standalone install --config=../remix-project/apps/remix-ide/seleniumConfig.js + - run: + name: Start Selenium + command: ./node_modules/.bin/selenium-standalone start --config=../remix-project/apps/remix-ide/seleniumConfig.js + background: true + - run: ./apps/remix-ide/ci/browser_tests_run_deploy.sh + - store_artifacts: + path: ./apps/remix-ide/reports/screenshots + + + deploy-remix-live: + 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" + - FILES_TO_PACKAGE: "apps/remix-ide/assets apps/remix-ide/background.js apps/remix-ide/build apps/remix-ide/icon.png apps/remix-ide/index.html apps/remix-ide/manifest.json apps/remix-ide/README.md apps/remix-ide/soljson.js apps/remix-ide/package.json" + working_directory: ~/remix-project + + steps: + - checkout + - run: npm install + - run: npm run lint + - run: + name: Deploy + command: | + if [ "${CIRCLE_BRANCH}" == "remix_live" ]; then + ./apps/remix-ide/ci/deploy_from_travis_remix-live.sh; + fi + - store_artifacts: + path: ./apps/remix-ide/reports/screenshots + + deploy-remix-alpha: + 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 + resource_class: xlarge + # documented at https://circleci.com/docs/2.0/circleci-images/ + # - image: circleci/mongo:3.4.4 + environment: + - COMMIT_AUTHOR_EMAIL: "yann@ethereum.org" + - COMMIT_AUTHOR: "Circle CI" + - FILES_TO_PACKAGE: "apps/remix-ide/assets apps/remix-ide/background.js apps/remix-ide/build apps/remix-ide/icon.png apps/remix-ide/index.html apps/remix-ide/manifest.json apps/remix-ide/README.md apps/remix-ide/soljson.js apps/remix-ide/package.json" + working_directory: ~/remix-project + + steps: + - checkout + - run: npm install + - run: npm run lint + - run: + name: Deploy + command: | + if [ "${CIRCLE_BRANCH}" == "master" ]; then + ./apps/remix-ide/ci/deploy_from_travis_remix-alpha.sh; + fi + - store_artifacts: + path: ./apps/remix-ide/reports/screenshots + +workflows: + version: 2 + build_all: + jobs: + - remix-ide-chrome + - remix-ide-firefox + - remix-ide-run-deploy + - deploy-remix-live: + requires: + - remix-ide-chrome + - remix-ide-firefox + - remix-ide-run-deploy + filters: + branches: + only: remix_live + - deploy-remix-alpha: + requires: + - remix-ide-chrome + - remix-ide-firefox + - remix-ide-run-deploy + filters: + branches: + only: master \ No newline at end of file diff --git a/.env b/.env index 167a819bb5..d3bca64c0b 100644 --- a/.env +++ b/.env @@ -1,3 +1,3 @@ -gist_token = -account_passphrase = -account_password = +gist_token= +account_passphrase= +account_password= \ No newline at end of file