Skip to content

Commit

Permalink
Merge pull request #18 from GsDevKit/dev
Browse files Browse the repository at this point in the history
Fix Issue #17, refactor for improved test access and clarity
  • Loading branch information
dalehenrich committed Oct 7, 2015
2 parents 7e202e2 + c1641a1 commit abf78df
Show file tree
Hide file tree
Showing 20 changed files with 256 additions and 148 deletions.
82 changes: 41 additions & 41 deletions .travis.yml
Expand Up @@ -5,44 +5,44 @@ env:

- GS_VERSION=3.2.2 UPGRADE_TEST=TEST_ISSUE_3

- GS_VERSION=2.4.4.1 UPGRADE_TEST=TEST_FILETREE
- GS_VERSION=2.4.5.2 UPGRADE_TEST=TEST_FILETREE
- GS_VERSION=3.0.1 UPGRADE_TEST=TEST_FILETREE
- GS_VERSION=3.2.2 UPGRADE_TEST=TEST_FILETREE
# - GS_VERSION=2.4.4.1 UPGRADE_TEST=TEST_FILETREE
- GS_VERSION=2.4.6 UPGRADE_TEST=TEST_FILETREE
# - GS_VERSION=3.0.1 UPGRADE_TEST=TEST_FILETREE
- GS_VERSION=3.2.9 UPGRADE_TEST=TEST_FILETREE

- GS_VERSION=2.4.4.1 UPGRADE_TEST=TEST_GLASS1
# - GS_VERSION=2.4.4.1 UPGRADE_TEST=TEST_GLASS1
# - GS_VERSION=2.4.4.7 UPGRADE_TEST=TEST_GLASS1
# - GS_VERSION=2.4.5 UPGRADE_TEST=TEST_GLASS1
- GS_VERSION=2.4.5.2 UPGRADE_TEST=TEST_GLASS1
- GS_VERSION=2.4.6 UPGRADE_TEST=TEST_GLASS1
# - GS_VERSION=3.0.1 UPGRADE_TEST=TEST_GLASS1
# - GS_VERSION=3.1.0.2 UPGRADE_TEST=TEST_GLASS1
# - GS_VERSION=3.1.0.4 UPGRADE_TEST=TEST_GLASS1
# - GS_VERSION=3.1.0.5 UPGRADE_TEST=TEST_GLASS1
- GS_VERSION=3.1.0.6 UPGRADE_TEST=TEST_GLASS1
# - GS_VERSION=3.2.0 UPGRADE_TEST=TEST_GLASS1
# - GS_VERSION=3.2.1 UPGRADE_TEST=TEST_GLASS1
- GS_VERSION=3.2.2 UPGRADE_TEST=TEST_GLASS1
- GS_VERSION=3.2.9 UPGRADE_TEST=TEST_GLASS1

- GS_VERSION=2.4.5.2 UPGRADE_TEST=TEST_GREASE_GLASS1
- GS_VERSION=2.4.6 UPGRADE_TEST=TEST_GREASE_GLASS1
- GS_VERSION=3.1.0.6 UPGRADE_TEST=TEST_GREASE_GLASS1
- GS_VERSION=3.2.2 UPGRADE_TEST=TEST_GREASE_GLASS1

- GS_VERSION=2.4.4.1 UPGRADE_TEST=TEST_GSDEVKIT
- GS_VERSION=2.4.4.7 UPGRADE_TEST=TEST_GSDEVKIT
# - GS_VERSION=2.4.5 UPGRADE_TEST=TEST_GSDEVKIT
- GS_VERSION=2.4.5.2 UPGRADE_TEST=TEST_GSDEVKIT
- GS_VERSION=3.0.1 UPGRADE_TEST=TEST_GSDEVKIT
- GS_VERSION=3.1.0.2 UPGRADE_TEST=TEST_GSDEVKIT
# - GS_VERSION=3.1.0.4 UPGRADE_TEST=TEST_GSDEVKIT
# - GS_VERSION=3.1.0.5 UPGRADE_TEST=TEST_GSDEVKIT
- GS_VERSION=3.1.0.6 UPGRADE_TEST=TEST_GSDEVKIT
# - GS_VERSION=3.2.0 UPGRADE_TEST=TEST_GSDEVKIT
- GS_VERSION=3.2.1 UPGRADE_TEST=TEST_GSDEVKIT
- GS_VERSION=3.2.2 UPGRADE_TEST=TEST_GSDEVKIT

- GS_VERSION=2.4.5.2 UPGRADE_TEST=UPGRADE_GREASE
- GS_VERSION=3.2.9 UPGRADE_TEST=TEST_GREASE_GLASS1

