blob: 5e44b5de32286eae20d72fd5bfba22f9ff53b948 [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
- name: create build group
group:
name: build
state: present
- name: create build user
user:
name: build
createhome: yes
group: build
state: present
- name: install grunt-cli
npm:
name: grunt-cli
global: yes
state: present
- name: get CouchDB sources from git
git:
repo: https://gitbox.apache.org/repos/asf/couchdb.git
dest: /usr/src/couchdb-checkout
accept_hostkey: yes
force: yes
- name: set permissions on couchdb build
file:
path: /usr/src/couchdb-checkout
state: directory
owner: build
group: build
recurse: yes
# 1) `make dist` will be run in /usr/src/couchdb-checkout (this is directly
# pulled from git
# 2) the resulting tarball will be extracted to /usr/src/couchdb, where
# `make all check` is run.
- name: create directory for make check all
file:
path: /usr/src/couchdb
state: directory
owner: build
group: build
- name: copy build script
copy:
src: build-ci.sh
dest: /home/build/build-ci.sh
owner: build
group: build
mode: 0755