-
Notifications
You must be signed in to change notification settings - Fork 31
/
travis-build.sh
executable file
·39 lines (30 loc) · 1.75 KB
/
travis-build.sh
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
#!/bin/bash
rm -rf docker/files/*.*
echo "Building Peregrine CMS..."
mvn clean install -q
#disabled building the sling builder and instead pull sling builder and far from separate project
#echo "Building Peregrine CMS Feature Launcer..."
#cd sling/peregrine-builder-sling-12 && mvn clean install --quiet
#cd ../..
echo "Fetching Peregrine CMS Feature Launcher..."
curl -L -o ./docker/files/com.peregrine-cms.sling.launchpad-13-SNAPSHOT-oak_tar_far.far https://github.com/peregrine-cms/peregrine-builder/releases/download/0.0.11/com.peregrine-cms.sling.launchpad-13-SNAPSHOT-oak_tar_far.far
curl -L -o ./docker/files/org.apache.sling.feature.launcher-1.3.0.zip https://github.com/peregrine-cms/peregrine-builder/releases/download/0.0.11/org.apache.sling.feature.launcher-1.3.0.zip
unzip -q ./docker/files/org.apache.sling.feature.launcher-1.3.0.zip -d ./docker/files/
echo "Building 'themeclean-flex'..."
git clone https://github.com/headwirecom/themeclean-flex
cd themeclean-flex
git checkout develop-sling12
mvn clean install -q
cd ..
echo "Copying packages to Docker working directory..."
rm -rf ./docker/files/*.zip
find . -type f -name \*.zip -exec cp {} ./docker/files/ \;
rm ./docker/files/npm-*.zip
#echo "Copy select bundles..."
#cp platform/login/target/login-1.0-SNAPSHOT.jar ./docker/files/
#echo "Copying Feature Models artifacts to Docker working directory..."
#cp sling/peregrine-builder-sling-12/target/dependency/org.apache.sling.feature.launcher.jar ./docker/files/
#cp sling/peregrine-builder-sling-12/target/slingfeature-tmp/feature-oak_tar.json ./docker/files/
#cp sling/peregrine-builder-sling-12/target/com.peregrine-cms.sling.launchpad-12-SNAPSHOT-oak_tar_far.far ./docker/files/
echo "Removing temporary 'themeclean-flex' project..."
rm -rf themeclean-flex