-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
48 lines (39 loc) · 1.03 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
language: r
warnings_are_errors: false
os:
- linux
- osx
r:
- release
branches:
only:
- master
sudo: false
cache: packages
notifications:
email:
on_success: change
on_failure: change
before_deploy:
# Get PKGVER
- 'export PKGVER=$(sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION)'
# CHECK version type by counting dots (flaky)
- 'export RELEASE=$(grep -o \\. <<< $PKGVER | wc -w)'
- "echo $RELEASE"
# Build binary and remove the source archive
- "R CMD INSTALL --build FLash_$PKGVER.tar.gz"
- "rm FLash_$PKGVER.tar.gz"
# Look for packages
- "export RELEASE_PKG_FILE=$(ls FLash*gz)"
- "echo $RELEASE_PKG_FILE"
deploy:
provider: releases
api_key:
secure: q5HM2VWfWuc5GVUDRXpgwG0JBYVzFKyxexfcfw8L3rH5NdXxQEYXL9vdc4A4mkdPlfYd4c1WozM1L9wZXjYHnW9batFnmdHvhJp6c2FbGA/8xEMHT94iGafuiaoXahUNi2YtUSTry+ruoAanUNKdiYrmdva//LL9ZlesC1rJclQ=
file: $RELEASE_PKG_FILE
skip_cleanup: true
draft: true
on:
repo: flr/FLash
# condition: "$RELEASE=2"
# condition: $RELEASE =~ ^[0-9]+\.[0-9]+\.[0-9]+