remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
remix-project/.circleci/config.yml

358 lines
10 KiB

5 years ago
# Javascript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2.1
orbs:
3 years ago
browser-tools: circleci/browser-tools@1.2.3
5 years ago
jobs:
3 years ago
build:
docker:
# specify the version you desire here
3 years ago
- image: cimg/node:14.17.6-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
steps:
- checkout
3 years ago
3 years ago
- restore_cache:
keys:
3 years ago
- v1-deps-{{ checksum "package-lock.json" }}
3 years ago
- run: npm install
3 years ago
- save_cache:
3 years ago
key: v1-deps-{{ checksum "package-lock.json" }}
3 years ago
paths:
- node_modules
- run: npm run downloadsolc_assets
3 years ago
- run: npx nx build remix-ide
3 years ago
- run: npx nx build remix-ide-e2e-src-local-plugin
- run: npm run build:libs
3 years ago
- run: mkdir persist && zip -r persist/dist.zip dist
- persist_to_workspace:
root: .
paths:
- 'persist'
4 years ago
lint:
3 years ago
docker:
# specify the version you desire here
- image: cimg/node:14.17.6-browsers
3 years ago
# 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
3 years ago
parallelism: 35
3 years ago
steps:
- checkout
3 years ago
- restore_cache:
keys:
3 years ago
- v1-deps-{{ checksum "package-lock.json" }}
3 years ago
- run: npm install
- run:
name: Remix Libs Linting
3 years ago
command: ./apps/remix-ide/ci/lint.sh
4 years ago
remix-libs:
docker:
# specify the version you desire here
- image: cimg/node:14.17.6-browsers
4 years ago
# 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
steps:
- checkout
3 years ago
- attach_workspace:
at: .
- run: unzip ./persist/dist.zip
- restore_cache:
keys:
3 years ago
- v1-deps-{{ checksum "package-lock.json" }}
- run: npm i
- run: cd dist/libs/remix-tests && npm install
3 years ago
- run: npm run test:libs
remix-ide-chrome:
4 years ago
docker:
# specify the version you desire here
- image: cimg/node:14.17.6-browsers
4 years ago
# 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: 70
4 years ago
steps:
- browser-tools/install-chrome
- browser-tools/install-chromedriver
- run:
command: |
google-chrome --version
chromedriver --version
java -jar /usr/local/bin/selenium.jar --version
name: Check install
4 years ago
- checkout
3 years ago
- attach_workspace:
at: .
3 years ago
- run: unzip ./persist/dist.zip
- restore_cache:
keys:
3 years ago
- v1-deps-{{ checksum "package-lock.json" }}
4 years ago
- run: npm install
- run:
name: Start Selenium
command: java -jar /usr/local/bin/selenium.jar
4 years ago
background: true
3 years ago
- run: ./apps/remix-ide/ci/browser_test.sh chrome
5 years ago
- store_test_results:
4 years ago
path: ./reports/tests
5 years ago
- store_artifacts:
4 years ago
path: ./reports/screenshots
5 years ago
remix-ide-firefox:
5 years ago
docker:
# specify the version you desire here
- image: cimg/node:14.17.6-browsers
5 years ago
# 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: 70
5 years ago
steps:
- browser-tools/install-firefox
- browser-tools/install-geckodriver
- run:
command: |
firefox --version
geckodriver --version
java -jar /usr/local/bin/selenium.jar --version
name: Check install
5 years ago
- checkout
3 years ago
- attach_workspace:
at: .
- run: unzip ./persist/dist.zip
- restore_cache:
keys:
3 years ago
- v1-deps-{{ checksum "package-lock.json" }}
- run: npm install
- run:
name: Start Selenium
command: java -jar /usr/local/bin/selenium.jar
background: true
3 years ago
- run: ./apps/remix-ide/ci/browser_test.sh firefox
- store_test_results:
4 years ago
path: ./reports/tests
5 years ago
- store_artifacts:
4 years ago
path: ./reports/screenshots
5 years ago
3 years ago
remix-ide-plugin-api:
docker:
# specify the version you desire here
- image: cimg/node:14.17.6-browsers
5 years ago
3 years ago
# 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
3 years ago
parallelism: 7
3 years ago
steps:
- browser-tools/install-chrome
- browser-tools/install-chromedriver
- run:
command: |
google-chrome --version
chromedriver --version
java -jar /usr/local/bin/selenium.jar --version
name: Check install
- checkout
3 years ago
- checkout
3 years ago
- attach_workspace:
at: .
- run: unzip ./persist/dist.zip
- restore_cache:
keys:
3 years ago
- v1-deps-{{ checksum "package-lock.json" }}
3 years ago
- run: npm install
3 years ago
- run:
name: Start Selenium
command: java -jar /usr/local/bin/selenium.jar
3 years ago
background: true
3 years ago
- run: ./apps/remix-ide/ci/browser_tests_plugin_api.sh
- store_test_results:
3 years ago
path: ./reports/tests
3 years ago
- store_artifacts:
3 years ago
path: ./reports/screenshots
5 years ago
deploy-remix-live:
docker:
# specify the version you desire here
- image: cimg/node:14.17.6-browsers
5 years ago
# 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
steps:
- checkout
- run: npm install
- run: npm run downloadsolc_assets
- run: npm run build:production
- run:
name: Deploy
command: |
if [ "${CIRCLE_BRANCH}" == "remix_live" ]; then
./apps/remix-ide/ci/deploy_from_travis_remix-live.sh;
fi
5 years ago
5 years ago
deploy-remix-alpha:
docker:
# specify the version you desire here
- image: cimg/node:14.17.6-browsers
5 years ago
# 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"
working_directory: ~/remix-project
steps:
- checkout
- run: npm install
- run: npm run downloadsolc_assets
- run: npm run build:production
5 years ago
- run:
name: Deploy
command: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
./apps/remix-ide/ci/deploy_from_travis_remix-alpha.sh;
fi
deploy-remix-beta:
docker:
# specify the version you desire here
- image: cimg/node:14.17.6-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"
3 years ago
working_directory: ~/remix-project
steps:
- checkout
- run: npm install
- run: npm run build:libs
- run: npm run downloadsolc_assets
- run: npm run build:production
- run:
name: Deploy
command: |
if [ "${CIRCLE_BRANCH}" == "remix_beta" ]; then
./apps/remix-ide/ci/deploy_from_travis_remix-beta.sh;
fi
5 years ago
workflows:
version: 2
build_all:
jobs:
3 years ago
- build
3 years ago
- lint:
requires:
- build
- remix-libs:
4 years ago
requires:
3 years ago
- build
3 years ago
- remix-ide-plugin-api:
requires:
3 years ago
- build
- remix-ide-chrome:
requires:
3 years ago
- build
3 years ago
- remix-ide-firefox:
requires:
3 years ago
- build
5 years ago
- deploy-remix-live:
requires:
3 years ago
- lint
- remix-libs
- remix-ide-chrome
- remix-ide-firefox
3 years ago
- remix-ide-plugin-api
5 years ago
filters:
branches:
only: remix_live
- deploy-remix-alpha:
requires:
3 years ago
- lint
- remix-libs
- remix-ide-chrome
- remix-ide-firefox
3 years ago
- remix-ide-plugin-api
5 years ago
filters:
branches:
only: master
- deploy-remix-beta:
requires:
3 years ago
- lint
- remix-libs
- remix-ide-chrome
- remix-ide-firefox
3 years ago
- remix-ide-plugin-api
filters:
branches:
only: remix_beta