From df062f283e584dc812fea41515b05c9ba3c433df Mon Sep 17 00:00:00 2001 From: Fred Emmott Date: Tue, 30 Apr 2019 08:47:11 -0700 Subject: [PATCH] Add `--hhvm-4.2-to-4.3` migration flag - `<>` => `!=` Also only test on 4.2 --- .travis.yml | 6 +----- src/__Private/MigrationCLI.hack | 7 +++++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7882ff486..a27d845fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,11 +2,7 @@ sudo: required language: generic services: docker env: - - HHVM_VERSION=latest - - HHVM_VERSION=nightly -matrix: - allow_failures: - - env: HHVM_VERSION=latest + - HHVM_VERSION=4.2-latest install: - docker pull hhvm/hhvm:$HHVM_VERSION script: diff --git a/src/__Private/MigrationCLI.hack b/src/__Private/MigrationCLI.hack index ecc6d250a..b337c751a 100644 --- a/src/__Private/MigrationCLI.hack +++ b/src/__Private/MigrationCLI.hack @@ -102,6 +102,13 @@ class MigrationCLI extends CLIWithRequiredArguments { 'Apply all migrations for moving from 3.23 to 3.24', '--hhvm-3.23-to-3.24', ), + CLIOptions\flag( + () ==> { + $this->migrations[] = PHPLessThanGreaterThanOperatorMigration::class; + }, + 'Apply all migrations for moving from 4.2 to 4.3', + '--hhvm-4.2-to-4.3', + ), CLIOptions\flag( () ==> { $this->migrations[] = PHPLessThanGreaterThanOperatorMigration::class;