forked from flr/FLCore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (39 loc) · 1017 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 FLCore_$PKGVER.tar.gz"
- "rm FLCore_$PKGVER.tar.gz"
# Look for packages
- "export RELEASE_PKG_FILE=$(ls FLCore*gz)"
- "echo $RELEASE_PKG_FILE"
deploy:
provider: releases
api_key:
secure: QrWCUrkEVOwPitBzGoIoK8zp2Mk4SL0KTnygW9YtVwFCe+vkbEAfvRpRRQ9IvjPUberQT1WvysWr/oM232QtL+g7TeEad0uB5oLMrGq6lyUBgaUnkzRShIKMbUzXOH3i2EW4Bv2mUaKf02nkiRNcNIG0t3SBfwbgMHwhf/VWATc=
file: $RELEASE_PKG_FILE
skip_cleanup: true
draft: true
on:
repo: flr/FLCore
condition: $REL = "2"