forked from GetDKAN/recline
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.probo.yml
44 lines (40 loc) · 1.88 KB
/
.probo.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
35
36
37
38
39
40
41
42
43
44
steps:
- name: Setup QA site
# Currently this "Script" is not documented in probo's docs, but it fixes the issue of
# Probo reporting back immediately that probo is completely ready when it's not. Note that
# we need to use 'script:' instead of 'command:'
plugin: Script
script: |
# Fail right away.
set -e
# Start in the right folder of our checkout (/src)
cd $SRC_DIR;
# Modify SRC_DIR so it matchs dkan-module-init.sh requirements.
DKAN_MODULE=`ls *.info | cut -d'.' -f1`
cd ..
mv $SRC_DIR ./$DKAN_MODULE
cd $DKAN_MODULE
export SRC_DIR=`pwd`
echo ""
echo "Build $BUILD_ID "
echo ""
echo ""
echo "-------> Run 'bash dkan-init.sh':"
echo ""
# Create the proper folder structure
export DATABASE_URL="mysql://root:[email protected]/dkan"
time bash dkan-module-init.sh --deps --build=$DATABASE_URL
#Set a symlink so that probo can serve the site.
echo ""
echo "-------> Symlink ./docroot to var/www/html:"
echo ""
ln -s $SRC_DIR/docroot /var/www/html
chmod -R 777 /var/www/html/sites/default/files
echo ""
echo "The url of this build should be at:"
echo " https://$BUILD_ID.probo.build"
echo ""
echo "Known Issues (1/22/2016):"
echo " - Site may give a SQL error on initial load. Give it a few seconds and then refresh and it should work. This is due to the container apache waking up before the MYSQL. Probo.ci knows, but they say it's not at the top of the priority since few are having that issue."
echo " - You should usually choose: the Build Permalink (blue button) for doing site QA. If you don't any new commits may blow away the site while you are viewing it as well as the data. 'View Site' Green button shows the latest build, so it can change while you are interacting with it."
echo ""