From 22674120d0ed0c8823c7c1e6c6a52569d7451839 Mon Sep 17 00:00:00 2001 From: Taku Kudo Date: Fri, 24 Aug 2018 15:16:31 +0100 Subject: [PATCH] Update .travis.yml --- .travis.yml | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2230cba..fabaff7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,59 +2,62 @@ language: cpp matrix: include: - 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 - 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 - 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 - 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 - 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 - 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 - 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: - $TRAVIS_BUILD_DIR/python/make_py_wheel.sh ${IMAGE} services: docker - 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: - $TRAVIS_BUILD_DIR/python/make_py_wheel.sh ${IMAGE} services: docker - os: linux - env: IMAGE=x86_64 COMMAND=make_py_wheel_tf RELEASE_FILES=NONE + env: IMAGE=x86_64 COMMAND=make_py_wheel_tf 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 - os: osx osx_image: xcode9.3 - env: IMAGE=native COMMAND=build_osx RELEASE_FILES=NONE + env: IMAGE=native COMMAND=build_osx - os: osx osx_image: xcode9.4 - env: IMAGE=native COMMAND=build_osx RELEASE_FILES=NONE + env: IMAGE=native COMMAND=build_osx - os: osx osx_image: xcode9.2 - env: IMAGE=native COMMAND=build_osx RELEASE_FILES=NONE + env: IMAGE=native COMMAND=build_osx - os: osx 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: - $TRAVIS_BUILD_DIR/python/make_py_wheel_mac.sh - os: osx 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: - $TRAVIS_BUILD_DIR/tensorflow/make_py_wheel_mac.sh script: - $TRAVIS_BUILD_DIR/test.sh ${IMAGE} ${COMMAND} + - if [ -n "$RELEASE_FILES" ]; then + ls -l $RELEASE_FILES + fi deploy: provider: releases skip_cleanup: true @@ -65,7 +68,7 @@ deploy: on: branch: master tags: true - condition: $RELEASE_FILES != NONE + condition: env(RELEASE_FILES) IS present env: global: secure: J52dK8uM1haWOP5Ktz01VETiYdpyOKtnGZXcZjxEXI7RV+44/MpkSSpKFrIex1jHDodn01Tv+/otmxotaz1HOPv4DgT2gg8FbHlpvnc6+B1/dEaeCDvnd33odmARoOszP0MNFTZdlvg6zGeJwPDYFfITn1jiFBtjazu19VIbQE4D1CSKkWsMXeyH1WjTb0LEtxhYwUcFgNqDb6trArx8xlvZNrh2/j5nPgAzvmuT0JuzwcRz9swwZftKcMjaK5JooSBTydtAzgVpVMZf1q+pF0nR9VlYIY34qQLsWirBjWHGRKdkgAEEN4vEMD1BKbhkIn7TjEpWLrH3BZuJY8uXAfnxvT8KXns2fhA1EDjlP/5n2y1jXAjqCZX8o1dC2fn6qxpL1Qg1WE0n9mhOZLMpbzCpJjBumjQPPUsviggRUs4awSYv3JrYuavvXQZ9rFM634O7CLIDVmbqssVyIYMhgIqLFAWgDxTyAxt+67vUy5ONsAenMOJ6bO36pYZHWH53isCRblUD5nq6Dj6WrW9P7lQhAdhvZ+Hyt+zyVCCblDY9lAv1KetU4i9sDSNYUkQtFTPVBw8LE4JmEctuM7iC6YqeneffPzzDLsGZ70m66VT1L4MYg5h2fGbtRuQ1nPz0+k2CNibN7NegaY35d7gUosnJJF04AeOUcea4+rgQkVM=