-
Notifications
You must be signed in to change notification settings - Fork 54
/
.travis.yml
39 lines (32 loc) · 1.51 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
language: objective-c
osx_image: xcode9.1
env:
global:
- LC_CTYPE=en_US.UTF-8
- LANG=en_US.UTF-8
before_install:
- env
- locale
- brew update
- brew install p7zip
- xcpretty --version
- xcodebuild -version
- xcodebuild -showsdks
install:
- echo Extracting iOS fat libs...
- 7z x ${TRAVIS_BUILD_DIR}/AssimpKit/Assimp/lib/ios/libassimp-fat.7z
- mv ${TRAVIS_BUILD_DIR}/libassimp-fat.a ${TRAVIS_BUILD_DIR}/AssimpKit/Assimp/lib/ios/
- 7z x ${TRAVIS_BUILD_DIR}/AssimpKit/Assimp/lib/ios/libIrrXML-fat.7z
- mv ${TRAVIS_BUILD_DIR}/libIrrXML-fat.a ${TRAVIS_BUILD_DIR}/AssimpKit/Assimp/lib/ios/
- echo Extracting macOS libs...
- 7z x ${TRAVIS_BUILD_DIR}/AssimpKit/Assimp/lib/osx/libassimp.7z
- mv ${TRAVIS_BUILD_DIR}/libassimp.a ${TRAVIS_BUILD_DIR}/AssimpKit/Assimp/lib/osx/
- 7z x ${TRAVIS_BUILD_DIR}/AssimpKit/Assimp/lib/osx/libIrrXML.7z
- mv ${TRAVIS_BUILD_DIR}/libIrrXML.a ${TRAVIS_BUILD_DIR}/AssimpKit/Assimp/lib/osx/
script:
- echo Test the AssimpSceneKit static library for macOS
- xcodebuild -project AssimpKit/Library/Library.xcodeproj -scheme AssimpKitTests_macOS -destination 'platform=OS X,arch=x86_64' GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES GCC_GENERATE_TEST_COVERAGE_FILES=YES clean test
- echo Test the AssimpSceneKit static library for iOS
- xcodebuild -project AssimpKit/Library/Library.xcodeproj -scheme AssimpKitTests_iOS -destination 'platform=iOS Simulator,OS=10.0,name=iPhone 6' clean test
after_success:
- bash <(curl -s https://codecov.io/bash)