This commit is contained in:
Taku Kudo 2018-08-24 15:16:31 +01:00 коммит произвёл GitHub
Родитель 97a98bae56
Коммит 22674120d0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 19 добавлений и 16 удалений

Просмотреть файл

@ -2,59 +2,62 @@ language: cpp
matrix: matrix:
include: include:
- os: linux - os: linux
env: IMAGE=ubuntu:rolling COMMAND=build_linux_gcc_coverall_ubuntu RELEASE_FILES=NONE env: IMAGE=ubuntu:rolling COMMAND=build_linux_gcc_coverall_ubuntu
services: docker services: docker
- os: linux - os: linux
env: IMAGE=i386/ubuntu:rolling COMMAND=build_linux_gcc_ubuntu_i386 RELEASE_FILES=NONE env: IMAGE=i386/ubuntu:rolling COMMAND=build_linux_gcc_ubuntu_i386
services: docker services: docker
- os: linux - os: linux
env: IMAGE=ubuntu:xenial COMMAND=build_linux_gcc_ubuntu RELEASE_FILES="build/sentencepiece*.{7z,rpm,deb}" env: IMAGE=ubuntu:xenial COMMAND=build_linux_gcc_ubuntu RELEASE_FILES="$TRAVIS_BUILD_DIR/build/sentencepiece*.{7z,rpm,deb}"
services: docker services: docker
- os: linux - os: linux
env: IMAGE=debian:stable COMMAND=build_linux_gcc_debian RELEASE_FILES=NONE env: IMAGE=debian:stable COMMAND=build_linux_gcc_debian
services: docker services: docker
- os: linux - os: linux
env: IMAGE=fedora:latest COMMAND=build_linux_gcc_fedora RELEASE_FILES=NONE env: IMAGE=fedora:latest COMMAND=build_linux_gcc_fedora
services: docker services: docker
- os: linux - os: linux
env: IMAGE=ubuntu:rolling COMMAND=build_linux_clang_ubuntu RELEASE_FILES=NONE env: IMAGE=ubuntu:rolling COMMAND=build_linux_clang_ubuntu
services: docker services: docker
- os: linux - os: linux
env: IMAGE=x86_64 COMMAND=make_py_wheel_py RELEASE_FILES="python/dist/*manylinux*.whl" env: IMAGE=x86_64 COMMAND=make_py_wheel_py RELEASE_FILES="$TRAVIS_BUILD_DIR/python/dist/*manylinux*.whl"
script: script:
- $TRAVIS_BUILD_DIR/python/make_py_wheel.sh ${IMAGE} - $TRAVIS_BUILD_DIR/python/make_py_wheel.sh ${IMAGE}
services: docker services: docker
- os: linux - os: linux
env: IMAGE=i686 COMMAND=make_py_wheel_py RELEASE_FILES="python/dist/*manylinux*.whl" env: IMAGE=i686 COMMAND=make_py_wheel_py RELEASE_FILES="$TRAVIS_BUILD_DIR/python/dist/*manylinux*.whl"
script: script:
- $TRAVIS_BUILD_DIR/python/make_py_wheel.sh ${IMAGE} - $TRAVIS_BUILD_DIR/python/make_py_wheel.sh ${IMAGE}
services: docker services: docker
- os: linux - os: linux
env: IMAGE=x86_64 COMMAND=make_py_wheel_tf RELEASE_FILES=NONE env: IMAGE=x86_64 COMMAND=make_py_wheel_tf
script: script:
- $TRAVIS_BUILD_DIR/tensorflow/make_py_wheel.sh RELEASE_FILES="python/dist/*.whl" - $TRAVIS_BUILD_DIR/tensorflow/make_py_wheel.sh RELEASE_FILES="$TRAVIS_BUILD_DIR/python/dist/*.whl"
services: docker services: docker
- os: osx - os: osx
osx_image: xcode9.3 osx_image: xcode9.3
env: IMAGE=native COMMAND=build_osx RELEASE_FILES=NONE env: IMAGE=native COMMAND=build_osx
- os: osx - os: osx
osx_image: xcode9.4 osx_image: xcode9.4
env: IMAGE=native COMMAND=build_osx RELEASE_FILES=NONE env: IMAGE=native COMMAND=build_osx
- os: osx - os: osx
osx_image: xcode9.2 osx_image: xcode9.2
env: IMAGE=native COMMAND=build_osx RELEASE_FILES=NONE env: IMAGE=native COMMAND=build_osx
- os: osx - os: osx
osx_image: xcode9.4 osx_image: xcode9.4
env: IMAGE=native COMMAND=make_py_wheel_mac_py RELEASE_FILES="python/dist/delocated_wheel/*.whl" env: IMAGE=native COMMAND=make_py_wheel_mac_py RELEASE_FILES="$TRAVIS_BUILD_DIR/python/dist/delocated_wheel/*.whl"
script: script:
- $TRAVIS_BUILD_DIR/python/make_py_wheel_mac.sh - $TRAVIS_BUILD_DIR/python/make_py_wheel_mac.sh
- os: osx - os: osx
osx_image: xcode9.4 osx_image: xcode9.4
env: IMAGE=native COMMAND=make_py_wheel_mac_tf RELEASE_FILES="python/dist/*.whl" env: IMAGE=native COMMAND=make_py_wheel_mac_tf RELEASE_FILES="$TRAVIS_BUILD_DIR/python/dist/*.whl"
script: script:
- $TRAVIS_BUILD_DIR/tensorflow/make_py_wheel_mac.sh - $TRAVIS_BUILD_DIR/tensorflow/make_py_wheel_mac.sh
script: script:
- $TRAVIS_BUILD_DIR/test.sh ${IMAGE} ${COMMAND} - $TRAVIS_BUILD_DIR/test.sh ${IMAGE} ${COMMAND}
- if [ -n "$RELEASE_FILES" ]; then
ls -l $RELEASE_FILES
fi
deploy: deploy:
provider: releases provider: releases
skip_cleanup: true skip_cleanup: true
@ -65,7 +68,7 @@ deploy:
on: on:
branch: master branch: master
tags: true tags: true
condition: $RELEASE_FILES != NONE condition: env(RELEASE_FILES) IS present
env: env:
global: global:
secure: J52dK8uM1haWOP5Ktz01VETiYdpyOKtnGZXcZjxEXI7RV+44/MpkSSpKFrIex1jHDodn01Tv+/otmxotaz1HOPv4DgT2gg8FbHlpvnc6+B1/dEaeCDvnd33odmARoOszP0MNFTZdlvg6zGeJwPDYFfITn1jiFBtjazu19VIbQE4D1CSKkWsMXeyH1WjTb0LEtxhYwUcFgNqDb6trArx8xlvZNrh2/j5nPgAzvmuT0JuzwcRz9swwZftKcMjaK5JooSBTydtAzgVpVMZf1q+pF0nR9VlYIY34qQLsWirBjWHGRKdkgAEEN4vEMD1BKbhkIn7TjEpWLrH3BZuJY8uXAfnxvT8KXns2fhA1EDjlP/5n2y1jXAjqCZX8o1dC2fn6qxpL1Qg1WE0n9mhOZLMpbzCpJjBumjQPPUsviggRUs4awSYv3JrYuavvXQZ9rFM634O7CLIDVmbqssVyIYMhgIqLFAWgDxTyAxt+67vUy5ONsAenMOJ6bO36pYZHWH53isCRblUD5nq6Dj6WrW9P7lQhAdhvZ+Hyt+zyVCCblDY9lA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