Ver código fonte

Update transifex-client used in CI build

The version we are currently using is out of date, and the Transifex API
has changed to use API keys instead of username and password.
master
Samir Shah 6 anos atrás
pai
commit
47dc4168f8
2 arquivos alterados com 5 adições e 5 exclusões
  1. 2
    2
      .travis.yml
  2. 3
    3
      transifex.sh

+ 2
- 2
.travis.yml Ver arquivo

@@ -41,8 +41,8 @@ matrix:
41 41
 
42 42
 env:
43 43
   global:
44
-    # $TRANSIFEX_PASSWORD for oscar_bot (used in transifex.sh)
45
-    - secure: FuIlzEsGJiAwhaIRBmRNsq9eXmuzs25fX6BChknW4lDyVAySWMp0+Zps9Bd0JgfFYUG3Ip+OTmksYIoTUsG25ZJS9cq1IFt3QKUAN70YCI/4ZBLeIdICPEyxq+Km179+NeEXmBUug17RLMLxh3MWfO+RKUHK9yHIPNNpq0dNyoo=
44
+    # $TRANSIFEX_PASSWORD - Transifex API key (used in transifex.sh)
45
+    - secure: fFOuN7cZxN74zVN6tkxwr9Kby4qxC0AxV+jvcT5HVaQ1sSl0L5SxRA7EzgCSTbkz3QjCVFrQfEvGflqTWCFqtF4ou2S9ip7Nhhs+TjsDqErhyAOodqwacp0DSzjlvPBx7AVyajdzV9iHtHrcLHyS9v5aaeCGQ4RXIqRntcM4l/c=
46 46
 
47 47
     # These two environment variables could be set by Travis itself, or Travis
48 48
     # could configure itself in /etc/, ~/, or inside of the virtual

+ 3
- 3
transifex.sh Ver arquivo

@@ -11,12 +11,12 @@ if [ $? -eq 0 ] && [ $TRAVIS_BRANCH == master ]
11 11
 then
12 12
     echo "Submitting translation files to Transifex"
13 13
     make messages
14
-    pip install "transifex-client==0.10"
14
+    pip install "transifex-client>=0.13,<0.14"
15 15
     # Write .transifexrc file
16 16
     echo "[https://www.transifex.com]
17
+api_hostname = https://www.transifex.com
17 18
 hostname = https://www.transifex.com
18 19
 password = $TRANSIFEX_PASSWORD
19
-token = 
20
-username = oscar_bot" > ~/.transifexrc
20
+username = api" > ~/.transifexrc
21 21
     tx push --source --no-interactive
22 22
 fi

Carregando…
Cancelar
Salvar