![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
greenkeeper-lockfile
Advanced tools
After enabling Greenkeeper for your repository you can use this package to make it work with lockfiles, such as npm-shrinkwrap.json
, package-lock.json
or yarn.lock
.
✅ Travis CI
✅ Circle CI Thank you @ethanrubio 👏
✅ Jenkins
✅ Wercker
✅ Bitrise Thank you @zetaron 👏
✅ Buildkite Thank you @justindowning 👏
✅ Codeship Thank you @selbyk 👏
✅ Semaphore Thank you @cbothner 👏
✅ TeamCity Thank you @tagoro9 & @dbrockman 👏
✅ Drone.io Thank you @donny-dont 👏
First create a GitHub access token with push access to your repository and make it available to your CI's environment as GH_TOKEN
.
If you use Travis CI, you may add the token using the CLI app as follows: travis encrypt GH_TOKEN=<token> --add
Configure your CI to use the npm/yarn version you want your lockfiles to be generated with before it installs your dependencies. Install greenkeeper-lockfile
as well.
Configure your CI to run greenkeeper-lockfile-update
right before it executes your tests and greenkeeper-lockfile-upload
right after it executed your tests.
This is how it works on Travis CI for the different package managers.
before_install:
# package-lock.json was introduced in npm@5
- '[[ $(node -v) =~ ^v9.*$ ]] || npm install -g npm@latest' # skipped when using node 9
- npm install -g greenkeeper-lockfile@1
before_script: greenkeeper-lockfile-update
after_script: greenkeeper-lockfile-upload
before_install: yarn global add greenkeeper-lockfile@1
before_script: greenkeeper-lockfile-update
after_script: greenkeeper-lockfile-upload
Custom yarn command line arguments
To run the lockfile-update script with custom command line arguments, set the GK_LOCK_YARN_OPTS
environment variable to your needs (set it to --ignore-engines
, for example). They will be appended to the yarn add
command.
It is common to test multiple node versions and therefor have multiple test jobs for one build. In this case the lockfile will automatically be updated for every job, but only uploaded for the first one.
node_js:
- 6
- 4
before_install:
- npm install -g npm
- npm install -g greenkeeper-lockfile@1
before_script: greenkeeper-lockfile-update
# Only the node version 6 job will upload the lockfile
after_script: greenkeeper-lockfile-upload
In order to use greenkeeper-lockfile
with CircleCI workflows, it must be in the first job run. Use sequential job execution to ensure the job that runs greenkeeper-lockfile
is always executed first. For example, if greenkeeper-lockfile
is run in the lockfile
job, all other jobs in the workflow must require the lockfile
job to finish before running:
workflows:
version: 2
workflow_name:
jobs:
- lockfile
- job1:
requires:
- lockfile
In order for this to work with TeamCity, the build configuration needs to set the following environment variables:
In order to support a CI service this package needs to extract some information from the environment.
greenkeeper/greenkeeper-lockfile
greenkeeper/lodash-4.0.0
Have a look at our Travis CI reference implementation.
Write a test that returns whether this package runs in your CI service’s environment and add it to our ci-services/tests.
In order to test this plugin with your own CI service install your fork directly from git.
+ npm i -g you/greenkeeper-lockfile#my-ci
- npm i -g greenkeeper-lockfile@1
We are looking forward to your contributions 💖 Don’t forget to add your CI service to the list at the top of this file.
FAQs
Your lockfile, up to date, all the time
The npm package greenkeeper-lockfile receives a total of 352 weekly downloads. As such, greenkeeper-lockfile popularity was classified as not popular.
We found that greenkeeper-lockfile demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.