1language: c 2 3branches: 4 except: 5 - /^[0-9]+\.[0-9]+\.[0-9]+/ 6 - /^jpeg-.*/ 7 8matrix: 9 include: 10 - os: linux 11 env: BUILD_OFFICIAL=1 12 sudo: required 13 services: 14 - docker 15 - os: osx 16 env: BUILD_OFFICIAL=1 17 osx_image: xcode7.3 18 - os: linux 19 dist: trusty 20 compiler: clang 21 env: 22 CMAKE_BUILD_TYPE=RelWithDebInfo 23 CFLAGS_RELWITHDEBINFO="-O1 -g -fsanitize=address -fno-omit-frame-pointer" 24 CMAKE_FLAGS="-DENABLE_SHARED=0" 25 ASAN_OPTIONS="detect_leaks=1 symbolize=1" 26 addons: 27 apt: 28 packages: 29 - nasm 30 - os: linux 31 dist: trusty 32 compiler: gcc 33 env: CMAKE_FLAGS="-DWITH_12BIT=1" 34 - os: linux 35 dist: trusty 36 compiler: gcc 37 env: CMAKE_FLAGS="-DWITH_JPEG7=1" 38 addons: 39 apt: 40 packages: 41 - nasm 42 - os: linux 43 dist: trusty 44 compiler: gcc 45 env: CMAKE_FLAGS="-DWITH_JPEG8=1" 46 addons: 47 apt: 48 packages: 49 - nasm 50 - os: linux 51 dist: trusty 52 compiler: gcc 53 env: CMAKE_FLAGS="-DWITH_SIMD=0" 54 55addons: 56 homebrew: 57 brewfile: true 58 update: true 59 60before_install: 61 - if [ "$TRAVIS_OS_NAME" = "osx" ]; then 62 ln -fs /usr/local/bin/gpg1 /usr/local/bin/gpg && 63 git clone --depth=1 https://github.com/libjpeg-turbo/gas-preprocessor.git ~/src/gas-preprocessor && 64 ln -fs /Applications/Xcode.app /Applications/Xcode72.app; 65 fi 66 - if [ "${BUILD_OFFICIAL:-}" != "" ]; then 67 if [ "$TRAVIS_OS_NAME" = "linux" ]; then 68 docker pull dcommander/buildljt; 69 fi && 70 git clone --depth=1 https://github.com/libjpeg-turbo/buildscripts.git -b $TRAVIS_BRANCH ~/src/buildscripts && 71 if [ -n "$encrypted_f92e8533f6f1_iv" ]; then 72 openssl aes-256-cbc -K $encrypted_f92e8533f6f1_key -iv $encrypted_f92e8533f6f1_iv -in ci/keys.enc -out ci/keys -d && 73 tar xf ci/keys && 74 rm ci/keys && 75 mv ci/gpgsign ~/src/buildscripts && 76 gpg --import ci/sign_ljt && 77 rm ci/sign_ljt; 78 fi 79 fi 80 81script: 82 - if [ "${BUILD_OFFICIAL:-}" != "" ]; then 83 mkdir -p ~/src/ljt.nightly && 84 if [ "$TRAVIS_OS_NAME" = "linux" ]; then 85 mkdir $HOME/rpmkeys && 86 wget --no-check-certificate "http://www.libjpeg-turbo.org/key/LJTPR-GPG-KEY" -O $HOME/rpmkeys/LJTPR-GPG-KEY && 87 docker run -v $HOME/src/ljt.nightly:/root/src/ljt.nightly -v $HOME/src/buildscripts:/root/src/buildscripts -v $TRAVIS_BUILD_DIR:/root/src/libjpeg-turbo -v $HOME/.gnupg:/root/.gnupg -v $HOME/rpmkeys:/rpmkeys -t dcommander/buildljt:latest bash -c "rpm --import /rpmkeys/LJTPR-GPG-KEY && ~/src/buildscripts/buildljt -d /root/src/libjpeg-turbo -v" && 88 sudo chown -R travis:travis ~/src/ljt.nightly && 89 mv ~/src/ljt.nightly/latest/log-$TRAVIS_OS_NAME.txt ~/src/ljt.nightly/latest/files/; 90 else 91 PATH=$PATH:~/src/gas-preprocessor ~/src/buildscripts/buildljt -d $TRAVIS_BUILD_DIR -v && 92 mv ~/src/ljt.nightly/latest/log-$TRAVIS_OS_NAME.txt ~/src/ljt.nightly/latest/files/; 93 fi 94 fi 95 - if [ "${BUILD_OFFICIAL:-}" == "" ]; then 96 mkdir build && 97 pushd build && 98 cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE "-DCMAKE_C_FLAGS_RELWITHDEBINFO=$CFLAGS_RELWITHDEBINFO" $CMAKE_FLAGS .. && 99 export NUMCPUS=`grep -c '^processor' /proc/cpuinfo` && 100 make -j$NUMCPUS --load-average=$NUMCPUS && 101 make test && 102 if [[ ! "${CMAKE_FLAGS[0]}" =~ "WITH_12BIT" && 103 ! "${CMAKE_FLAGS[0]}" =~ "WITH_SIMD" ]]; then 104 JSIMD_FORCESSE2=1 make test && 105 cmake -DFLOATTEST=32bit .. && 106 JSIMD_FORCENONE=1 make test; 107 fi && 108 popd; 109 fi 110 111after_failure: 112 - if [ "${BUILD_OFFICIAL:-}" == "" ]; then 113 if [ -f $TRAVIS_BUILD_DIR/build/config.log ]; then 114 cat $TRAVIS_BUILD_DIR/build/config.log; 115 fi 116 fi 117 118deploy: 119 - provider: s3 120 bucket: libjpeg-turbo-pr 121 access_key_id: 122 secure: bmFEt4H90/oR/LiN9XI+G26Pd6hiyrTw3+Vg3lS4ynwAYk33weApaVM8CyzQTgIhGSPzFStqVm9fTrb3RmrYP/PnNS+/surOeWLkH2DMRxvc0qmetBuNx1+vAN7FUkY8MO/u5uE9WXHAdp4e64pXcLXEbKmh+wgDm72b35WmMxErtHsGbpqy+j47rQkY4BJGi7XQzjjafaamfm4PzitsjkYYsgX8KLI16jyJEIirvyDHCPTn9wKR/jSjelDl+xTlgZGuCqmLCBW8f6JgycIspWjcYfO4WpWvkbnnI2sl3rCMPvOYc4wHe8SwzG0l4tM1PblZZDRcU7vjE15PmNf1Xfq9Vx3RpgBJv+UBNL/Vn0rKdpUCeEcfC12hxrske8DWpV6waBiDivjQJreE+YRXqa5YBhV/EdkoKYCqafnJvRASlOko9evje8F9KXTNsIGTT1HPmU9QM9WoJwLs/Xa3t09EmA2IjhcuAvvUmwCTuBBQVAlDjExiTT3Zhc9IYZDD92JgpAYLgridtzR87ElOxKhTkR4PowdI6UiLYArPjMFTjoz5Rivb9qNpbLaQC8HCYgLWxpWtUTzlW/9rM8izHpF8ySFHjO6E2aA9OJFc0tcbEGwAs2jLGD01OduU+DbBfsIkW0EgfXCPbD3FVgHsn3tkuzgO/bg20SM7uuCEYKQ= 123 secret_access_key: 124 secure: mrkOpEtqd2dEmi/qNJyX9vkME+6xgVBnXaRETKF7jT+flcQCQ0ayQkRkMV7lzGqq44XFg+n6Cpfn6oW0gH9RNdcC8YQvFP+kgzPx6nw6V/M31Vz6ySapJf59HBzVevf0NJkr0/1JoWsp1iq4IoN10WPzsCXZB55Io3Cf7DgpR+yiyBlWOctDfNdjJ97Juw3ENE80MHDf0fVqdUOIknQka1p68yAGkjar9kc2Oe7o94RzzmoqEn8tuFumiBQjIcuVRALsKqz+eIxBNgkL3BF9shVyRjOWLAeBhMPVFxZs5Dgd4ECbvU0i33gfmje3d6qqcw78N2lZaLefoVvWol3pOzVO133ewOSY9/lmpqEiRUU2ohEe8T4aSoS7posBW42itUTO4Y5w+eVOnHsm4sRQaI+/AXWTe7GPel+P8Qbe8Ya10A5gnpoag7o3raRDcHx+/qaZw1Af/u4XiAOYz3be3U90Qc+YMc/kS5i8BH0GXBbSfaWQ00CwRFlZQ3n1xUqmjC2CmjZTki3W/p7mEt0DjhcH9ZIXscK603sCC+mF6pEd9019k5fG/8fr2Y4Ptai9kd3BxZJCX9/jSoMfWOBbgkA5bRgHU0xrAj+p49qD6Ej9Xr8GE3+uebz3sEuhSFRnCKwKoOHOemfgevfO2y/jQXP677WPf3xQX7bVDfTFSHU= 125 acl: public_read 126 local-dir: $HOME/src/ljt.nightly/latest/files 127 upload-dir: $TRAVIS_BRANCH/$TRAVIS_OS_NAME 128 on: 129 repo: libjpeg-turbo/libjpeg-turbo 130 branch: master 131 condition: -n "$BUILD_OFFICIAL" 132 - provider: s3 133 bucket: libjpeg-turbo-pr 134 access_key_id: 135 secure: bmFEt4H90/oR/LiN9XI+G26Pd6hiyrTw3+Vg3lS4ynwAYk33weApaVM8CyzQTgIhGSPzFStqVm9fTrb3RmrYP/PnNS+/surOeWLkH2DMRxvc0qmetBuNx1+vAN7FUkY8MO/u5uE9WXHAdp4e64pXcLXEbKmh+wgDm72b35WmMxErtHsGbpqy+j47rQkY4BJGi7XQzjjafaamfm4PzitsjkYYsgX8KLI16jyJEIirvyDHCPTn9wKR/jSjelDl+xTlgZGuCqmLCBW8f6Jgyc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emfgevfO2y/jQXP677WPf3xQX7bVDfTFSHU= 138 acl: public_read 139 local-dir: $HOME/src/ljt.nightly/latest/files 140 upload-dir: $TRAVIS_BRANCH/$TRAVIS_OS_NAME 141 on: 142 repo: libjpeg-turbo/libjpeg-turbo 143 branch: dev 144 condition: -n "$BUILD_OFFICIAL" 145