-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
66 lines (52 loc) · 1.23 KB
/
.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
language: r
env:
- R_REMOTES_NO_ERRORS_FROM_WARNINGS=true
warnings_are_errors: false
os:
- linux
- osx
dist: xenial
r:
- release
script:
- R CMD build .
- travis_wait 200 R CMD check --as-cran FLa4a*.tar.gz
addons:
apt:
packages:
- libgsl0-dev
before_install: |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
brew update
brew install gsl
fi
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 FLa4a_$PKGVER.tar.gz"
- "rm FLa4a_$PKGVER.tar.gz"
# Look for packages
- "export RELEASE_PKG_FILE=$(ls FLa4a*gz)"
- "echo $RELEASE_PKG_FILE"
deploy:
provider: releases
api_key:
secure: OjlShtK5Xsi/ZBh9dCaUe1WphcX1QBgdX+tuG8w4y8vdlesl3Cm+cHayAafPlsWV6kIu39n3TtrtSihSa56LLJVFhmNA6DWFtgOLsCcmUavvdWWWRa11pof3dtU8ROEPF+i5cBFytLdrqKLyJ9/uIrTEjIJ01SmFU/6z8fR+O5A=
file: $RELEASE_PKG_FILE
skip_cleanup: true
draft: true
on:
repo: flr/FLa4a
condition: $REL = "2"