Procházet zdrojové kódy

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 před 6 roky
rodič
revize
47dc4168f8
2 změnil soubory, kde provedl 5 přidání a 5 odebrání
  1. 2
    2
      .travis.yml
  2. 3
    3
      transifex.sh

+ 2
- 2
.travis.yml Zobrazit soubor

41
 
41
 
42
 env:
42
 env:
43
   global:
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
     # These two environment variables could be set by Travis itself, or Travis
47
     # These two environment variables could be set by Travis itself, or Travis
48
     # could configure itself in /etc/, ~/, or inside of the virtual
48
     # could configure itself in /etc/, ~/, or inside of the virtual

+ 3
- 3
transifex.sh Zobrazit soubor

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

Načítá se…
Zrušit
Uložit