forked from Alfresco/alfresco-docker-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (30 loc) · 1.13 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
language: node_js
services: docker
sudo: required
node_js:
- v17
# after_script: cat ./coverage/lcov.info | coveralls
before_install:
- sudo /etc/init.d/postgresql stop
- export NODE_OPTIONS=--openssl-legacy-provider
- npm install -g -d yo
- npm install -g -d yeoman-generator
- npm install --global generator-alfresco-docker-installer
- yo alfresco-docker-installer --acsVersion=6.2 --ram=8 --mariadb=false --https=false --serverName=localhost --port=80 --ftp=false --crossLocale=false --smtp=false --ldap=false --addons=js-console --startscript=false --windows=true --password=admin
# remove volume which create a permission denied issue
- sed -i '\|logs/postgres|d' ./docker-compose.yml
stages:
- name: Deploy Test
jobs:
include:
# - stage: Deploy Test
# name: Deploy with start script
# script: chmod +x start.sh && ./start.sh
- stage: Deploy Test
name: Deploy without start script
script:
- docker-compose up --build --force-recreate -d
- node_modules/wait-on/bin/wait-on "http://localhost:80/alfresco/" -t 500000
after_failure:
- docker-compose config
- docker-compose logs