-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
49 lines (39 loc) · 1021 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: r
env:
- R_REMOTES_NO_ERRORS_FROM_WARNINGS=true
warnings_are_errors: false
os:
- linux
- osx
r:
- release
branches:
only:
- master
sudo: false
cache: packages
notifications:
email:
on_success: change
on_failure: change
after_success:
# Get PKGVER
- 'export PKGVER=$(sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION)'
- 'export REL=$(echo $PKGVER | grep -o "\." | grep -c "\.")'
- "echo $PKGVER $REL"
# Build binary and remove the source archive
- "R CMD INSTALL --build FLFleet_$PKGVER.tar.gz"
- "rm FLFleet_$PKGVER.tar.gz"
# Look for packages
- "export RELEASE_PKG_FILE=$(ls FLFleet*gz)"
- "echo $RELEASE_PKG_FILE"
deploy:
provider: releases
api_key:
secure: OwHR/j0tj1mNDsWgR9bBEFBnVufGh4Q4FsehKRRjG6tiBVSyga6g8T3LNS2+78Psil0yunG2yU4Vi91JgxnlZvg6ZpXIcH1j8F+qGni/3HZvE2JfOCe3XntudFwVNUPqxQn5QZMY36UNRjOfOlu3i8hPYPpsSaARrZyLjzPJSqc=
file: $RELEASE_PKG_FILE
skip_cleanup: true
draft: true
on:
repo: flr/FLFleet
condition: $REL = "2"