Skip to content

Commit

Permalink
chore: 6th on the appveyor and others on CircleCI in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
shahabganji authored and 3cp committed Sep 12, 2019
1 parent 6ab1de5 commit 0b8af67
Show file tree
Hide file tree
Showing 2 changed files with 216 additions and 19 deletions.
215 changes: 211 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
20 changes: 5 additions & 15 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 0b8af67

Please sign in to comment.