# - GS_VERSION=2.4.4.1 UPGRADE_TEST=TEST_GSDEVKIT
# - GS_VERSION=2.4.4.7 UPGRADE_TEST=TEST_GSDEVKIT
## - GS_VERSION=2.4.5 UPGRADE_TEST=TEST_GSDEVKIT
# - GS_VERSION=2.4.5.2 UPGRADE_TEST=TEST_GSDEVKIT
# - GS_VERSION=3.0.1 UPGRADE_TEST=TEST_GSDEVKIT
# - GS_VERSION=3.1.0.2 UPGRADE_TEST=TEST_GSDEVKIT
## - GS_VERSION=3.1.0.4 UPGRADE_TEST=TEST_GSDEVKIT
## - GS_VERSION=3.1.0.5 UPGRADE_TEST=TEST_GSDEVKIT
# - GS_VERSION=3.1.0.6 UPGRADE_TEST=TEST_GSDEVKIT
## - GS_VERSION=3.2.0 UPGRADE_TEST=TEST_GSDEVKIT
# - GS_VERSION=3.2.1 UPGRADE_TEST=TEST_GSDEVKIT
# - GS_VERSION=3.2.2 UPGRADE_TEST=TEST_GSDEVKIT

- GS_VERSION=2.4.6 UPGRADE_TEST=UPGRADE_GREASE
- GS_VERSION=3.1.0.6 UPGRADE_TEST=UPGRADE_GREASE
- GS_VERSION=3.2.2 UPGRADE_TEST=UPGRADE_GREASE
- GS_VERSION=3.2.9 UPGRADE_TEST=UPGRADE_GREASE

# - GS_VERSION=2.4.5.2 UPGRADE_TEST=TEST_ZINC_2XX # see https://github.com/GsDevKit/zinc/issues/53
# - GS_VERSION=3.1.0.6 UPGRADE_TEST=TEST_ZINC_2XX # see https://github.com/GsDevKit/zinc/issues/53
Expand All @@ -51,31 +51,31 @@ env:
# - GS_VERSION=3.1.0.6 UPGRADE_TEST=TEST_SEASIDE31X # see https://github.com/GsDevKit/zinc/issues/53
# - GS_VERSION=3.2.2 UPGRADE_TEST=TEST_SEASIDE31X # see https://github.com/GsDevKit/zinc/issues/53

- GS_VERSION=2.4.5.2 UPGRADE_TEST=ALL_UPGRADE
- GS_VERSION=2.4.6 UPGRADE_TEST=ALL_UPGRADE
- GS_VERSION=3.1.0.6 UPGRADE_TEST=ALL_UPGRADE
- GS_VERSION=3.2.2 UPGRADE_TEST=ALL_UPGRADE
- GS_VERSION=3.2.9 UPGRADE_TEST=ALL_UPGRADE

- GS_VERSION=2.4.4.1 UPGRADE_TEST=UPGRADE_METACELLO
- GS_VERSION=2.4.5.2 UPGRADE_TEST=UPGRADE_METACELLO
# - GS_VERSION=2.4.4.1 UPGRADE_TEST=UPGRADE_METACELLO
- GS_VERSION=2.4.6 UPGRADE_TEST=UPGRADE_METACELLO
- GS_VERSION=3.1.0.6 UPGRADE_TEST=UPGRADE_METACELLO
- GS_VERSION=3.2.2 UPGRADE_TEST=UPGRADE_METACELLO
- GS_VERSION=3.2.9 UPGRADE_TEST=UPGRADE_METACELLO

- GS_VERSION=2.4.5.2 UPGRADE_TEST=UPGRADE_GLASS1
- GS_VERSION=2.4.6 UPGRADE_TEST=UPGRADE_GLASS1
- GS_VERSION=3.1.0.6 UPGRADE_TEST=UPGRADE_GLASS1
- GS_VERSION=3.2.2 UPGRADE_TEST=UPGRADE_GLASS1
- GS_VERSION=3.2.9 UPGRADE_TEST=UPGRADE_GLASS1

- GS_VERSION=2.4.5.2 UPGRADE_TEST=UPGRADE_GLASS1_GsDevKit
- GS_VERSION=3.1.0.6 UPGRADE_TEST=UPGRADE_GLASS1_GsDevKit
- GS_VERSION=3.2.2 UPGRADE_TEST=UPGRADE_GLASS1_GsDevKit
# - GS_VERSION=2.4.5.2 UPGRADE_TEST=UPGRADE_GLASS1_GsDevKit
# - GS_VERSION=3.1.0.6 UPGRADE_TEST=UPGRADE_GLASS1_GsDevKit
# - GS_VERSION=3.2.2 UPGRADE_TEST=UPGRADE_GLASS1_GsDevKit

