Skip to content

Commit 46b9ca7

Browse files
authored
Merge pull request #21 from mlr-org/stripped-ci
2 parents a551812 + 0d65706 commit 46b9ca7

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

.github/workflows/main.yml renamed to .github/workflows/tic.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
## tic GitHub Actions template: linux-macos-windows-deploy
22
## revision date: 2020-08-06
3+
# [Custom header]
34
on:
45
workflow_dispatch:
56
push:
7+
branches:
8+
- master
69
pull_request:
710
# for now, CRON jobs only run on the default branch of the repo (i.e. usually on master)
811
schedule:
@@ -22,10 +25,8 @@ jobs:
2225
matrix:
2326
config:
2427
# use a different tic template type if you do not want to build on all listed platforms
25-
- { os: windows-latest, r: "release" }
26-
- { os: macOS-latest, r: "release", pkgdown: "true", latex: "true" }
2728
- { os: ubuntu-latest, r: "devel" }
28-
- { os: ubuntu-latest, r: "release" }
29+
- { os: ubuntu-latest, r: "release", pkgdown: true, latex: true }
2930

3031
env:
3132
# otherwise remotes::fun() errors cause the build to fail. Example: Unavailability of binaries

.lintr

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ linters: with_defaults(
55
object_name_linter = object_name_linter(c("snake_case", "CamelCase")), # only allow snake case and camel case object names
66
cyclocomp_linter = NULL, # do not check function complexity
77
commented_code_linter = NULL, # allow code in comments
8-
line_length_linter = line_length_linter(100)
8+
line_length_linter = line_length_linter(120)
99
)
10+

.travis.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# OS ---------------------------------------------------------------------------
2+
os: linux
3+
4+
# meta -------------------------------------------------------------------------
5+
language: r
6+
cache: packages
7+
latex: false
8+
branches:
9+
only:
10+
- master
11+
12+
# Stages -----------------------------------------------------------------------
13+
14+
install: true
15+
script:
16+
- Rscript -e 'if (!requireNamespace("lintr")) install.packages("lintr")'
17+
- Rscript -e 'if (!requireNamespace("remotes")) install.packages("remotes")'
18+
- Rscript -e 'remotes::install_deps()'
19+
- R CMD build .
20+
- R CMD INSTALL *.tar.gz
21+
- Rscript -e 'lintr::lint_package()'
22+

0 commit comments

Comments
 (0)