-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #939 from metrumresearchgroup/release/1.0.1
Release/1.0.1
- Loading branch information
Showing
30 changed files
with
1,185 additions
and
499 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,156 @@ | ||
--- | ||
kind: pipeline | ||
type: docker | ||
name: mrgsolve | ||
name: cran-latest | ||
|
||
platform: | ||
os: linux | ||
arch: amd64 | ||
|
||
steps: | ||
- name: Pull mpn container from ECR | ||
- name: pull | ||
image: omerxx/drone-ecr-auth | ||
commands: | ||
- $(aws ecr get-login --no-include-email --region us-east-1) | ||
- docker pull 906087756158.dkr.ecr.us-east-1.amazonaws.com/r-dev-ci-mpn-4.1:cran-latest | ||
- docker pull 906087756158.dkr.ecr.us-east-1.amazonaws.com/r-dev-ci-mpn-4.0:cran-latest | ||
- docker pull 906087756158.dkr.ecr.us-east-1.amazonaws.com/r-dev-ci-mpn-3.6:cran-latest | ||
volumes: | ||
- name: docker.sock | ||
path: /var/run/docker.sock | ||
|
||
- name: "Check package: R 4.1" | ||
pull: never | ||
image: 906087756158.dkr.ecr.us-east-1.amazonaws.com/r-dev-ci-mpn-4.1:cran-latest | ||
commands: | ||
- $(aws ecr get-login --no-include-email --region us-east-1) | ||
- docker pull 906087756158.dkr.ecr.us-east-1.amazonaws.com/mpn:2020-03-24 | ||
- R -s -e 'devtools::install_deps(upgrade = '"'"'always'"'"', dependencies = TRUE)' | ||
- make drone | ||
|
||
- name: R40-new | ||
image: "906087756158.dkr.ecr.us-east-1.amazonaws.com/mpn-complete:2020-06-08" | ||
- name: "Check package: R 4.0" | ||
pull: never | ||
environment: | ||
R_LIBS_USER: "/opt/rpkgs/4.0" | ||
_MRGSOLVE_SKIP_MODLIB_BUILD_: false | ||
image: 906087756158.dkr.ecr.us-east-1.amazonaws.com/r-dev-ci-mpn-4.0:cran-latest | ||
commands: | ||
- R -s -e 'devtools::install_deps(upgrade = '"'"'always'"'"', dependencies = TRUE)' | ||
- make drone | ||
|
||
- name: R36 | ||
image: "906087756158.dkr.ecr.us-east-1.amazonaws.com/mpn:2020-03-24" | ||
- name: "Check package: R 3.6" | ||
pull: never | ||
environment: | ||
R_LIBS_USER: "/opt/rpkgs/3.6/2020-03-24" | ||
_MRGSOLVE_SKIP_MODLIB_BUILD_: false | ||
image: 906087756158.dkr.ecr.us-east-1.amazonaws.com/r-dev-ci-mpn-3.6:cran-latest | ||
commands: | ||
- R -s -e 'devtools::install_deps(upgrade = '"'"'always'"'"', dependencies = TRUE)' | ||
- make drone | ||
|
||
- name: release | ||
when: | ||
event: | ||
- tag | ||
status: | ||
- success | ||
image: "906087756158.dkr.ecr.us-east-1.amazonaws.com/mpn:2020-03-24" | ||
|
||
volumes: | ||
- name: docker.sock | ||
host: | ||
path: /var/run/docker.sock | ||
|
||
trigger: | ||
event: | ||
exclude: | ||
- promote | ||
|
||
--- | ||
kind: pipeline | ||
type: docker | ||
name: coverage | ||
|
||
platform: | ||
os: linux | ||
arch: amd64 | ||
|
||
steps: | ||
- name: pull | ||
image: omerxx/drone-ecr-auth | ||
commands: | ||
- $(aws ecr get-login --no-include-email --region us-east-1) | ||
- docker pull 906087756158.dkr.ecr.us-east-1.amazonaws.com/r-dev-ci-mpn-4.1:latest | ||
volumes: | ||
- name: docker.sock | ||
path: /var/run/docker.sock | ||
|
||
volumes: | ||
- name: docker.sock | ||
host: | ||
path: /var/run/docker.sock | ||
- name: cache | ||
temp: {} | ||
|
||
trigger: | ||
event: | ||
exclude: | ||
- promote | ||
|
||
depends_on: | ||
- cran-latest | ||
|
||
--- | ||
kind: pipeline | ||
type: docker | ||
name: release | ||
|
||
platform: | ||
os: linux | ||
arch: amd64 | ||
|
||
steps: | ||
- name: pull | ||
image: omerxx/drone-ecr-auth | ||
commands: | ||
- $(aws ecr get-login --no-include-email --region us-east-1) | ||
- docker pull 906087756158.dkr.ecr.us-east-1.amazonaws.com/r-dev-ci-mpn-4.1:latest | ||
volumes: | ||
- name: docker.sock | ||
path: /var/run/docker.sock | ||
|
||
- name: Build package | ||
pull: never | ||
environment: | ||
R_LIBS_USER: "/opt/rpkgs/3.6/2020-03-24" | ||
image: 906087756158.dkr.ecr.us-east-1.amazonaws.com/r-dev-ci-mpn-4.1:latest | ||
commands: | ||
- git config --global user.email "[email protected]" | ||
- git config --global user.name "Drony" | ||
- git config --global user.email [email protected] | ||
- git config --global user.name Drony | ||
- git fetch --tags | ||
- R -e "pkgpub::create_tagged_repo()" | ||
- aws s3 sync /tmp/${DRONE_TAG} s3://mpn.metworx.dev/releases/${DRONE_REPO_NAME}/${DRONE_TAG} | ||
- aws s3 sync /tmp/${DRONE_TAG} s3://mpn.metworx.dev/releases/${DRONE_REPO_NAME}/latest_tag | ||
- R -s -e 'pkgpub::create_tagged_repo(.dir = '"'"'/ephemeral'"'"')' | ||
environment: | ||
NOT_CRAN: true | ||
volumes: | ||
- name: cache | ||
path: /ephemeral | ||
|
||
- name: "Publish package: ${DRONE_TAG}" | ||
pull: if-not-exists | ||
image: plugins/s3 | ||
settings: | ||
bucket: mpn.metworx.dev | ||
source: /ephemeral/${DRONE_TAG}/**/* | ||
strip_prefix: /ephemeral/${DRONE_TAG}/ | ||
target: /releases/${DRONE_REPO_NAME}/${DRONE_TAG} | ||
volumes: | ||
- name: cache | ||
path: /ephemeral | ||
|
||
- name: "Publish package: latest_tag" | ||
pull: if-not-exists | ||
image: plugins/s3 | ||
settings: | ||
bucket: mpn.metworx.dev | ||
source: /ephemeral/${DRONE_TAG}/**/* | ||
strip_prefix: /ephemeral/${DRONE_TAG}/ | ||
target: /releases/${DRONE_REPO_NAME}/latest_tag | ||
volumes: | ||
- name: cache | ||
path: /ephemeral | ||
|
||
volumes: | ||
- name: docker.sock | ||
host: | ||
path: /var/run/docker.sock | ||
- name: cache | ||
temp: {} | ||
|
||
trigger: | ||
event: | ||
- tag | ||
|
||
depends_on: | ||
- cran-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.