This is a tool for keeping track on project dependencies.
When tracking wordpress we need to both install wp-cli, composer and wordpress.
-
Begin with making sure you have a wp-cli.yml file in your repository root that points to your wordpress dir.
echo "path: src/" > wp-cli.yml
-
Next, make sure you have a file called
test.env
in your repo root.DB_USER=ubuntu DB_NAME=circle_test DB_PASSWORD= DB_HOST=127.0.0.1 WP_HOME= WP_SITEURL=
-
Copy+paste these sections into your circle.yml file.
test: override: - ... post: # Track dependencies - curl -O https://raw.githubusercontent.com/Frojd/VersionWatcher/develop/tools/track.sh && chmod +x ./track.sh - ./track.sh wp-bedrock-circle-setup && ./track.sh wordpress
When tracking wordpress we need to both install wp-cli and wordpress.
-
Begin with making sure you have a wp-cli.yml file in your repository root that points to your wordpress dir.
echo "path: src/" > wp-cli.yml
-
Copy+paste these sections into your circle.yml file.
test: override: - ... post: # Track dependencies - curl -O https://raw.githubusercontent.com/Frojd/VersionWatcher/master/tools/track.sh && chmod +x ./track.sh - ./track.sh wp-circle-setup && ./track.sh wordpress
-
Copy+paste this section into your circle.yml file.
test: override: - ... post: # Track dependencies - curl -O https://raw.githubusercontent.com/Frojd/VersionWatcher/master/tools/track.sh && chmod +x ./track.sh - ./track.sh python django
The parameter LABEL
is optional and should refer to the framework or cms in use (Example: wagtail
, django
, flask
)
- Copy+paste this section into your circle.yml file.
test:
override:
- ...
post:
# Track dependencies
- curl -O https://raw.githubusercontent.com/Frojd/VersionWatcher/master/tools/track.sh && chmod +x ./track.sh
- ./track.sh node
- TODO
tracker/stable
Params:
project (example "Frojd/Client-project")
package (example "wordpress:4.7.2")
This application is built on the serverless framework, hosted on aws, utilizing AWS Lambda and DynamoDB. The application is written in Node.js
- awscli (
pip install awscli
) - node 6.10
npm install
npm test
First make sure you have all the correct aws keys setup, the run
- cd versionwatcher && ../node_modules/serverless/bin/serverless deploy --stage stage
- aws s3 sync ./frontend s3://versionwatcher/Stage/
(Change to Prod if creating a production release)
cd frontend
cp conf.json.example conf.json
Edit conf.json and add your own apikey and endpoint address Run a httpserver inside the folder
- Tracking PHP + Composer
- Tracking for Python
- Add timestamps to tracking model
- Add commit-id field
- Tracking for C#
- Implement endpoint that allows browsing of data
- Show latest versions
- Implement api keys
- Sort result by date
- Include x-api key in implementation examples
- Make production release of tool
- Pretty print date in result listing
- Lower lambda memory
- Update Node.js version
- Error management in request handler