This repository was archived by the owner on Aug 9, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +24
-21
lines changed Expand file tree Collapse file tree 3 files changed +24
-21
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,8 @@ script:
43
43
- if [ ${TRAVIS_PHP_VERSION:0:3} == "$CS" ] && [ "$GLPI_BRANCH" = "$AFTER_SUCCESS_BRANCH" ]; then vendor/bin/phpcs -p --standard=vendor/glpi-project/coding-standard/GlpiStandard/ *.php install/ inc/ front/ ajax/ tests/; fi
44
44
45
45
after_success :
46
- # let's update the documentation
47
- - if [ ${TRAVIS_PHP_VERSION:0:3} == "$CS" ] && [ "$GLPI_BRANCH" = "$AFTER_SUCCESS_BRANCH" ]; then tests/update_locales.sh; fi
48
- - if [ ${TRAVIS_PHP_VERSION:0:3} == "$CS" ] && [ "$GLPI_BRANCH" = "$AFTER_SUCCESS_BRANCH" ]; then .github/push_ghpages.sh; fi
46
+ # let's update the documentation and locales
47
+ - if [ ${TRAVIS_PHP_VERSION:0:3} == "$CS" ] && [ "$GLPI_BRANCH" = "$AFTER_SUCCESS_BRANCH" ]; then tests/after_success.sh; fi
49
48
50
49
cache :
51
50
directories :
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- # please set the $GH_TOKEN in your travis dashboard
2
+ #
3
+ # After success script for Travis CI
4
+ #
5
+
6
+ # please keep tasks strongly separated,
7
+ # no matter they have the same if block
3
8
9
+ # please set $TX_USER and $TX_TOKEN in your travis dashboard
10
+ if [ " $TRAVIS_BRANCH " = " develop" ] && [ " $TRAVIS_PULL_REQUEST " = false ]; then
11
+ echo " updating source language"
12
+ sudo apt install transifex-client
13
+ echo " [https://www.transifex.com]" > ~ /.transifexrc
14
+ echo " api_hostname = https://api.transifex.com" >> ~ /.transifexrc
15
+ echo " hostname = https://www.transifex.com" >> ~ /.transifexrc
16
+ echo " token = ${TX_TOKEN} " >> ~ /.transifexrc
17
+ echo " password = ${TX_TOKEN} " >> ~ /.transifexrc
18
+ echo " username = ${TX_USER} " >> ~ /.transifexrc
19
+ php vendor/bin/robo locales:send
20
+ else
21
+ echo " skipping source language update"
22
+ fi
23
+
24
+ # please set the $GH_TOKEN in your travis dashboard
4
25
if [ " $TRAVIS_BRANCH " = " develop" ] && [ " $TRAVIS_PULL_REQUEST " = false ]; then
5
26
# wget http://get.sensiolabs.org/sami.phar -O "$HOME/bin/sami.phar"
6
27
# setup_git only for the main repo and not forks
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments