Skip to content

Commit

Permalink
Use executors for circle (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstratton authored Nov 4, 2020
1 parent caad692 commit 0953862
Showing 1 changed file with 16 additions and 73 deletions.
89 changes: 16 additions & 73 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,153 +1,96 @@
version: 2
jobs:
build:
version: 2.1
executors:
castanet-tests:
docker:
- image: cibuilds/hugo:0.76.5
auth:
username: mattstratton
password: $DOCKERHUB_PASSWORD
working_directory: ~/castanet

jobs:
build:
executor: castanet-tests
steps:
- checkout
- run:
name: "Run hugo against default config"
command: cd exampleSite && ls && pwd && HUGO_ENV=production hugo -v -d workspace/public --themesDir ../.. --theme=castanet --buildDrafts=false

test-blue-grid:
docker:
- image: cibuilds/hugo:0.76.5
auth:
username: mattstratton
password: $DOCKERHUB_PASSWORD
working_directory: ~/castanet

executor: castanet-tests
steps:
- checkout
- run:
name: "Test blue-grid"
command: cd exampleSite && ls && pwd && HUGO_ENV=production hugo -v -d workspace/test/blue-grid --config ../test/blue-grid-config.toml --themesDir ../.. --theme=castanet --buildDrafts=false

test-blue-row-jumbo-false:
docker:
- image: cibuilds/hugo:0.76.5
auth:
username: mattstratton
password: $DOCKERHUB_PASSWORD
working_directory: ~/castanet

executor: castanet-tests
steps:
- checkout
- run:
name: "Test blue-row-jumbo-false"
command: cd exampleSite && ls && pwd && HUGO_ENV=production hugo -v -d workspace/test/blue-row-jumbo-false --config ../test/blue-row-jumbo-false-config.toml --themesDir ../.. --theme=castanet --buildDrafts=false

test-blue-row-jumbo-true:
docker:
- image: cibuilds/hugo:0.76.5
auth:
username: mattstratton
password: $DOCKERHUB_PASSWORD
working_directory: ~/castanet

executor: castanet-tests
steps:
- checkout
- run:
name: "Test blue-row-jumbo-true"
command: cd exampleSite && ls && pwd && HUGO_ENV=production hugo -v -d workspace/test/blue-row-jumbo-true --config ../test/blue-row-jumbo-true-config.toml --themesDir ../.. --theme=castanet --buildDrafts=false

test-blue-row-no-jumbo:
docker:
- image: cibuilds/hugo:0.76.5
auth:
username: mattstratton
password: $DOCKERHUB_PASSWORD
working_directory: ~/castanet

executor: castanet-tests
steps:
- checkout
- run:
name: "Test blue-row-no-jumbo"
command: cd exampleSite && ls && pwd && HUGO_ENV=production hugo -v -d workspace/test/blue-row-no-jumbo --config ../test/blue-row-no-jumbo-config.toml --themesDir ../.. --theme=castanet --buildDrafts=false

test-orange-grid:
docker:
- image: cibuilds/hugo:0.76.5
auth:
username: mattstratton
password: $DOCKERHUB_PASSWORD
working_directory: ~/castanet

executor: castanet-tests
steps:
- checkout
- run:
name: "Test orange-grid"
command: cd exampleSite && ls && pwd && HUGO_ENV=production hugo -v -d workspace/test/orange-grid --config ../test/orange-grid-config.toml --themesDir ../.. --theme=castanet --buildDrafts=false

test-orange-row:
docker:
- image: cibuilds/hugo:0.76.5
auth:
username: mattstratton
password: $DOCKERHUB_PASSWORD
working_directory: ~/castanet

executor: castanet-tests
steps:
- checkout
- run:
name: "Test orange-row"
command: cd exampleSite && ls && pwd && HUGO_ENV=production hugo -v -d workspace/test/orange-row --config ../test/orange-row-config.toml --themesDir ../.. --theme=castanet --buildDrafts=false

test-orange-row-jumbo:
docker:
- image: cibuilds/hugo:0.76.5
auth:
username: mattstratton
password: $DOCKERHUB_PASSWORD
working_directory: ~/castanet

executor: castanet-tests
steps:
- checkout
- run:
name: "Test orange-row-jumbo"
command: cd exampleSite && ls && pwd && HUGO_ENV=production hugo -v -d workspace/test/orange-row-jumbo --config ../test/orange-row-jumbo-config.toml --themesDir ../.. --theme=castanet --buildDrafts=false

test-grey-grid:
docker:
- image: cibuilds/hugo:0.76.5
auth:
username: mattstratton
password: $DOCKERHUB_PASSWORD
working_directory: ~/castanet

executor: castanet-tests
steps:
- checkout
- run:
name: "Test grey-grid"
command: cd exampleSite && ls && pwd && HUGO_ENV=production hugo -v -d workspace/test/grey-grid --config ../test/grey-grid-config.toml --themesDir ../.. --theme=castanet --buildDrafts=false

test-grey-row:
docker:
- image: cibuilds/hugo:0.76.5
auth:
username: mattstratton
password: $DOCKERHUB_PASSWORD
working_directory: ~/castanet

executor: castanet-tests
steps:
- checkout
- run:
name: "Test grey-row"
command: cd exampleSite && ls && pwd && HUGO_ENV=production hugo -v -d workspace/test/grey-row --config ../test/grey-row-config.toml --themesDir ../.. --theme=castanet --buildDrafts=false

test-grey-row-jumbo:
docker:
- image: cibuilds/hugo:0.76.5
auth:
username: mattstratton
password: $DOCKERHUB_PASSWORD
working_directory: ~/castanet

executor: castanet-tests
steps:
- checkout
- run:
Expand Down

0 comments on commit 0953862

Please sign in to comment.