Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
28 changes: 17 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@ executors:

commands:
ditto-transform:
description: Run Ditto in order to transform the base URL to https://pokeapi.co instead of localhost
description: Run Ditto in order to transform the BASE_URL instead of http://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:
name: Install requirements.txt
command: pip install --user -r requirements.txt
- run:
name: Transform api-data's JSON files to have the correct BASE_URL instead of http://localhost
command: bash -x scripts/transform.sh

jobs:
test:
Expand All @@ -28,10 +27,15 @@ jobs:
steps:
- checkout
- ditto-transform
- run: tar czf _gen.tar.gz _gen/*
- run:
name: Pack the transformed data in a .tar.gz
command: tar czf _gen.tar.gz _gen/*
- store_artifacts:
path: _gen.tar.gz
- 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"
# Trigger a new build of the deploy job of the deploy project
- run:
name: Trigger a deploy of the deploy project passing the desired environment/location to deploy to
command: 'curl --header "Content-Type: application/json" --data "{\"build_parameters\": {\"deploy_location\": \"$CIRCLE_BRANCH\", \"CIRCLE_JOB\": \"deploy\"}}" --request POST "https://circleci.com/api/v1.1/project/github/PokeAPI/deploy/tree/test-staging?circle-token=$CIRCLECI_API_TOKEN"'

workflows:
version: 2
Expand All @@ -43,4 +47,6 @@ workflows:
- test
filters:
branches:
only: master
only:
- master
- staging
465 changes: 240 additions & 225 deletions data/api/v2/ability/1/index.json

Large diffs are not rendered by default.

465 changes: 240 additions & 225 deletions data/api/v2/ability/10/index.json

Large diffs are not rendered by default.

454 changes: 231 additions & 223 deletions data/api/v2/ability/100/index.json

Large diffs are not rendered by default.

Loading