summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 317045f7c8002db3957d5cea40de99b0517fbbd5 (plain)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
language: cpp

matrix:
  exclude:
    - os: linux
  include:
    - os: linux
      env: CONFIG=release MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 TESTMUNK=yes
      compiler: clang
    - os: linux
      env: CONFIG=debug MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 TESTMUNK=no
      compiler: clang
    - os: linux
      env: CONFIG=release MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 TESTMUNK=no
      compiler: clang
    - os: linux
      env: CONFIG=release MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 TESTMUNK=no
      compiler: clang
    - os: linux
      env: CONFIG=release MASON_PLATFORM=android MASON_ANDROID_ABI=x86 TESTMUNK=no
      compiler: clang
    - os: linux
      env: CONFIG=release MASON_PLATFORM=android MASON_ANDROID_ABI=mips TESTMUNK=no
      compiler: clang
    - os: linux
      env: CONFIG=release MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 TESTMUNK=no
      compiler: clang
    - os: linux
      env: BUILDTYPE=Release JOBS=16
      compiler: clang
    - os: linux
      env: BUILDTYPE=Debug JOBS=16
      compiler: clang
    - os: linux
      env: BUILDTYPE=Release JOBS=8
      compiler: gcc
    - os: osx
      env: BUILDTYPE=Debug JOBS=8
      compiler: clang

env:
  global:
   - secure: "XuZ5KNGVLyMC6fhUchdvMPp6NqT+WtYfIsiT8zGuzaFTfwUiwijAsSye++wZLXbWqH5DU5xHjNdBpmwT2bXjzWkyR+OYjKD7a0K3hzuGhNuSb4wcVaXr0bhsAzarFqaTXjf/Mrinl1eSLJnHY6NW9OJkyqUvi0vPY/+55Ry2WwQ="
   - secure: "Uvau7bpGpnbWnsFlgeCjPNBuw+HOQ5sZzdKGdm3wuKmPROfAoVuGb1N3mIYcL2iSiUTomn7CVoLDSXbiYSGlM6nzJ0N/dV+GMJV5f7gO/1b46hfiBNnR7eGr0oH4DzSYefS/8DcbLWFtCTePdNtvpCko/BHfcOx0WSXl2SNIFYk="
   - ANDROID_BUILD_INSTANCE_PROFILE: arn:aws:iam::234858372212:instance-profile/android-gl-build/travis/instance-profile/travis-mapbox-gl-native-move-bucket-AndroidInstanceProfile-NF37L9BZ6FOO
   - secure: "RiBIBfVhhaMjU5ksuwJO3shdvG9FpinBjdSv4co9jg9171SR8edNriedHjVKSIeBhSGNmZmX+twS3dJS/By6tl/LKh9sTynA+ZAYYljkE7jn881B/gMrlYvdAA6og5KvkhV1/0iJWlhuZrMTkhpDR200iLgg3EWBhWjltzmDW/I="
   - secure: "CHBiUM60TolDbQnn+4IRA/tvOKwKs3g9EDvv8YHSJMg3FuHmjKQkprBasvxf3hnTXg4WLZEubmeDcyJ6RRzPP5mMSr/hksYl0pSjj/6TUecE5fHPVVeN7txVqkpOBf9i45Y+iBUQMjBb1NnDK3pHXxpnAs1Q/pe7vReErj4GF1U="
   - LD_LIBRARY_PATH: '/usr/local/lib'
   - TERM: dumb
   # begin iOS code signing
   - secure: "I6Iu75X1E+js5tzijtKi1EGtIuBcA4/25nDYe0svV4HAtujY71ZJZ4eB6355CKhFXpLXrF3i7eKVX3v+zWS0QROPEWacgsqsvNg+Ba9cnznW/faUSOYekCfhzWd/6reYDM7KzKAQwSUHLk9JIWK/kkmi4r+vVJK7h+tjPllK5YA="
   - IOS_APP_NAME="Mapbox GL"
   - 'IOS_DEVELOPER_NAME="iPhone Distribution: Mapbox, Inc."'
   - IOS_PROFILE_NAME="ios-in-house"
   - secure: "nQqSM8rd7OHtV4MqmNqVnkrVHqxKqQsaWRYk4/nPdhbeVWtTtkk0df711LrF1TUtbEPEewHxYUvTZ/UXmwJNeoKdzTHavI8hnatRkgjyxGERPn1il1Otelht9I+LQQHf+plrpRjVWBrNIW0Zox1B3cqn6d3NglpbXrEQ2EjYGNA="
   # end iOS code signing

before_install:
- if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then sudo service mysql stop; fi
- if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then sudo service postgresql stop; fi
- source ./scripts/local_mason.sh
- source ./scripts/travis_helper.sh
- source ./scripts/install_node.sh
- source ./scripts/flags.sh
- ./scripts/travis_before_install.sh
- if [[ ${TRAVIS_OS_NAME} == "linux" && ${MASON_PLATFORM} != "android" ]]; then export LD_LIBRARY_PATH=`mason prefix mesa 10.4.3`/lib; fi
- if [[ ${TRAVIS_OS_NAME} == "linux" && ${MASON_PLATFORM} != "android" ]]; then glxinfo; fi

install:
- ulimit -c

before_script:
 # Set the core file limit to unlimited so a core file is generated upon crash
 - ulimit -c unlimited -S
 # begin iOS code signing
 - openssl aes-256-cbc -k "$IOS_ENCRYPTION_SECRET" -in scripts/ios_travis/ios-in-house.mobileprovision.enc -d -a -out scripts/ios_travis/ios-in-house.mobileprovision
 - openssl aes-256-cbc -k "$IOS_ENCRYPTION_SECRET" -in scripts/ios_travis/ios-dist.cer.enc                 -d -a -out scripts/ios_travis/ios-dist.cer
 - openssl aes-256-cbc -k "$IOS_ENCRYPTION_SECRET" -in scripts/ios_travis/ios-dist.p12.enc                 -d -a -out scripts/ios_travis/ios-dist.p12
 - ./scripts/ios_travis/add-key.sh
 # end iOS code signing

script:
- ./scripts/travis_script.sh

after_script:
- ./scripts/ios_travis/remove-key.sh

notifications:
  slack:
    secure: HHQYr7sF8M1SzoWSqgKVYtwAgGdLLCyTMsQjFhEEQNYO92ZwURE5s03qWTGH5k8+4Yqn26yrXt3NztLC4JIOpcGervN2mSZyq4dZgFTcWEd61igw0qwSenlwvFfbE1ASK/KYCzfyn9MIfHN+ovwLoRxXZkPwinKDvl3DXjBaFNg=
git:
  submodules: false