Skip to content

Commit 94b715c

Browse files
committed
Reduce job execution time
1 parent fd9b24f commit 94b715c

File tree

3 files changed

+29
-23
lines changed

3 files changed

+29
-23
lines changed

.travis.yml

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,19 @@ install:
1616
script:
1717
- sudo bash run_tests.sh
1818

19-
#notifications:
20-
# email: false
21-
#
22-
#after_success:
23-
# - sudo bash ./Scripts/merge_develop_to_master.sh
24-
#
25-
#before_deploy:
26-
# - echo "Build Jarvis package"
27-
# - tar -cvf jarvis_package.tar -T config/package_file_list.txt
28-
# - echo "Add tags to new release"
29-
# - git config --global user.email "[email protected]"
30-
# - git config --global user.name "Travis CI"
31-
# - export GIT_TAG=$TRAVIS_BRANCH-0.1.$TRAVIS_BUILD_NUMBER
32-
# - git tag $GIT_TAG -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER"
33-
# - git push -q https://[email protected]/ggeop/Python-ai-assistant --tags
34-
#
35-
#deploy:
36-
# provider: releases
37-
# skip_cleanup: true
38-
# api_key: $GITHUB_TOKEN
39-
# file: jarvis_package.tar
40-
# on:
41-
# branch: master
19+
before_deploy:
20+
- bash bin/deploy/new_release_auto_tagging.sh
21+
22+
deploy:
23+
provider: releases
24+
skip_cleanup: true
25+
api_key: $GITHUB_TOKEN
26+
file: jarvis_package.tar
27+
on:
28+
branch: master
29+
30+
after_deploy:
31+
- sudo bash bin/deploy/merge_develop_to_master.sh
32+
33+
notifications:
34+
email: false
File renamed without changes.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
#--------------------------------------------------
4+
# Add tag to new release (release based on master)
5+
#-------------------------------------------------
6+
echo "Build Jarvis package"
7+
tar -cvf jarvis_package.tar -T config/package_file_list.txt
8+
echo "Add tags to new release"
9+
git config --global user.email "[email protected]"
10+
git config --global user.name "Travis CI"
11+
export GIT_TAG=$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER
12+
git tag $GIT_TAG -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER"
13+
git push -q https://$GITHUB_TOKEN@github.com/ggeop/Python-ai-assistant --tags

0 commit comments

Comments
 (0)