1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 12:24:49 +01:00
Commit Graph

9 Commits

Author SHA1 Message Date
Barney Laurance
d44be5eb9c Allow deploying phar to any github repository
Potentially useful for fork owners to test out phar deployment without affecting
the official psalm/phar repo.

To enable phar deployments from your own fork of psalm:

- Enable builds with Travis
- Create a github repository to hold recieve the built phar packages
- Create a new dedicated github user for the deployments
- From your main github account, invite the new user to collobrate on the phar repository
- From the new user's account, accept the invitation
- From the new user's account, obtain a 'new personal access token' ( https://github.com/settings/tokens/new ) with repo scope

- In travis settings for your fork of psalm, set two environment
variables:

- PHAR_REPO_SLUG - this should be the name the phar repo you set up earlier, e.g. fred/phar
- GITHUB_TOKEN - This is the personal access token of the new user you obtained above. Anyone who knows this token
                 can push to the repository, so keep it secret. Make sure 'Display value in build log' is
                 switched off'

Now any push to branches in your fork of psalm, should automatically
result in a commit containing the phar file in your phar repository.
2019-06-08 09:46:08 -04:00
Barney Laurance
91c11a0443 Simpler globbing for travis deploy
Previous versions failed. This will delete all files except hidden files. The only hidden files that we expect to exist at present are the .git directory and .gitignore
2019-06-07 08:33:02 -04:00
Barney Laurance
80837267e7 Fix syntax error in travis deploy script
This should resolve the build failure https://travis-ci.org/vimeo/psalm/jobs/542700463
2019-06-07 07:49:07 -04:00
Barney Laurance
fee7a7be43 Set travis deploy phar script to exit at first error 2019-06-07 06:52:07 -04:00
Barney Laurance
eecd21a7d5 Add executable PHP files to PHAR distribution
Previously a user of the phar distribution would have to invoke psalm as
`vendor/bin/psalm.phar`. This is different to the command given in
the psalm documentation, `vendor/bin/psalm`

I also copied all files from the psalm/phar repo into
assets/psalm-phar, so that development can be concentrated in this repo.

The travis-deploy-phar.sh should copy any changes made back into the
psalm/phar.git repo.
2019-06-07 06:52:07 -04:00
Bruce Weirdan
e6f4f27498 Simplify build config by using repo filter
Also deploy signature to psalm/phar repo (because why not)
2019-06-02 11:25:53 -04:00
Bruce Weirdan
96521a6469 Rearrange build/sign/deploy
- Phar signing moved to build-phar.sh (conditional on gpg keys
availability)
- Tagged phar releases moved to travis-deploy-phar.sh
- `travis-deploy-phar.sh` is now triggered via `script` deploy provider
2019-06-02 11:25:53 -04:00
Brown
3a11e1ff5b Set better permissions on Travis deploy script 2019-03-25 16:32:36 -04:00
Brown
bdf0889b4a Fix phar deployment 2019-03-25 13:40:17 -04:00