From 0b8af67c7b8d31518b8b10d13067a78f7edae60f Mon Sep 17 00:00:00 2001 From: Saeed Ganji Date: Thu, 12 Sep 2019 09:15:49 +0430 Subject: [PATCH] chore: 6th on the appveyor and others on CircleCI in parallel --- .circleci/config.yml | 215 ++++++++++++++++++++++++++++++++++++++++++- appveyor.yml | 20 +--- 2 files changed, 216 insertions(+), 19 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 486c30934..1b7b827ef 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,11 +8,17 @@ workflows: jobs: - test_node_8 - test_node_10 - - test_docker + - test_docker_1 + - test_docker_2 + - test_docker_3 + - test_docker_4 + - test_docker_5 + - test_docker_7 + - test_docker_8 version: 2 jobs: - test_docker: + test_docker_1: docker: - image: circleci/node:8-browsers @@ -46,14 +52,215 @@ jobs: - run: sudo npm link # four scaffolding using webpack with various configurations - run: au new first -u -s htmlmin-max,sass,postcss-typical,karma,cypress,docker && cd ./first && npm install && npm link aurelia-cli && npm run docker:build + + test_docker_2: + docker: + - image: circleci/node:8-browsers + + working_directory: ~/repo + + steps: + - checkout + + - setup_remote_docker: + version: 18.06.0-ce + + # Download and cache dependencies + - restore_cache: + keys: + - node8-dependencies-{{ checksum "package.json" }} + # fallback to using the latest cache if no exact match is found + - node8-dependencies- + + - run: npm install + - run: npm run build + + - save_cache: + paths: + - node_modules + key: node8-dependencies-{{ checksum "package.json" }} + + # run tests! + - run: npm test + + # create aurelia-apps based on the current cli, and test them inside docker containers + - run: sudo npm link - run: au new second -u -s http2,typescript,htmlmin-min,less,postcss-typical,jest,protractor,scaffold-navigation,docker && cd ./second && npm install && npm link aurelia-cli && npm run docker:build + + test_docker_3: + docker: + - image: circleci/node:8-browsers + + working_directory: ~/repo + + steps: + - checkout + + - setup_remote_docker: + version: 18.06.0-ce + + # Download and cache dependencies + - restore_cache: + keys: + - node8-dependencies-{{ checksum "package.json" }} + # fallback to using the latest cache if no exact match is found + - node8-dependencies- + + - run: npm install + - run: npm run build + + - save_cache: + paths: + - node_modules + key: node8-dependencies-{{ checksum "package.json" }} + + # run tests! + - run: npm test + + # create aurelia-apps based on the current cli, and test them inside docker containers + - run: sudo npm link + # four scaffolding using webpack with various configurations - run: au new third -u -s dotnet-core,typescript,htmlmin-max,stylus,postcss-basic,jest,protractor,docker && cd ./third && npm install && npm link aurelia-cli && npm run docker:build + + test_docker_4: + docker: + - image: circleci/node:8-browsers + + working_directory: ~/repo + + steps: + - checkout + + - setup_remote_docker: + version: 18.06.0-ce + + # Download and cache dependencies + - restore_cache: + keys: + - node8-dependencies-{{ checksum "package.json" }} + # fallback to using the latest cache if no exact match is found + - node8-dependencies- + + - run: npm install + - run: npm run build + + - save_cache: + paths: + - node_modules + key: node8-dependencies-{{ checksum "package.json" }} + + # run tests! + - run: npm test + + # create aurelia-apps based on the current cli, and test them inside docker containers + - run: sudo npm link + # four scaffolding using webpack with various configurations - run: au new forth -u -s http2,dotnet-core,htmlmin-min,sass,postcss-typical,karma,cypress,scaffold-navigation,docker && cd ./forth && npm install && npm link aurelia-cli && npm run docker:build - # four scaffolding using Alameda with various configurations + + test_docker_5: + docker: + - image: circleci/node:8-browsers + + working_directory: ~/repo + + steps: + - checkout + + - setup_remote_docker: + version: 18.06.0-ce + + # Download and cache dependencies + - restore_cache: + keys: + - node8-dependencies-{{ checksum "package.json" }} + # fallback to using the latest cache if no exact match is found + - node8-dependencies- + + - run: npm install + - run: npm run build + + - save_cache: + paths: + - node_modules + key: node8-dependencies-{{ checksum "package.json" }} + + # run tests! + - run: npm test + + # create aurelia-apps based on the current cli, and test them inside docker containers + - run: sudo npm link + # four scaffolding using webpack with various configurations - run: au new fifth -u -s cli-bundler,alameda,htmlmin-max,sass,postcss-typical,karma,cypress,docker && cd ./fifth && npm install && npm link aurelia-cli && npm run docker:build - # - run: au new sixth -u -s cli-bundler,alameda,http2,typescript,htmlmin-min,less,postcss-typical,jest,protractor,scaffold-navigation,docker && cd ./sixth && npm install && npm link aurelia-cli && npm run docker:build + + test_docker_7: + docker: + - image: circleci/node:8-browsers + + working_directory: ~/repo + + steps: + - checkout + + - setup_remote_docker: + version: 18.06.0-ce + + # Download and cache dependencies + - restore_cache: + keys: + - node8-dependencies-{{ checksum "package.json" }} + # fallback to using the latest cache if no exact match is found + - node8-dependencies- + + - run: npm install + - run: npm run build + + - save_cache: + paths: + - node_modules + key: node8-dependencies-{{ checksum "package.json" }} + + # run tests! + - run: npm test + + # create aurelia-apps based on the current cli, and test them inside docker containers + - run: sudo npm link + # four scaffolding using webpack with various configurations - run: au new seventh -u -s cli-bundler,alameda,dotnet-core,typescript,htmlmin-max,stylus,postcss-basic,jest,protractor,docker && cd ./seventh && npm install && npm link aurelia-cli && npm run docker:build + + test_docker_8: + docker: + - image: circleci/node:8-browsers + + working_directory: ~/repo + + steps: + - checkout + + - setup_remote_docker: + version: 18.06.0-ce + + # Download and cache dependencies + - restore_cache: + keys: + - node8-dependencies-{{ checksum "package.json" }} + # fallback to using the latest cache if no exact match is found + - node8-dependencies- + + - run: npm install + - run: npm run build + + - save_cache: + paths: + - node_modules + key: node8-dependencies-{{ checksum "package.json" }} + + # run tests! + - run: npm test + + # create aurelia-apps based on the current cli, and test them inside docker containers + - run: sudo npm link - run: au new eighth -u -s cli-bundler,alameda,http2,dotnet-core,htmlmin-min,sass,postcss-typical,karma,cypress,scaffold-navigation,docker && cd ./eighth && npm install && npm link aurelia-cli && npm run docker:build + test_node_8: docker: - image: circleci/node:8-browsers diff --git a/appveyor.yml b/appveyor.yml index 19b359c3d..ec1636be2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -27,26 +27,16 @@ before_build: build_script: - npm run build - # - npm install - npm link test_script: - ps: Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All - docker-switch-linux - # - au new sixth -u -s cli-bundler,alameda,http2,typescript,htmlmin-min,less,postcss-typical,jest,protractor,scaffold-navigation,docker - # - cd ./sixth - # - npm install - # - npm link aurelia-cli - # - npm run docker:build - - au new first -u -s htmlmin-max,sass,postcss-typical,karma,cypress,docker && cd ./first && npm install && npm link aurelia-cli && npm run docker:build - - au new second -u -s http2,typescript,htmlmin-min,less,postcss-typical,jest,protractor,scaffold-navigation,docker && cd ./second && npm install && npm link aurelia-cli && npm run docker:build - - au new third -u -s dotnet-core,typescript,htmlmin-max,stylus,postcss-basic,jest,protractor,docker && cd ./third && npm install && npm link aurelia-cli && npm run docker:build - - au new forth -u -s http2,dotnet-core,htmlmin-min,sass,postcss-typical,karma,cypress,scaffold-navigation,docker && cd ./forth && npm install && npm link aurelia-cli && npm run docker:build - - au new fifth -u -s cli-bundler,alameda,htmlmin-max,sass,postcss-typical,karma,cypress,docker && cd ./fifth && npm install && npm link aurelia-cli && npm run docker:build - - au new sixth -u -s cli-bundler,alameda,http2,typescript,htmlmin-min,less,postcss-typical,jest,protractor,scaffold-navigation,docker && cd ./sixth && npm install && npm link aurelia-cli && npm run docker:build - - au new seventh -u -s cli-bundler,alameda,dotnet-core,typescript,htmlmin-max,stylus,postcss-basic,jest,protractor,docker && cd ./seventh && npm install && npm link aurelia-cli && npm run docker:build - - au new eighth -u -s cli-bundler,alameda,http2,dotnet-core,htmlmin-min,sass,postcss-typical,karma,cypress,scaffold-navigation,docker && cd ./eighth && npm install && npm link aurelia-cli && npm run docker:build - + - au new sixth -u -s cli-bundler,alameda,http2,typescript,htmlmin-min,less,postcss-typical,jest,protractor,scaffold-navigation,docker + - cd ./sixth + - npm install + - npm link aurelia-cli + - npm run docker:build cache: - '%APPDATA%\npm-cache'