forked from renggli/pharo-builder
-
Notifications
You must be signed in to change notification settings - Fork 6
/
travisCI.st
36 lines (27 loc) · 1.23 KB
/
travisCI.st
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
| gitPath gitCache |
Transcript cr; show: 'travis---->travisCI.st'.
gitCache := 'git_cache'.
gitPath := (Smalltalk at: #'FileDirectory' ifAbsent: [ ])
ifNil: [ ((Smalltalk at: #'FileSystem') workingDirectory / gitCache) pathString ]
ifNotNil: [:fileDirectoryClass | (fileDirectoryClass default directoryNamed: gitCache ) fullName].
"Sample travisCI.st file:
Edit the Metacello api and test harness invocation
using the correct configuration name and repository
location.
See https://github.com/dalehenrich/filetree/blob/pharo1.4/tests/travisCI.st for example"
Metacello new
baseline: '<projectName>';
repository: 'filetree://', gitPath, '/<projectName>/<path to filetree packages root>';
get.
Metacello new
baseline: '<projectName>';
repository: 'filetree://', gitPath, '/<projectName>/<path to filetree packages root>';
load: 'TravisCI'.
"If e.g. your tests change code in the image dynamically, the image will require you to set
author initials which might fail these tests. So we set some dummy initials here to avoid this."
(Smalltalk at: #MetacelloPlatform) current authorName: 'travisCI'.
"Run the tests"
TravisCIHarness
value: #( '<full baseline name>' )
value: 'TravisCISuccess.txt'
value: 'TravisCIFailure.txt'.