Skip to content

Commit

Permalink
Release on tags only
Browse files Browse the repository at this point in the history
  • Loading branch information
zsx committed Sep 12, 2016
1 parent 5f33947 commit 3b18a5b
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ env:
# Linux x86, release
- OS_ID=0.4.4 BUILD_TYPE=RELEASE R3_CPP=0
# Linux x86, release
#- OS_ID=0.4.4 BUILD_TYPE=RELEASE R3_CPP=1
- OS_ID=0.4.4 BUILD_TYPE=RELEASE R3_CPP=1
# Linux x64, debug
#- OS_ID=0.4.40 BUILD_TYPE=DEBUG R3_CPP=0
- OS_ID=0.4.40 BUILD_TYPE=DEBUG R3_CPP=0
# Linux x64, debug
#- OS_ID=0.4.40 BUILD_TYPE=DEBUG R3_CPP=1
- OS_ID=0.4.40 BUILD_TYPE=DEBUG R3_CPP=1
# Linux x64, release
#- OS_ID=0.4.40 BUILD_TYPE=RELEASE R3_CPP=0
- OS_ID=0.4.40 BUILD_TYPE=RELEASE R3_CPP=0
# Linux x64, release
#- OS_ID=0.4.40 BUILD_TYPE=RELEASE R3_CPP=1
- OS_ID=0.4.40 BUILD_TYPE=RELEASE R3_CPP=1

# Windows x86, release
#- OS_ID=0.3.1 REL=1 TOOLS=i686-w64-mingw32-
Expand Down Expand Up @@ -89,17 +89,18 @@ script:
- if [ "${OS_ID}" = "0.4.40" ]; then ./r3-core --do 'print {OK}' | grep OK; fi

# Rename files before uploading
- cp ./r3-core ${TRAVIS_BUILD_DIR}/r3-core-${OS_ID}-${BUILD_TYPE}-CPP${R3_CPP}
- cp tcc/libtcc1.a ${TRAVIS_BUILD_DIR}/libtcc1.a-${OS_ID}-${BUILD_TYPE}-CPP${R3_CPP}
- cp ./r3-core ${TRAVIS_BUILD_DIR}/r3-core-${TRAVIS_COMMIT}-${OS_ID}-${BUILD_TYPE}-CPP${R3_CPP}
- cp tcc/libtcc1.a ${TRAVIS_BUILD_DIR}/libtcc1.a-${TRAVIS_COMMIT}-${OS_ID}-${BUILD_TYPE}-CPP${R3_CPP}

deploy:
provider: releases
api_key:
secure: V6a5VzBv+ut3hKZKMmnuY4Urzc4QA/EBcfarve837q+7p9QgDseiuW93yUVys7LacIl8D6y13m71QBxzG6LC9WnttNgfy+PfyrMbWfaMvg9zLQQ1jTGKWjW6Fn4/xyU0NYyrjvgxW2itQ4/r9r0lcmKHbsAcm/ZhvLzg4o3dnc0=
file:
- ${TRAVIS_BUILD_DIR}/r3-core-${OS_ID}-${BUILD_TYPE}-CPP${R3_CPP}
- ${TRAVIS_BUILD_DIR}/libtcc1.a-${OS_ID}-${BUILD_TYPE}-CPP${R3_CPP}
- ${TRAVIS_BUILD_DIR}/r3-core-${TRAVIS_COMMIT}-${OS_ID}-${BUILD_TYPE}-CPP${R3_CPP}
- ${TRAVIS_BUILD_DIR}/libtcc1.a-${TRAVIS_COMMIT}-${OS_ID}-${BUILD_TYPE}-CPP${R3_CPP}
skip_cleanup: true #or, Travis CI deletes all the files created during the build
on:
repo: zsx/r3
branch: user-native
tags: true
#repo: zsx/r3
#branch: user-native

0 comments on commit 3b18a5b

Please sign in to comment.