Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a pager to the list command #732

Open
wants to merge 561 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
561 commits
Select commit Hold shift + click to select a range
37b8148
Release v3.65.0
pjcdawkins Feb 1, 2021
05b4785
Support a relative update download path
pjcdawkins Feb 3, 2021
2713c9a
Fix incomplete activity list example
pjcdawkins Feb 3, 2021
8a09736
Add a default timeout to all requests
pjcdawkins Feb 5, 2021
2ee848a
Release v3.65.1
pjcdawkins Feb 5, 2021
f0362bf
installer: support using a GitHub token to download assets
pjcdawkins Feb 10, 2021
581c34c
Also decode COMPOSER_AUTH
pjcdawkins Feb 10, 2021
480348e
Bump drush/drush from 8.4.5 to 8.4.6 (#1029)
dependabot[bot] Feb 10, 2021
5e34fd5
Replace http->tcp and https->ssl in proxy URLs (#1037)
pjcdawkins Feb 16, 2021
8974340
Fix activity log in PHP 8 (#1036)
pjcdawkins Feb 16, 2021
dda7ae5
Add help in self:release about obtaining a token from the GitHub CLI
pjcdawkins Feb 16, 2021
af88218
Release v3.65.2
pjcdawkins Feb 16, 2021
a685841
Fix error "SSH service not available" with build --clone
pjcdawkins Feb 23, 2021
d473432
Fix "Link not found: #manage-access" when checking environment roles
pjcdawkins Feb 25, 2021
960f10f
Only send the token to obtain the initial redirect
pjcdawkins Feb 25, 2021
94fe8d9
Fix --worker compatibility for various commands
pjcdawkins Feb 25, 2021
18fbcaf
Improve worker not found error message when the app name is incorrect
pjcdawkins Feb 25, 2021
7f9326f
Make the OAuth2 client ID configurable by env var
pjcdawkins Mar 5, 2021
321decd
Fix proxy settings in Api service (#1041)
pjcdawkins Mar 5, 2021
4f652e0
Merge pull request #1040 from pjcdawkins/installer-github-token
pjcdawkins Mar 5, 2021
fb46898
Release v3.65.3
pjcdawkins Mar 5, 2021
f8660e3
Support indexed SSH URLs (for apps with multiple instances)
pjcdawkins Mar 17, 2021
32237d9
Release v3.65.4
pjcdawkins Mar 17, 2021
ea3864c
Make the default timeout configurable through an env var
pjcdawkins Mar 30, 2021
9a7dccf
Add --default-branch option to the project:create command (#1042)
pjcdawkins Mar 30, 2021
ded7a40
Use http scheme for SOLR service tunnel URL (#1034)
SerheyDolgushev Mar 30, 2021
3235dc4
Bump drush/drush from 8.4.6 to 8.4.8 (#1045)
dependabot[bot] Mar 30, 2021
105f7b2
Release v3.66.0
pjcdawkins Mar 30, 2021
179acf1
Document PLATFORMSH_CLI_DEFAULT_TIMEOUT in the README
pjcdawkins Mar 30, 2021
78afe11
Bump phpseclib/phpseclib from 2.0.29 to 2.0.31 in /vendor-bin/box (#1…
dependabot[bot] Apr 9, 2021
136e5f1
Add a link to help on the --type option for the activity:list command…
pjcdawkins Apr 14, 2021
1721968
Set the default_branch to "main" by default for new projects (#1046)
pjcdawkins Apr 21, 2021
a3b83c8
SSH diagnostics: avoid recommending ssh-cert:load if it is not enabled
pjcdawkins Apr 30, 2021
35f31c6
Swap --access order in httpaccess example (fixes #1053)
pjcdawkins May 14, 2021
340ce00
Exclude lost+found directory to avoid permission error in mount:size …
pjcdawkins May 14, 2021
13c324a
Unhide the subscription:info command (#1052)
pjcdawkins May 14, 2021
dec94ff
Bump paragonie/random_compat from 2.0.19 to 2.0.20 (#1050)
dependabot[bot] May 14, 2021
79ffb29
Release v3.66.1
pjcdawkins May 14, 2021
de32882
Fix edge case bug (#1057)
matthiaz May 18, 2021
4d07556
Use the /users/me API if enabled
pjcdawkins Jun 3, 2021
8852a8b
Do not require an env when the branch command is used without arguments
pjcdawkins Jun 3, 2021
effb87a
Add a workaround for the default branch title in new projects (#1061)
pjcdawkins Jun 8, 2021
ed8192a
Update docker-credential-helpers; add Keychain support for Mac M1 (#1…
pjcdawkins Jun 8, 2021
76fe5bd
Release v3.66.2
pjcdawkins Jun 8, 2021
7baf098
Fix filename of arm64 Keychain credential helper
pjcdawkins Jun 9, 2021
95ce1d1
Release v3.66.3
pjcdawkins Jun 9, 2021
31943bf
Direct the user to Console in the web command (#1062)
pjcdawkins Jun 10, 2021
61cb452
Add the type in the environment:list (env) command
pjcdawkins Jun 3, 2021
bed5162
Allow the env type to be modified in the env:info command
pjcdawkins Jun 3, 2021
2d69c3a
Translate validation errors in the env:info command
pjcdawkins Jun 14, 2021
ac844a3
Add --type option to the branch command
pjcdawkins Jun 4, 2021
4c45454
Add a --type option to the push command
pjcdawkins Jun 14, 2021
485f8a9
Mention the type in the environment label
pjcdawkins Jun 14, 2021
952de43
Fix user:update to avoid recalculating environment access changes whi…
pjcdawkins Jun 14, 2021
615d6ae
Fall back to old /me API if there is no proxy URL configured
pjcdawkins Jun 15, 2021
ed345b4
Release v3.66.4
pjcdawkins Jun 15, 2021
646cbc5
Merge pull request #1058 from pjcdawkins/environment-types
pjcdawkins Jun 16, 2021
8783a09
Support new /users/me API in auth:info command
pjcdawkins Jun 15, 2021
34ae744
Support build-time environment-level variables (#1051)
pjcdawkins Jun 16, 2021
6544462
Release v3.67.0
pjcdawkins Jun 16, 2021
d40b0ed
Fix environment type not found when --type not specified in push command
pjcdawkins Jun 17, 2021
8789f82
Release v3.67.1
pjcdawkins Jun 17, 2021
f05fd7c
Pass --fail to curl utility commands (#1049)
pjcdawkins Jun 18, 2021
79545fe
Fix: user:add command was silently doing nothing during non-interacti…
pjcdawkins Jun 18, 2021
7fbaa00
Release v3.67.2
pjcdawkins Jun 18, 2021
85bfe28
Fix lack of interactive authentication when identifying a project fro…
pjcdawkins Jun 24, 2021
370b2b1
Make the user agent configurable (#1064)
pjcdawkins Jun 24, 2021
cd8c27c
Fix storage cost estimate in 'create' command
pjcdawkins Jul 5, 2021
8328b56
Release v3.67.3
pjcdawkins Jul 5, 2021
cb5ecda
Avoid showing mfa_enabled property by default in auth:info command
pjcdawkins Jul 5, 2021
ae6d623
Add --no-clone-parent option to the push command
pjcdawkins Jul 7, 2021
820b684
Release v3.67.4
pjcdawkins Jul 7, 2021
e8656b4
Fix variable:create when an environment other than the current branch…
pjcdawkins Jul 9, 2021
89e8a0a
Release v3.67.5
pjcdawkins Jul 9, 2021
4ee6731
Add detection.api_domain_suffix config to ignore 401s from alternativ…
pjcdawkins Aug 13, 2021
02fc876
Remove --fail by default in curl commands (it's now a flag)
pjcdawkins Aug 13, 2021
92e93cd
Explain the error about visible_build in the variable:create command …
pjcdawkins Aug 13, 2021
ca7dec9
Release v3.67.6
pjcdawkins Aug 13, 2021
c73344a
Fix duplicates when listing multiple activity statuses
pjcdawkins Aug 17, 2021
5a0e2c8
Add environment types support to the user commands (#1067)
pjcdawkins Aug 23, 2021
3414961
Rework environment:delete --merged to not require a local Git reposit…
pjcdawkins Aug 23, 2021
f4931a2
Refresh the cache if a specified environment is not found in environm…
pjcdawkins Aug 23, 2021
78de972
Release v3.68.0
pjcdawkins Aug 23, 2021
f6f3777
Highlight new branch type in push command
pjcdawkins Sep 1, 2021
9de4629
Fix inviting a user with a type-based permission
pjcdawkins Sep 7, 2021
45f5286
Removing 'master' in platform get command (#1077)
matthiaz Sep 7, 2021
ea13be0
Add organization commands
pjcdawkins Jul 1, 2021
7ce233f
Convert user refs in organization:info command
pjcdawkins Jul 5, 2021
62ef589
Add organization:create command
pjcdawkins Jul 7, 2021
a37f6e8
Add interactive choice for organization:info
pjcdawkins Aug 2, 2021
942ae48
Adapt org:info to the table format
pjcdawkins Aug 2, 2021
c6c1c5e
Add organization:users command to list users
pjcdawkins Aug 3, 2021
43b5e5c
Add org:user:add command
pjcdawkins Aug 3, 2021
ecdcda6
Add org:user:update command
pjcdawkins Aug 3, 2021
cb54dc6
Add org:user:delete command
pjcdawkins Aug 3, 2021
f273718
Add org:user:get command to view a single user
pjcdawkins Aug 4, 2021
6393e5c
Add org:user command descriptions
pjcdawkins Aug 4, 2021
72be840
Add --org (-o) option in addition to --name
pjcdawkins Aug 4, 2021
89931da
Add api.organizations feature flag
pjcdawkins Aug 4, 2021
61af2a0
Add --org filter to the projects (pro) command
pjcdawkins Aug 4, 2021
3bf8b32
Add org:subscription:list command
pjcdawkins Aug 4, 2021
c3e503c
Show an "owner" in the org:info command
pjcdawkins Aug 4, 2021
442b61a
Clarify error when no --name is provided and the user has no orgs
pjcdawkins Aug 13, 2021
94b8609
Ensure api.organizations config has a default
pjcdawkins Aug 13, 2021
f3f1637
Adapt project:create (create) command for organizations
pjcdawkins Aug 13, 2021
b843c37
Remove Commands section in README
pjcdawkins Aug 13, 2021
bca437e
Fix help text (--name -> --org)
pjcdawkins Aug 17, 2021
f5d5cb3
Improve org:user:add (interactive email input and invitation state re…
pjcdawkins Aug 17, 2021
0351759
Improve org:user:update (interactive selection)
pjcdawkins Aug 17, 2021
0b98b98
Detect organization ID format
pjcdawkins Aug 17, 2021
c0ad3a1
Implement updating an organization
pjcdawkins Aug 18, 2021
3150b09
Fix org:info validation error detail
pjcdawkins Aug 18, 2021
186e6ce
Refactor other organization command examples to not need --org
pjcdawkins Aug 18, 2021
8b709af
Add organization address and profile commands
pjcdawkins Aug 18, 2021
659628b
Namespace address and profile under :billing
pjcdawkins Aug 18, 2021
e9f719a
Load the subscription via the organizations API if possible in subscr…
pjcdawkins Aug 18, 2021
7bdc4f6
Add company_name as a writable profile property
pjcdawkins Aug 19, 2021
6a59bc1
organizations: filter options by HAL link name
pjcdawkins Aug 24, 2021
c5beb95
Auto-create the organization before creating a project
pjcdawkins Sep 1, 2021
40ccefe
Always confirm before creating a new organization
pjcdawkins Sep 1, 2021
fd61c99
Include organization:list in the commands that are disabled by config
pjcdawkins Sep 8, 2021
780ef31
Simplify ULID match
pjcdawkins Sep 8, 2021
5c52b88
Allow all scalar config to be overridden by environment variables
pjcdawkins Sep 8, 2021
1d92158
Mark the organizations API as disabled by default
pjcdawkins Sep 8, 2021
a07dc3d
Merge branch 'organizations' into 3.x
pjcdawkins Sep 8, 2021
606bed4
Release v3.69.0
pjcdawkins Sep 8, 2021
53f9cf4
Clarify a comment in loadSubscription()
pjcdawkins Sep 8, 2021
adbbde1
Enable use of the organizations API by default
pjcdawkins Sep 9, 2021
3927b7a
Release v3.69.1
pjcdawkins Sep 9, 2021
c26cd2f
Fix call to disabled organization:create command from project:create
pjcdawkins Sep 10, 2021
7e61ae4
Fix: the type of "storage" and "environments" should be integer when …
pjcdawkins Sep 10, 2021
9498696
Release v3.69.2
pjcdawkins Sep 10, 2021
dfb1a4c
Improve labelling for org:user:get
pjcdawkins Sep 15, 2021
fb4b752
Add org:curl hidden utility command
pjcdawkins Sep 28, 2021
8545200
Release v3.70.0
pjcdawkins Sep 29, 2021
8a4b2c0
Update client to fix "Link not found: self" error during address changes
pjcdawkins Oct 8, 2021
8f8aab6
Update client to fix error while resolving empty references
pjcdawkins Oct 8, 2021
9c0af21
Fix notices when finding the next version in self:release
pjcdawkins Oct 8, 2021
7a4b6f8
Release v3.70.1
pjcdawkins Oct 8, 2021
a944e41
Remove references to Hipchat (#1084)
pjcdawkins Nov 1, 2021
5c1d723
Mention GitLab login in README
pjcdawkins Nov 1, 2021
bd7e615
Ignore 400 errors from getCurrentDeployment() in drush-aliases command
pjcdawkins Nov 1, 2021
7e361a5
Add detailed help to the ssh-cert:load command
pjcdawkins Nov 2, 2021
0824c35
Update client library to fix handling of project invitation conflicts
pjcdawkins Nov 18, 2021
aeaac63
Allow updates to multiple address properties (#1080)
pjcdawkins Nov 18, 2021
8a00e7f
Fix error message for incomplete addresses
pjcdawkins Nov 18, 2021
ae31558
Release v3.71.0
pjcdawkins Nov 18, 2021
075324f
Display the organization in the projects list (#1086)
pjcdawkins Dec 6, 2021
fca6377
Release v3.72.0
pjcdawkins Dec 7, 2021
777813e
Update dependencies
pjcdawkins Dec 8, 2021
33e6b69
Fix test for config environment overrides now that most keys can be o…
pjcdawkins Dec 8, 2021
d4fb33f
Send PHP errors to stderr not stdout, and disable deprecation notices…
pjcdawkins Dec 10, 2021
4446cf6
Release v3.72.1
pjcdawkins Dec 10, 2021
cffb80f
Don't generate an alias for an inactive DG2 target (#1093)
Kazanir Dec 16, 2021
108a530
Release v3.72.2
Dec 17, 2021
0b57429
Add optional created_at column to the project:list (pro) command
pjcdawkins Dec 23, 2021
d24f3b7
:sparkles: Direct docs search to docs site (#1098)
CollierCZ Dec 28, 2021
541a851
Fix TypeError in domain:add command error handling (PHP 8+)
pjcdawkins Dec 28, 2021
cd94b62
Add delimiter to read environment variables over SSH without pollutio…
pjcdawkins Dec 28, 2021
4f3fd29
Paginate the projects list (#1090)
pjcdawkins Dec 28, 2021
c59b249
Add an env:curl command (#1088)
pjcdawkins Dec 28, 2021
e698f33
Allow unsetting the remote project (#1020)
pjcdawkins Dec 28, 2021
c33af34
Remove workaround for an old PHP pcre.jit bug, fixed since PHP 7.3.11…
pjcdawkins Dec 28, 2021
b832888
Add a warning when an API token is set on the container (#1017)
pjcdawkins Dec 28, 2021
a4edce5
Release v3.73.0
pjcdawkins Dec 28, 2021
da6859e
Show release notes for each version on update
pjcdawkins Dec 28, 2021
3818c4a
Release v3.73.1
pjcdawkins Dec 28, 2021
c1f1f9d
Fix versions in new release note format
pjcdawkins Dec 28, 2021
356615f
Support "require" and "repositories" keys for PHP dependencies
pjcdawkins Dec 30, 2021
bd04d29
Release v3.73.2
pjcdawkins Dec 30, 2021
cc0bfe1
self:release: Create a separate changelog file for each new release
pjcdawkins Jan 3, 2022
cb21dfb
Fix environment variable prefix for white labels in ssh-cert:load help
pjcdawkins Jan 4, 2022
e06591c
Avoid generating legacy release notes for patch versions
pjcdawkins Jan 4, 2022
4cf3997
Add org:create and org:delete commands
pjcdawkins Nov 19, 2021
afea897
Add more detailed help to org:create (including the legacy API warning)
pjcdawkins Nov 19, 2021
29ed163
Block deleting while the organization owns projects
pjcdawkins Nov 19, 2021
b2976da
Add `auth:info id --no-auto-login` as a convenience for scripts to ch…
pjcdawkins Jan 6, 2022
5fbd954
Merge branch 'organization-lifecycle' into 3.x
pjcdawkins Jan 12, 2022
7da7156
Remove legacy release notes generation
pjcdawkins Jan 13, 2022
979b0cc
Release v3.74.0
pjcdawkins Jan 13, 2022
d0fbb43
Ensure organization:create can be disabled by the feature flag
pjcdawkins Jan 13, 2022
ce35858
Print default environment/organization selection to STDERR
pjcdawkins Jan 17, 2022
1efe5d0
Allow using the cache for finding an environment by machine name
pjcdawkins Jan 17, 2022
2d83190
Add repo:read (read) command, combining repo:ls and repo:cat
pjcdawkins Jan 6, 2022
509cf08
Avoid printing all release notes when upgrading from a dev version
pjcdawkins Jan 22, 2022
271f286
Avoid asking to create an SSH config file automatically, if the file …
pjcdawkins Jan 22, 2022
e43c681
Use composer/ca-bundle to set up CA certificates
pjcdawkins Jan 22, 2022
9537234
Release v3.75.0
pjcdawkins Jan 22, 2022
0da8226
Add the bundled cacert.pem to the phar build
pjcdawkins Jan 22, 2022
ba1eea8
Release v3.75.1
pjcdawkins Jan 22, 2022
a3a738c
Use CA bundle detection and fallback in additional places: the creden…
pjcdawkins Jan 23, 2022
63a71a3
Bump drush/drush from 8.4.8 to 8.4.10 (#1102)
dependabot[bot] Jan 23, 2022
d21d5c5
Use CA bundle detection in the installer
pjcdawkins Jan 23, 2022
852377c
Merge pull request #1107 from pjcdawkins/updater-ca-bundle
pjcdawkins Jan 24, 2022
70287d5
Release v3.75.2
pjcdawkins Jan 24, 2022
421ff5e
Fix ConsoleLogger TypeError in Api class due to null stdErr property
pjcdawkins Jan 24, 2022
973ed98
Release v3.75.3
pjcdawkins Jan 24, 2022
55ccba5
Add country support to org:create and org:info commands (#1108)
pjcdawkins Jan 28, 2022
5194d3b
Unhide the org:create command and improve the warning
pjcdawkins Jan 28, 2022
17f543d
Unhide the org:delete command
pjcdawkins Jan 28, 2022
3a17013
Release v3.76.0
pjcdawkins Jan 28, 2022
bbcb554
Fix GitLab CI build, using PHP 7.4 (for Box compatibility) [skip chan…
pjcdawkins Jan 31, 2022
4caa509
Set up pushing to Platform.sh in GitLab CI
pjcdawkins Jan 31, 2022
91fa917
Suppress browser stderr messages unless in -vv mode
pjcdawkins Jan 31, 2022
a1fe8cf
Fetch organization-specific plan and regions lists when creating a pr…
pjcdawkins Feb 8, 2022
3454a54
Release v3.76.1
pjcdawkins Feb 8, 2022
bd16777
Fix auto login in interactive mode
pjcdawkins Feb 15, 2022
36644c1
Release v3.76.2
pjcdawkins Feb 15, 2022
eff1a9d
Fix changelog typo [skip changelog]
pjcdawkins Feb 16, 2022
fb73f35
Use the newer backups API for listing
pjcdawkins Feb 22, 2022
3275416
Release v3.77.0
pjcdawkins Feb 23, 2022
63bf11f
Sort the result in the backup:list (backups) command to work around a…
pjcdawkins Mar 2, 2022
663ad80
Use the organizations API more consistently in the subscription:info …
pjcdawkins Apr 7, 2022
dc06a21
Dependency updates
pjcdawkins Apr 11, 2022
f92ff45
Improve error for empty environments in repo: commands
pjcdawkins Apr 18, 2022
41d63d3
Merge pull request #1120 from pjcdawkins/subscription-info-use-organi…
pjcdawkins Apr 18, 2022
c824b2e
Display more information about regions in the project:create command …
pjcdawkins Apr 20, 2022
6afd491
Improve environment:delete command (#1111)
pjcdawkins Apr 20, 2022
c3dd31e
Release v3.78.0
pjcdawkins Apr 20, 2022
5e4cec8
Fix activity pagination skipping items created at the same second (ad…
NitriKx Mar 11, 2022
d086929
Fix too many API calls in backup:restore command when finding a backu…
pjcdawkins Apr 27, 2022
7724105
Support multiple types in --type when listing activities, and add an …
pjcdawkins Apr 25, 2022
6d6f418
Release v3.79.0
pjcdawkins Apr 27, 2022
e0736fb
Fix error in activity commands: "The value of option --type is not an…
pjcdawkins Apr 29, 2022
97fcdbd
Release v3.79.1
pjcdawkins Apr 29, 2022
9439e55
Fix 'The "incomplete" option does not exist' in the integration:activ…
pjcdawkins May 3, 2022
c7a0a34
Release v3.79.2
pjcdawkins May 3, 2022
261e43b
Fix wildcard matching for environment IDs that contain a / character
pjcdawkins May 3, 2022
9e11983
Further environment:delete output improvements
pjcdawkins May 3, 2022
8815ad5
Fix cleanup-platform.sh script to avoid CI errors when there are no m…
pjcdawkins May 3, 2022
48b0f45
Fix organization support for deleting projects (#1127)
pjcdawkins May 10, 2022
a4afc8a
Release v3.79.3
pjcdawkins May 10, 2022
811b9cb
Return a 0 exit code environment:delete if no apparent error occurred
pjcdawkins May 10, 2022
0691584
Test in GitLab CI
pjcdawkins Jan 31, 2022
43aac1c
Allow pagination to be disabled in the project:list (projects) command.
pjcdawkins May 13, 2022
8ed3192
Error when a conditional field is used in the wrong context (#1126)
pjcdawkins May 13, 2022
5912b0c
Always use the API gateway URL ("external API proxy") when configured
pjcdawkins May 17, 2022
2136745
Allow manual override of the region ID in the project:create (create)…
pjcdawkins May 17, 2022
47e3232
Handle the "cancelled" state in the activity:log command (#1129)
pjcdawkins May 17, 2022
0805e42
Release v3.79.4
pjcdawkins May 17, 2022
60c621b
Fix "Call to a member function setApiUrl() on bool"
pjcdawkins May 17, 2022
71755b2
Fix potentially not using the cache when a project hostname is known
pjcdawkins May 17, 2022
af265fb
Fix: "pagination" section in config.yaml could not override the default
pjcdawkins May 17, 2022
36e74ea
Release v3.79.5
pjcdawkins May 17, 2022
d4ea49b
Update client to fix SSH URL parsing
pjcdawkins May 17, 2022
6ee37bc
Release v3.79.6
pjcdawkins May 17, 2022
1a1121e
Ensure the activity state is refreshed after the log stream ends
pjcdawkins May 17, 2022
8a7565e
Avoid PHP errors caused by other invalid config when processing envir…
pjcdawkins May 18, 2022
e228b84
Release v3.79.7
pjcdawkins May 18, 2022
f56e68e
Add a pager to the list command
pjcdawkins Jul 9, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
# Enable weekly automated version updates for Composer dependencies.
- package-ecosystem: composer
directory: /
schedule:
interval: weekly
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: CI

on:
- pull_request

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"

- uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-

- name: Install dependencies
run: |
composer install --no-dev --no-interaction
cd vendor-bin/box
composer install --no-interaction

- name: Symlink vendor/bin/box
run: |
mkdir -p vendor/bin
ln -s "$(realpath vendor-bin/box/vendor/bin/box)" vendor/bin/box

- name: Build platform.phar
env:
CI_COMMIT_SHA: ${{ github.event.after }}
CI_COMMIT_REF_NAME: ${{ github.head_ref }}
run: |
CI_COMMIT_SHORT_SHA=$(echo $CI_COMMIT_SHA | head -c8)
./bin/platform self:build --no-composer-rebuild --yes --replace-version "$CI_COMMIT_REF_NAME"-"$CI_COMMIT_SHORT_SHA" --output platform.phar

- uses: actions/upload-artifact@v2
with:
name: cli-phar
path: platform.phar
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
/vendor-bin/*/vendor
/*.phar
.idea/
/release-changelog.md
/release-changelog*.md
/local-php-security-checker
85 changes: 84 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,47 @@
stages:
- test
- build
- review
- cleanup

variables:
COMPOSER_HOME: /cache/composer

# The PF_PROJECT_ID is required.
# PF_PROJECT_ID:
PF_PARENT_ENV: 3.x
PF_NO_CLONE_PARENT: 1 # CLI environments are stateless, so no need for data cloning

quick-tests:
stage: test
image: php:7.4-cli
before_script:
- apt-get update
- apt-get install zip unzip git lsof -y
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
- php composer-setup.php
- mkdir -p /cache/composer/bin && chmod +x composer.phar && mv composer.phar /cache/composer/bin/composer
script:
- export PATH="/cache/composer/bin:$PATH"
# No Composer scripts, because Box isn't needed (and Box needs PHP 7.4).
- composer install --no-interaction --no-scripts
- scripts/test/security.sh
- scripts/test/unit.sh
- scripts/test/offline.sh

build:
image: composer
stage: build
needs:
- quick-tests
image: php:7.4-cli
before_script:
- apt-get update
- apt-get install zip unzip
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
- php composer-setup.php
- mkdir -p /cache/composer/bin && chmod +x composer.phar && mv composer.phar /cache/composer/bin/composer
script:
- export PATH="/cache/composer/bin:$PATH"
- composer install --no-dev --no-interaction
- |
cd vendor-bin/box
Expand All @@ -15,3 +53,48 @@ build:
artifacts:
expose_as: 'cli-phar'
paths: ['platform.phar']

push-review-env:
image: pjcdawkins/platformsh-cli
script:
- bash scripts/gitlab-ci/push-platform.sh
needs:
- quick-tests
stage: review
artifacts:
reports:
dotenv: environment.env # makes PRIMARY_URL available
environment:
name: review/$CI_COMMIT_REF_SLUG
url: $PRIMARY_URL
auto_stop_in: 7 day
on_stop: delete-review-env
only:
- branches

cleanup-review-envs:
image: pjcdawkins/platformsh-cli
script:
- bash scripts/gitlab-ci/cleanup-platform.sh
needs:
- push-review-env
stage: cleanup
allow_failure: true

delete-review-env:
image: pjcdawkins/platformsh-cli
script:
- bash scripts/gitlab-ci/delete-platform.sh
stage: cleanup
when: manual
needs:
- push-review-env
environment:
name: review/$CI_COMMIT_REF_SLUG
action: stop
only:
- branches
except:
- 3.x
- 4.x
- master
7 changes: 4 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: php
dist: trusty
dist: xenial

php: '7.4'
env: TEST_SCRIPT=scripts/test/unit.sh
Expand Down Expand Up @@ -29,9 +29,10 @@ matrix:

- php: '7.4'
env: TEST_SCRIPT=scripts/test/build-and-install.sh
- php: '7.4'
env: TEST_SCRIPT=scripts/test/offline.sh

# The "slow" test doesn't work on 7.4 yet because of Drush archive errors.
- php: '7.3'
- php: '7.4'
env: TEST_SCRIPT=scripts/test/slow.sh

fast_finish: true
Expand Down
Loading