Skip to content

Commit 12c9eec

Browse files
more commit changes
1 parent a613732 commit 12c9eec

File tree

4 files changed

+85
-2
lines changed

4 files changed

+85
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ script:
3838
- STATUSCODE=$(curl -A "masscan" http://localhost:9000/index.php &> /dev/stderr --write-out "%{http_code}") | if test $STATUSCODE 52; then exit 0; fi
3939
- STATUSCODE=$(curl -I http://localhost:9000/index.php -e http://100dollars-seo.com &> /dev/stderr --write-out "%{http_code}") | if test $STATUSCODE 52; then exit 0; fi
4040
- STATUSCODE=$(curl -I http://localhost:9000/index.php -e http://zx6.ru &> /dev/stderr --write-out "%{http_code}") | if test $STATUSCODE 52; then exit 0; fi
41-
- travis-ci/before-deploy.sh
41+
- travis-ci/chanegfile.sh
4242

4343
before_deploy:
4444
#- git remote -v
@@ -62,7 +62,7 @@ before_deploy:
6262
#- git pull origin https://${GH_TOKEN}@github.com/mitchellkrogza/Travis-CI-Nginx-for-Testing-Nginx-Configuration
6363
#- git push https://${GH_TOKEN}@github.com/mitchellkrogza/Travis-CI-Nginx-for-Testing-Nginx-Configuration --all
6464
#- ls -aR
65-
- travis-ci/deploy.sh
65+
- travis-ci/deploy2.sh
6666
deploy:
6767
provider: releases
6868
api_key:

travis-ci/changefile.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
YEAR=$(date +"%Y")
3+
MONTH=$(date +"%m")
4+
sudo git config --global user.email "${GIT_EMAIL}"
5+
sudo git config --global user.name "${GIT_NAME}"
6+
sudo git config --global push.default simple
7+
export GIT_TAG=V2.$YEAR-$MONTH.$TRAVIS_BUILD_NUMBER
8+
msg="Tag Generated from TravisCI for build $TRAVIS_BUILD_NUMBER"
9+
#echo "$msg" >> $TRAVIS_BUILD_DIR/build.txt
10+
sudo $TRAVIS_BUILD_DIR/travis-ci/modify-globalblacklist.sh
11+
sudo git add $TRAVIS_BUILD_DIR/globalblacklist.conf
12+
#git add $TRAVIS_BUILD_DIR/build.txt
13+
sudo git commit -m "Update build version file with $TRAVIS_BUILD_NUMBER"
14+
15+
#YEAR=$(date +"%Y")
16+
#MONTH=$(date +"%m")
17+
#sudo git remote -v
18+
#sudo git remote rm origin
19+
#sudo git config --global user.email "${GIT_EMAIL}"
20+
#sudo git config --global user.name "${GIT_NAME}"
21+
#sudo git config --global push.default simple
22+
#export GIT_TAG=v1.0.$TRAVIS_BUILD_NUMBER
23+
#msg="Tag Generated from TravisCI for build $TRAVIS_BUILD_NUMBER"
24+
#echo "$msg" >> $TRAVIS_BUILD_DIR/build.txt
25+
#git add $TRAVIS_BUILD_DIR/build.txt
26+
#sudo $TRAVIS_BUILD_DIR/travis-ci/modify-globalblacklist.sh
27+
#sudo git add $TRAVIS_BUILD_DIR/globalblacklist.conf
28+
#sudo git commit -m "Build $GIT_TAG"

travis-ci/deploy2.sh

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
#!/bin/bash
2+
YEAR=$(date +"%Y")
3+
MONTH=$(date +"%m")
4+
sudo git config --global user.email "${GIT_EMAIL}"
5+
sudo git config --global user.name "${GIT_NAME}"
6+
sudo git config --global push.default simple
7+
sudo git remote add origin https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
8+
export GIT_TAG=V2.$YEAR-$MONTH.$TRAVIS_BUILD_NUMBER
9+
sudo git fetch --tags
10+
msg="Tag Generated from TravisCI for build $TRAVIS_BUILD_NUMBER"
11+
if git tag $GIT_TAG -a -m "$msg" 2>/dev/null; then
12+
sudo git tag $GIT_TAG -a -m "Tag Generated from TravisCI for build $TRAVIS_BUILD_NUMBER"
13+
sudo git push origin master && git push origin master --tags
14+
ls -aR
15+
else echo Tag already exists!; fi
16+
17+
#YEAR=$(date +"%Y")
18+
#MONTH=$(date +"%m")
19+
#sudo git remote add origin https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
20+
#sudo git config --global user.email "${GIT_EMAIL}"
21+
#sudo git config --global user.name "${GIT_NAME}"
22+
#sudo git config --global push.default simple
23+
#export GIT_TAG=V2.$YEAR-$MONTH.$TRAVIS_BUILD_NUMBER
24+
#export GIT_TAG=v1.0.$TRAVIS_BUILD_NUMBER
25+
#git fetch --tags
26+
#msg="Build $GIT_TAG"
27+
#if git tag $GIT_TAG -a -m "$msg" 2>/dev/null; then
28+
#sudo git tag $GIT_TAG -a -m "Build $GIT_TAG"
29+
#sudo git push origin master && git push origin master --tags
30+
#ls -aR
31+
#else echo Tag already exists!; fi
32+
33+
#- git remote -v
34+
#- git remote add origin https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
35+
#- git config --global user.email "builds@travis-ci.com"
36+
#- git config --global user.name "Travis CI"
37+
#- git config --global user.email "${GIT_EMAIL}"
38+
#- git config --global user.name "${GIT_NAME}"
39+
#- git config --global push.default simple
40+
#- export GIT_TAG=v1.0.$TRAVIS_BUILD_NUMBER
41+
#- sudo $TRAVIS_BUILD_DIR/travis-ci/modify-globalblacklist.sh
42+
#- cat $TRAVIS_BUILD_DIR/globalblacklist.conf
43+
#- git commit -am "Travis Test Passed"
44+
#- git commit -a
45+
#- cd $TRAVIS_BUILD_DIR
46+
#- git add $TRAVIS_BUILD_DIR/globalblacklist.conf
47+
#- git commit -m "Build $TRAVIS_BUILD_NUMBER"
48+
#- git commit -am "Build $TRAVIS_BUILD_NUMBER"
49+
#- git tag $GIT_TAG -a -m "Tag Generated from TravisCI for build $TRAVIS_BUILD_NUMBER"
50+
#- git push origin master && git push origin master --tags
51+
#- git pull origin https://${GH_TOKEN}@github.com/mitchellkrogza/Travis-CI-Nginx-for-Testing-Nginx-Configuration
52+
#- git push https://${GH_TOKEN}@github.com/mitchellkrogza/Travis-CI-Nginx-for-Testing-Nginx-Configuration --all
53+
#- ls -aR

travis-ci/install-nginx2.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ sudo service nginx reload
8686
sudo chmod +x $TRAVIS_BUILD_DIR/travis-ci/modify-globalblacklist.sh
8787
sudo chmod +x $TRAVIS_BUILD_DIR/travis-ci/deploy.sh
8888
sudo chmod +x $TRAVIS_BUILD_DIR/travis-ci/before-deploy.sh
89+
sudo chmod +x $TRAVIS_BUILD_DIR/travis-ci/deploy2.sh
90+
sudo chmod +x $TRAVIS_BUILD_DIR/travis-ci/changefile.sh
8991
#sudo $TRAVIS_BUILD_DIR/travis-ci/modify-globalblacklist.sh
9092
#cd $TRAVIS_BUILD_DIR
9193
#sudo git remote -v

0 commit comments

Comments
 (0)