- GS_VERSION=2.4.5.2 UPGRADE_TEST=UPGRADE_GLASS
- GS_VERSION=3.1.0.2 UPGRADE_TEST=UPGRADE_GLASS
- GS_VERSION=2.4.6 UPGRADE_TEST=UPGRADE_GLASS
# - GS_VERSION=3.1.0.2 UPGRADE_TEST=UPGRADE_GLASS
- GS_VERSION=3.1.0.6 UPGRADE_TEST=UPGRADE_GLASS
- GS_VERSION=3.2.2 UPGRADE_TEST=UPGRADE_GLASS
- GS_VERSION=3.2.9 UPGRADE_TEST=UPGRADE_GLASS

- GS_VERSION=2.4.4.1 UPGRADE_TEST=UPGRADE_GsDevKit
- GS_VERSION=3.1.0.6 UPGRADE_TEST=UPGRADE_GsDevKit
- GS_VERSION=3.2.2 UPGRADE_TEST=UPGRADE_GsDevKit
# - GS_VERSION=2.4.4.1 UPGRADE_TEST=UPGRADE_GsDevKit
# - GS_VERSION=3.1.0.6 UPGRADE_TEST=UPGRADE_GsDevKit
# - GS_VERSION=3.2.2 UPGRADE_TEST=UPGRADE_GsDevKit

before_script:
- export BASE="$(pwd)"
Expand Down
Binary file removed monticello/GsUpgrader-Core-dkh.72.mcz
Binary file not shown.
Binary file added monticello/GsUpgrader-Core-dkh.91.mcz
Binary file not shown.
@@ -0,0 +1,6 @@
projects
upgradeGLASS: alternateConfigurationRepositoryDirectoryPath
"Ensure that your image is upgraded to GLASS1.0-beta.9.3.
Load GLASS configurations from alternateConfigurationRepositoryDirectoryPath"

self new upgradeGLASS: alternateConfigurationRepositoryDirectoryPath
@@ -0,0 +1,6 @@
testing
greaseConfigurationRegistered
(self metacelloClass image
configuration: [ :spec | spec name = 'Grease' ];
list) do: [ :greaseSpec | ^ true ].
^ false
@@ -0,0 +1,9 @@
testing
gsDevKitLocked
(self metacelloClass registry
baseline: [ :spec | spec name = 'GsDevKit' ];
list)
do: [ :gsDevKitSpec |
gsDevKitSpec isLocked
ifTrue: [ ^ true ] ].
^ false
@@ -0,0 +1,16 @@
loading
loadGrease
| metacello |
self upgradeMetacello.
metacello := self greaseLocked
ifTrue: [ self metacelloClass registry ]
ifFalse: [
self metacelloClass new
repository: self greaseRepositoryDescription;
yourself ].
metacello baseline: 'Grease'.
self
deploy: [
self log: 'Installing Grease'.
metacello copy get.
metacello copy load ]

This file was deleted.

