Skip to content

Commit

Permalink
CI Fix V2 With Caching
Browse files Browse the repository at this point in the history
Fixes travis so that it uses the correct file for deploying
Adds gradle caching to both CI enviroments to speed up builds
  • Loading branch information
JLLeitschuh committed Nov 13, 2015
1 parent 50b8986 commit 0e26a0a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,20 @@ env:
os:
- linux

before_deploy:
- export $RELEASE_PKG_FILE=$(ls -1 build/distributions/*.deb)
- echo "Deploying $RELEASE_PKG_FILE to GitHub releases"

deploy:
provider: releases
api_key:
secure: bdjiFXG3VBcM1iyxeputsWA9vHxgLNcxRB1i0REDNAnIEvDWpAdVr1jPBejeiOEw9s+k6EItATvQ2I7Xp5iKnYaXn0NuHzM3OSY8WNVCc+gBTaQwkijPBqi/vEXaO502CscW+H2U26QZGS/jJiUuieeErtzCNcWmCv8SRc5NFOVYdSlhAmp+aPeu2YwuweiMZNVquYM2hx7murghOYSF5hQTKq4/zrziENVi78XZS8rJFmxwOGqNj1GBLul2F9poIPjzDbPVJLeXTJEY+N3aYGJ4GyZYf6p8ynDO/v043/GuOAyNfkgSwhCcTQlmLG/mm6P9CUMoDQR9klh2eDswgrIP4rGLwILg3035nqHqwgTIKVXfspni3P/65siS6lXV0M5flEkRysMBr1GQhaIEUM32ArreMzAtC2Vn2CviKG0TwLmxyd/7W3JdoX4KrHAcKBwbqFDImWw43S6N63oTUEw6GjrI+CndwgF9RNgr5SAyS28LFXViOJe7JlGVUNU33kMNpEJxzVREzkJsO8aicaZTrvDniFOfg2WhrAyhjxmh4/IOHDE6qgtxw+2+TUzMlwdzdxb90BeXg2XfMichmKfQYQFEmZntCZcoHHDG5jbCTyAvFuOv6tdPjpr69QjiEJhEbohw8CEwoGhy1kxxQcCDCfABrOTivJ39Ui8MC6k=
file_glob: true
file: "${RELEASE_PKG_FILE}"
file: "build/distributions/*.deb"
skip_cleanup: true
on:
repo: WPIRoboticsProjects/GRIP
tags: true

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
7 changes: 5 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build_script:
- gradlew.bat assemble --stacktrace

after_build:
- dir build
- dir build /s

artifacts:
- path: build\distributions\*.exe
Expand All @@ -20,4 +20,7 @@ deploy:
prerelease: true
on:
branch: master # release from master branch only
appveyor_repo_tag: true # deploy on tag push only
appveyor_repo_tag: true # deploy on tag push only

cache:
- C:\Users\appveyor\.gradle

0 comments on commit 0e26a0a

Please sign in to comment.