]>
Commit | Line | Data |
---|---|---|
1d09f67e TL |
1 | # Licensed to the Apache Software Foundation (ASF) under one |
2 | # or more contributor license agreements. See the NOTICE file | |
3 | # distributed with this work for additional information | |
4 | # regarding copyright ownership. The ASF licenses this file | |
5 | # to you under the Apache License, Version 2.0 (the | |
6 | # "License"); you may not use this file except in compliance | |
7 | # with the License. You may obtain a copy of the License at | |
8 | # | |
9 | # http://www.apache.org/licenses/LICENSE-2.0 | |
10 | # | |
11 | # Unless required by applicable law or agreed to in writing, software | |
12 | # distributed under the License is distributed on an "AS IS" BASIS, | |
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
14 | # See the License for the specific language governing permissions and | |
15 | # limitations under the License. | |
16 | ||
17 | jobs: | |
18 | - job: linux | |
19 | pool: | |
20 | vmImage: ubuntu-latest | |
21 | timeoutInMinutes: 360 | |
22 | steps: | |
23 | - script: | | |
24 | set -ex | |
25 | git clone --no-checkout {{ arrow.remote }} arrow | |
26 | git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }} | |
27 | git -C arrow checkout FETCH_HEAD | |
28 | git -C arrow submodule update --init --recursive | |
29 | displayName: Clone arrow | |
30 | ||
31 | - script: | | |
32 | set -ex | |
33 | docker -v | |
34 | docker-compose -v | |
35 | cd arrow | |
36 | export R_ORG={{ r_org }} | |
37 | export R_IMAGE={{ r_image }} | |
38 | export R_TAG={{ r_tag }} | |
39 | export DEVTOOLSET_VERSION={{ devtoolset_version|default("-1") }} | |
40 | docker-compose pull --ignore-pull-failures r | |
41 | docker-compose build r | |
42 | displayName: Docker build | |
43 | ||
44 | - script: | | |
45 | set -ex | |
46 | cd arrow | |
47 | export R_ORG={{ r_org }} | |
48 | export R_IMAGE={{ r_image }} | |
49 | export R_TAG={{ r_tag }} | |
50 | export ARROW_R_DEV={{ not_cran|default("TRUE") }} | |
51 | # Note that by default, ci/scripts/r_test.sh sets NOT_CRAN=true | |
52 | # if ARROW_R_DEV=TRUE. Pass `-e NOT_CRAN=false` to turn that off. | |
53 | docker-compose run {{ flags|default("") }} r | |
54 | displayName: Docker run | |
55 | ||
56 | - script: | | |
57 | set -ex | |
58 | cat arrow/r/check/arrow.Rcheck/00install.out | |
59 | displayName: Dump install logs | |
60 | condition: succeededOrFailed() | |
61 | - script: | | |
62 | set -ex | |
63 | cat arrow/r/check/arrow.Rcheck/tests/testthat.Rout* | |
64 | displayName: Dump test logs | |
65 | condition: succeededOrFailed() |