-
Notifications
You must be signed in to change notification settings - Fork 21
/
.travis.yml
58 lines (46 loc) · 2.52 KB
/
.travis.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
language: objective-c
env:
global:
before_install:
- gem install xcpretty
install:
script:
# Build WTF
- rm -rf Build
- rm -rf WTF/build
- mkdir Build
- set -o pipefail && xcodebuild -project WTF/WTF.xcodeproj -sdk iphonesimulator -configuration "Release" -target WTF clean | xcpretty -c
- set -o pipefail && xcodebuild -project WTF/WTF.xcodeproj -sdk iphoneos -configuration "Release" -target WTF clean | xcpretty -c
- set -o pipefail && xcodebuild -project WTF/WTF.xcodeproj -sdk iphonesimulator -configuration "Release" -target WTF | xcpretty -c
- set -o pipefail && xcodebuild -project WTF/WTF.xcodeproj -sdk iphoneos -configuration "Release" -target WTF | xcpretty -c
- lipo WTF/build/Release-iphonesimulator/libWTF.a WTF/build/Release-iphoneos/libWTF.a -create -output Build/libWTF.a
- xcrun -sdk iphoneos lipo -info Build/libWTF.a
- mkdir Build/PRIVATE_HEADERS
- cp -R WTF/build/Release-iphoneos/usr/local/include/ Build/PRIVATE_HEADERS
- rm -rf WTF/build
# Build TiJSCore
- rm -rf JavaScriptCore/build
- set -o pipefail && xcodebuild -project JavaScriptCore/JavaScriptCore.xcodeproj -sdk iphonesimulator -configuration "Release" -target JavaScriptCore clean | xcpretty -c
- set -o pipefail && xcodebuild -project JavaScriptCore/JavaScriptCore.xcodeproj -sdk iphoneos -configuration "Release" -target JavaScriptCore clean | xcpretty -c
- set -o pipefail && xcodebuild -project JavaScriptCore/JavaScriptCore.xcodeproj -sdk iphonesimulator -configuration "Release" -target JavaScriptCore | xcpretty -c
- set -o pipefail && xcodebuild -project JavaScriptCore/JavaScriptCore.xcodeproj -sdk iphoneos -configuration "Release" -target JavaScriptCore | xcpretty -c
- lipo JavaScriptCore/build/Release-iphonesimulator/libJavaScriptCore.a JavaScriptCore/build/Release-iphoneos/libJavaScriptCore.a -create -output Build/libTiCore.a
- xcrun -sdk iphoneos lipo -info Build/libTiCore.a
- mkdir Build/PUBLIC_HEADERS
- cp -R JavaScriptCore/build/Release-iphoneos/usr/local/include/ Build/PUBLIC_HEADERS
- cp -R JavaScriptCore/build/Release-iphoneos/PRIVATE_HEADERS/ Build/PRIVATE_HEADERS
- rm -rf JavaScriptCore/build
- ls -la
- ls -la Build/
- mv Build libTiCore
- zip -r libTiCore.zip libTiCore
after_success:
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: SqJbA96CYvtXxchrg14+6NSMZCgkDxjADR8iRcR/R4PnUEkFJByChgsYoy8ER5z8CNL51YNj8Lxkez/NjwjeU0Qkww2gXpepiM8HCMwpo25hjrjHqz83bp712PI2G4zaS72E+Pu2kahhOTno8yum3e+4hxySI9cegpXbBgrg7po=
file: $TRAVIS_BUILD_DIR/libTiCore.zip
on:
all_branches: true
tags: true