Skip to content

Commit

Permalink
fix(circleci): use new indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Naramsim committed Apr 26, 2020
1 parent 8fb745f commit dd54d13
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,48 +9,48 @@ commands:
ditto-transform:
description: Run Ditto in order to transform the base URL to https://pokeapi.co instead of localhost
steps:
- run: pip install --user -r requirements.txt
- run:
command: |
~/.local/bin/ditto transform \
--base-url='https://pokeapi.co' \
--src-dir=data \
--dest-dir=_gen
- run: pip install --user -r requirements.txt
- run:
command: |
~/.local/bin/ditto transform \
--base-url='https://pokeapi.co' \
--src-dir=data \
--dest-dir=_gen
jobs:
test:
executor: python36
steps:
- checkout
- ditto-transform
- checkout
- ditto-transform
build:
executor: python36
steps:
- checkout
- ditto-transform
- run: tar czf _gen.tar.gz _gen/*
- store_artifacts:
path: _gen.tar.gz
- checkout
- ditto-transform
- run: tar czf _gen.tar.gz _gen/*
- store_artifacts:
path: _gen.tar.gz
deploy:
executor: python36
steps:
# Trigger a new build of the deploy project
- run: "curl -X POST --header \"Content-Type: application/json\" https://circleci.com/api/v1.1/project/github/PokeAPI/deploy/build?circle-token=$CIRCLECI_API_TOKEN"
- run: "curl -X POST --header \"Content-Type: application/json\" https://circleci.com/api/v1.1/project/github/PokeAPI/deploy/build?circle-token=$CIRCLECI_API_TOKEN"

workflows:
version: 2
test-build-and-deploy:
jobs:
- test
- build:
requires:
- test
filters:
branches:
only: master
- deploy:
requires:
- build
filters:
branches:
only: master
- test
- build:
requires:
- test
filters:
branches:
only: master
- deploy:
requires:
- build
filters:
branches:
only: master

0 comments on commit dd54d13

Please sign in to comment.