File tree Expand file tree Collapse file tree 13 files changed +102
-15
lines changed Expand file tree Collapse file tree 13 files changed +102
-15
lines changed Original file line number Diff line number Diff line change 42
42
depth : false
43
43
install :
44
44
- git clone https://github.com/UnterrainerInformatik/Travis-Scripts.git travis
45
- - source travis/functions.sh
45
+ - source travis/functions.NET. sh
46
46
- tr_setProjectSubdir .NET
47
47
- source $TRAVIS/install.sh
48
48
before_script :
Original file line number Diff line number Diff line change 42
42
depth : false
43
43
install :
44
44
- git clone https://github.com/UnterrainerInformatik/Travis-Scripts.git travis
45
- - source travis/functions.sh
45
+ - source travis/functions.NET. sh
46
46
- tr_setProjectSubdir .NET
47
47
- source $TRAVIS/install.sh
48
48
before_script :
Original file line number Diff line number Diff line change 4
4
# we have to re-import everyting.
5
5
# Environment variables should be set though (travis takes care of that).
6
6
echo " re-sourcing functions"
7
- source travis/functions.sh
7
+ source travis/functions.NET. sh
8
8
9
9
mkdir -p ziptemp/$SOLUTION_NAME
10
10
cp -a $BUILD_TARGET /* ziptemp/$SOLUTION_NAME
Original file line number Diff line number Diff line change 4
4
# we have to re-import everyting.
5
5
# Environment variables should be set though (travis takes care of that).
6
6
echo " re-sourcing functions"
7
- source travis/functions.sh
7
+ source travis/functions.NET. sh
8
8
9
9
echo " starting deploy stage"
10
10
if tr_isSetAndNotFalse NUGET; then
Original file line number Diff line number Diff line change
1
+ language : java
2
+ git :
3
+ depth : false
4
+ install :
5
+ - git clone https://github.com/UnterrainerInformatik/Travis-Scripts.git travis
6
+ - source travis/functions.Java.sh
7
+ - tr_setProjectSubdir .NET
8
+ - source $TRAVIS/install.sh
9
+ before_script :
10
+ - source $TRAVIS/before_script.sh
11
+ script :
12
+ - source $TRAVIS/script.sh
13
+
14
+ before_deploy : ./$TRAVIS/before_deploy.sh
15
+ deploy :
16
+ - provider : script
17
+ skip_cleanup : true
18
+ script : ./$TRAVIS/deploy.sh
19
+ on :
20
+ branch : master
21
+ - provider : releases
22
+ skip_cleanup : true
23
+ overwrite : true
24
+ api_key :
25
+ secure : $GITHUB_API_KEY
26
+ file : $DEPLOY_BUILD.$VERSION.zip
27
+ on :
28
+ tags : true
29
+ branch : master
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Since the deploy-stage has limited bash capabilities AND is a different shell,
4
+ # we have to re-import everyting.
5
+ # Environment variables should be set though (travis takes care of that).
6
+ echo " re-sourcing functions"
7
+ source travis/functions.Java.sh
8
+
9
+ mkdir -p ziptemp/$ARTIFACT_ID
10
+ cp -a target/* ziptemp/$ARTIFACT_ID
11
+
12
+ cd ziptemp
13
+ zip -r $ARTIFACT_ID .$POM_VERSION .zip $ARTIFACT_ID /*
14
+ mv $ARTIFACT_ID .$POM_VERSION .zip ../$ARTIFACT_ID .$POM_VERSION .zip
15
+
16
+ cd -
17
+ rm -rf ziptemp
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # ######################################################
4
+ # ENVIRONMENT VARIABLES
5
+ # ######################################################
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Since the deploy-stage has limited bash capabilities AND is a different shell,
4
+ # we have to re-import everyting.
5
+ # Environment variables should be set though (travis takes care of that).
6
+ echo " re-sourcing functions"
7
+ source travis/functions.Java.sh
8
+
9
+ echo " starting deploy stage"
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ output=$( printf \
4
+ ' LOCAL_REPOSITORY=${settings.localRepository}\n' \
5
+ ' GROUP_ID=${project.groupId}\n'
6
+ ' ARTIFACT_ID=${project.artifactId}\n' \
7
+ ' POM_VERSION=${project.version}\n0\n' \
8
+ | mvn help:evaluate --non-recursive )
9
+
10
+ export LOCAL_REPO=$( echo " $output " | grep ' ^LOCAL_REPOSITORY' | cut -d = -f 2)
11
+ export GROUP_ID=$( echo " $output " | grep ' ^GROUP_ID' | cut -d = -f 2)
12
+ export ARTIFACT_ID=$( echo " $output " | grep ' ^ARTIFACT_ID' | cut -d = -f 2)
13
+ export POM_VERSION=$( echo " $output " | grep ' ^POM_VERSION' | cut -d = -f 2)
You can’t perform that action at this time.
0 commit comments