File tree 13 files changed +102
-15
lines changed
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)
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ source travis/functions.sh
4
+
5
+ # make scripts executable
6
+ chmod +x travis/Java/*
7
+
8
+ # Calculate variables
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ source travis/functions.sh
4
+
5
+ # make scripts executable
6
+ chmod +x travis/.NET/*
7
+ chmod +x travis/.NET/scripts/*
8
+
9
+ # Calculate variables
10
+ _SOLUTION=" ${SOLUTION_NAME} .sln"
11
+ if tr_isSet SOLUTION_PATH; then
12
+ echo " solution path is set"
13
+ _SOLUTION=" ${SOLUTION_PATH}${SOLUTION_NAME} .sln"
14
+ fi
15
+ echo " command: export SOLUTION_PATH_AND_NAME=$_SOLUTION "
16
+ export SOLUTION_PATH_AND_NAME=$_SOLUTION
Original file line number Diff line number Diff line change 2
2
3
3
# make scripts executable
4
4
chmod +x travis/*
5
- chmod +x travis/.NET/*
6
- chmod +x travis/.NET/scripts/*
7
5
8
6
tr_setProjectSubdir () {
9
7
export TRAVIS=travis/$1
@@ -30,12 +28,3 @@ tr_isSetAndNotFalse() {
30
28
return 1
31
29
fi
32
30
}
33
-
34
- # Calculate variables
35
- _SOLUTION=" ${SOLUTION_NAME} .sln"
36
- if tr_isSet SOLUTION_PATH; then
37
- echo " solution path is set"
38
- _SOLUTION=" ${SOLUTION_PATH}${SOLUTION_NAME} .sln"
39
- fi
40
- echo " command: export SOLUTION_PATH_AND_NAME=$_SOLUTION "
41
- export SOLUTION_PATH_AND_NAME=$_SOLUTION
You can’t perform that action at this time.
0 commit comments