...
 
Commits (11)
......@@ -2,18 +2,6 @@ stages:
- test
- package
osx:
stage: test
script:
- atpm fetch
- atbuild check
tags:
- xc7
- openswift
- atbuild
- atpm
osxxcode:
stage: test
script:
......@@ -22,23 +10,11 @@ osxxcode:
- atbuild coretest --toolchain xcode
tags:
- xc7
- xcode7
- openswift
- atbuild
- atpm
linux:
stage: test
script:
- apt-get update
- apt-get install atbuild atpm -y
- atpm fetch
- atbuild coretest
tags:
- autoscale-linux
image: drewcrawford/buildbase:latest
documentation:
stage: package
script:
......@@ -62,7 +38,7 @@ osxcorepackage:
- atbuild core-framework --toolchain xcode --configuration release
tags:
- xc7
- xcode7
- openswift
- atbuild
- package-framework
......@@ -79,7 +55,7 @@ osxtoolpackage:
- atbuild package-statictool --configuration release
tags:
- xc7
- xcodeselect8
- openswift
- atbuild
- package-homebrew
......@@ -90,32 +66,31 @@ osxtoolpackage:
- bin/*.tar.xz
- bin/*.rb
linuxtoolpackage:
ioscorepackage:
stage: package
script:
- apt-get update
- apt-get install atbuild atpm package-deb -y
- atpm fetch
- atbuild package-statictool --configuration release
- atbuild core-framework --toolchain xcode --platform ios --configuration release
tags:
- autoscale-linux
- xcode7
- openswift
- atbuild
- package-framework
- atpm
artifacts:
paths:
- bin/*.tar.xz
- bin/*.deb
image: drewcrawford/buildbase:latest
- bin/CarolineCore*.tar.xz
ioscorepackage:
ios23corepackage:
stage: package
script:
- atpm fetch
- atbuild core-framework --toolchain xcode --platform ios --configuration release
- atbuild core-framework --toolchain /Applications/Xcode8.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain --platform ios --configuration release
tags:
- xc7
- xcode8symlink
- openswift
- atbuild
- package-framework
......
......@@ -60,17 +60,18 @@ public class CarolineCoreEngine : CarolineEngine {
}
print("-----------------------")
#if !swift(>=3.0) || os(Linux)
srand(UInt32(time(nil)))
let rand_int = rand()
#if swift(>=2.3)
let rand_int = Int(arc4random() % 10000000)
#else
let rand_int = arc4random()
srand(UInt32(time(nil)))
let rand_int = Int(rand() % 1000000)
#endif
if failures == 0 {
print(passSnark[Int(rand_int) % passSnark.count])
print(passSnark[rand_int % passSnark.count])
}
else {
print(failSnark[Int(rand_int) % failSnark.count])
print(failSnark[rand_int % failSnark.count])
}
print("Test execution finished with \(tests.count) tests, \(failures) failures, \(skipped) skipped.")
if failures > 0 { return false }
......
......@@ -15,7 +15,7 @@
:payloads [
{
:key "git"
:used-commit "d36b65374eddc1585fbdcd3b5f18dd199770d8d4"
:used-commit "f6a17da3de4dd7706fb819cf6474148aaf272298"
:pin false
}
]
......
(package
:name "Caroline"
:version "0.1"
:version "0.2-beta3"
:external-packages [
{
:version [">=0.1"]
......@@ -61,6 +61,11 @@
:sources ["CarolineCore/**.swift"]
:publish-product true
:framework true
:overlays {
:atbuild.platform.ios {
:deployment-target "9.3"
}
}
}
:core-package {
:tool "packageatbin"
......