Expand Up @@ -2,13 +2,16 @@ loading
loadGsDevKit
| metacello |
self upgradeMetacello.
metacello := self metacelloClass new
baseline: 'GsDevKit';
repository: self gsDevKitRepositoryDescription;
yourself.
metacello := self gsDevKitLocked
ifTrue: [ self metacelloClass registry ]
ifFalse: [
self metacelloClass new
repository: self gsDevKitRepositoryDescription;
yourself ].
metacello baseline: 'GsDevKit'.
self
deploy: [
"May be running with an old version of Metacello so copy the Metacello instance"
self log: 'Installing GsDevKit'.
metacello
get;
load ]
metacello copy get.
metacello copy load ]
Expand Up @@ -5,6 +5,12 @@ lockGrease
self log: 'Locking Grease'.
self
deploy: [
self greaseConfigurationRegistered
ifTrue: [
"workaround for https://github.com/dalehenrich/metacello-work/issues/352"
self metacelloClass image
configuration: 'Grease';
unregister ].
self metacelloClass new
baseline: 'Grease';
repository: self greaseRepositoryDescription;
Expand Down
@@ -0,0 +1,8 @@
private
logPackageReport: message
| strm |
strm := WriteStream on: String new.
self packageReportOn: strm.
Transcript
cr;
show: strm contents
@@ -0,0 +1,18 @@
private
refreshGLASSConfigurations: repository
[
Gofer new
repository: repository;
package: 'ConfigurationOfGofer';
package: 'ConfigurationOfMetacello';
package: 'ConfigurationOfGsCore';
package: 'ConfigurationOfGoferProjectLoader';
package: 'ConfigurationOfGsMonticello';
package: 'ConfigurationOfGsOB';
package: 'ConfigurationOfGsMisc';
package: 'ConfigurationOfGsSqueakCommon';
load ]
on: Warning
do: [ :ex |
self log: ex description.
ex resume ]
@@ -0,0 +1,22 @@
upgrading
upgradeGLASS: alternateConfigurationRepositoryDirectoryPathOrNil
"skip this step if GLASS1 is already loaded"

| glassVersion originalVersion |
self glass1Loaded
ifTrue: [
self inform: 'GLASS1 is loaded. Skipping GLASS upgrade.'.
^ self ].
self metacelloPreviewLoaded
ifTrue: [
self inform: 'MetacelloPreview is loaded. Skipping GLASS upgrade.'.
^ self ].
glassVersion := self projectVersion: 'ConfigurationOfGLASS'.
self patchForGsDevKitIssue60.
self log: 'Detected version ' , glassVersion printString , ' of GLASS'.
glassVersion versionNumber < '1.0-beta.9.3' asMetacelloVersionNumber
ifTrue: [
self
upgradeGLASS: alternateConfigurationRepositoryDirectoryPathOrNil
from: glassVersion ]
ifFalse: [ self log: 'GLASS already upgraded to 1.0-beta.9.3' ]
@@ -0,0 +1,71 @@
private
upgradeGLASS: alternateConfigurationRepositoryDirectoryPathOrNil from: glassVersion
"skip this step if GLASS1 is already loaded"

self log: 'Upgrading GLASS to 1.0-beta.9.3'.
self
deploy: [
| repository usingAlternate |
repository := alternateConfigurationRepositoryDirectoryPathOrNil
ifNotNil: [
"Note that the alternate repository must have a copy of each of the
configurations listed in GsUpgrader>>refreshGLASSConfigurations:"
usingAlternate := true.
self
log:
'Using alternate repository: '
, alternateConfigurationRepositoryDirectoryPathOrNil printString.
MCDirectoryRepository new
directory:
(ServerFileDirectory on: alternateConfigurationRepositoryDirectoryPathOrNil) ]
ifNil: [
usingAlternate := false.
self
log:
'Using default repository: http://seaside.gemtalksystems.com/ss/MetacelloRepository'.
MCHttpRepository
location: 'http://seaside.gemtalksystems.com/ss/MetacelloRepository'
user: ''
password: '' ].
Gofer new
package: 'ConfigurationOfGLASS';
repository: repository;
load.
glassVersion versionNumber < '1.0-beta.9.2' asMetacelloVersionNumber
ifTrue: [
self metacelloBootstrap10beta311Loaded
ifFalse: [ self loadMetacelloBootstrap10beta311 ].
[
self refreshGLASSConfigurations: repository.
((Smalltalk at: #'ConfigurationOfMetacello') project
version: #'previewBootstrap') load.
((Smalltalk at: #'ConfigurationOfGLASS') project
version: '1.0-beta.9.2') load: #('Core' 'Monticello').
self patchForGsDevKitIssue60. "re-apply patch"
((Smalltalk at: #'ConfigurationOfGLASS') project
version: '1.0-beta.9.2') load ]
on: (Smalltalk at: #'MetacelloSkipDirtyPackageLoad')
do: [ :ex | ex resume: false ] ]
ifFalse: [
"explicitly load Metacello #previewBootstrap"
usingAlternate
ifTrue: [
"refresh only needed if using alternate repo"
self refreshGLASSConfigurations: repository ].
Gofer new
url: 'http://seaside.gemtalksystems.com/ss/metacello';
package: 'ConfigurationOfMetacello';
load.
((Smalltalk at: #'ConfigurationOfMetacello') project
version: #'previewBootstrap') load ].
self upgradeGofer.
((Smalltalk at: #'ConfigurationOfGLASS') project version: '1.0-beta.9.3')
load.
#('GsCore' 'GsMonticello' 'GsOB' 'GsMisc')
do: [ :gsProjectName |
"Patch registrations with proper repository"
self metacelloClass image
configuration: gsProjectName;
repository:
'http://seaside.gemtalksystems.com/ss/MetacelloRepository';
register ] ]

0 comments on commit abf78df

Please sign in to comment.