-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
49 lines (39 loc) · 1013 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 FLXSA_$PKGVER.tar.gz"
- "rm FLXSA_$PKGVER.tar.gz"
# Look for packages
- "export RELEASE_PKG_FILE=$(ls FLXSA*gz)"
- "echo $RELEASE_PKG_FILE"
deploy:
provider: releases
api_key:
secure: bJOsB3ZhJ8vD2BCDqKMC0Vf+FUuc5ul3J9mGOkwhVojKPuebEhotf1hfzkVM9Xn9vKLFqJKNt4a+zu9ZYVEgT4kC/9AqOZICBZ8hsHBR0V/frb+KQQvioBo7zryOjvSnyVtjs1gBuFdG0sbu+gflTlNHf+aawwMUdx5wZvYnqtc=
file: $RELEASE_PKG_FILE
skip_cleanup: true
draft: true
on:
repo: flr/FLXSA
condition: $REL = "2"