| # 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 couchdb group |
| group: |
| name: couchdb |
| state: present |
| |
| - name: create couchdb user |
| user: |
| name: couchdb |
| createhome: yes |
| group: couchdb |
| 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: couchdb |
| group: couchdb |
| 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: couchdb |
| group: couchdb |
| |
| - name: copy build script |
| copy: |
| src: build-ci.sh |
| dest: /home/couchdb/build-ci.sh |
| owner: couchdb |
| group: couchdb |
| mode: 0755 |