Skip to content

Commit 10eebf4

Browse files
Clean + finalisation
1 parent 6ee39a9 commit 10eebf4

File tree

2 files changed

+21
-18
lines changed

2 files changed

+21
-18
lines changed

.travis.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,21 @@ sudo: false
44

55
env:
66
global:
7-
- secure: 549851351984132896537
7+
- secure: 123123123123123123
88
- GIT_NAME: Travis CI
99
- GIT_EMAIL: builds@travis-ci.org
10-
- TRAVIS_REPO_SLUG: addventa/ChatScriptDeploy
11-
- GIT_BRANCH: openSource
12-
- GH_TOKEN: 807e7fae01b7948d63eca9e3b0853eb0b18ad9d2 # Your Github token
13-
- GIT_TAG: 'HelloWorld-1.0-$TRAVIS_BUILD_NUMBER'
10+
- TRAVIS_REPO_SLUG: ChatScriptDeploy # Your repository
11+
- GIT_BRANCH: master
12+
- GH_TOKEN: 42Y42Y42Y42Y42Y # Your Github token
13+
- GIT_TAG: 'HelloBot-1.0-$TRAVIS_BUILD_NUMBER'
1414

1515
git:
1616
submodules: false
1717

18-
# blocklist
19-
branches:
20-
except:
21-
- master
22-
- releases
23-
2418
# safelist
2519
branches:
2620
only:
27-
- openSource
21+
- master
2822

2923
before_install:
3024
- echo -e "machine github.com\n login ci-user\n password $GH_TOKEN" >> ~/.netrc
@@ -47,6 +41,6 @@ deploy:
4741
- "$GIT_TAG.zip"
4842
skip_cleanup: true
4943
on:
50-
repo: addventa/ChatScriptDeploy
44+
repo: ChatScriptDeploy
5145
branch: $GIT_BRANCH
5246
tags: false

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ This repository contains 2 useful scripts which install bots and different versi
55
- install.sh
66
- deploybot.sh
77

8+
We also have a simple bot which will allows you to tryout our scripts without having to create a bot.
9+
10+
Follow the steps below to assimilate how the scripts works, as well as the automatic-release of travis.
11+
812
## Install ChatScript on your Linux server
913

1014
### How to use the script ?
@@ -33,7 +37,9 @@ You must have a bot, and his data must be organized like in this repository:
3337
### What does Travis do ?
3438

3539
There is a .travis.yml which is our travis file to auto-release the bot.
36-
Travis is triggered at each commit on the branch 'openSource', execute the packaging script and create a release from a tag.
40+
Travis is triggered at each commit on the branch 'master', execute the packaging script and create a release from a tag.
41+
42+
The .travis.yml file need the scripts in release folder to create and commit release on github.
3743

3844
* [Travis Documentation](https://docs.travis-ci.com/) - For more informations.
3945

@@ -57,25 +63,28 @@ Enter your github token.
5763

5864
- Download the Bot version selected in BOTS folder.
5965
- Start or Restart your current Bot.
60-
- We chose to put the folders TOPIC, USERS and LOGS in the Bot folder because this is specific to each bot, not to ChatScript.
66+
- Reset the cron job depending on the bot you just have deployed.
67+
- We chose to put the folders TOPIC, USERS and LOGS in the Bot folder because this is specific to each bot, not to ChatScript; it is this organization that allows us to have a better logic in our architechture.
6168
- Delete your private data (BOTDATA, files1.txt)
6269

6370
If you are looking for more info, you are free to read the code :).
6471

65-
### Tree
72+
### Final Tree Example
6673

6774
```
6875
BOTS
6976
|------ HelloBot
70-
|------ BOTDATA
77+
|------ BOTDATA*
7178
|------ LOGS
7279
|------ TOPIC
7380
|------ USERS
74-
|------ files1.txt
81+
|------ files1.txt*
7582
CS
7683
|------ authorizedIP.txt
7784
|------ ChatScript -> ChatScript-7.3
7885
|------ ChatScript-7.3
7986
|------ ChatScript-7.1
8087
|------ authorizedIP.txt -> ../authorizedIP.txt
8188
```
89+
90+
* *Deleted at the end of the deployment to not leave your own data.

0 commit comments

Comments
 (0)