File tree Expand file tree Collapse file tree 2 files changed +45
-7
lines changed Expand file tree Collapse file tree 2 files changed +45
-7
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,30 @@ python:
5
5
sudo : required
6
6
services :
7
7
- docker
8
- install :
9
- - pip install --upgrade pip
10
- - make dev-env
11
- script :
12
- - set -e
13
- - if [ $(make n-docs-diff) -ne 0 ]; then make docs; fi;
14
- - if [ $(make n-other-diff) -ne 0 ]; then make build-test-all DARGS="--build-arg TEST_ONLY_BUILD=1"; fi;
8
+
9
+ jobs :
10
+ include :
11
+ - stage : test-pr
12
+ install :
13
+ - pip install --upgrade pip
14
+ - make dev-env
15
+ script :
16
+ - set -e
17
+ - if [ $(make n-docs-diff) -ne 0 ]; then make docs; fi;
18
+ - if [ $(make n-other-diff) -ne 0 ]; then make build-test-all DARGS="--build-arg TEST_ONLY_BUILD=1"; fi;
19
+ - stage : push-tx
20
+ install :
21
+ - pip install --upgrade pip
22
+ - make dev-env
23
+ script :
24
+ - if [ $(make n-docs-diff) -ne 0 ]; then make tx-en; fi;
25
+
26
+ stages :
27
+ - name : test-pr
28
+ if : type = pull_request
29
+ - name : push-tx
30
+ if : type = push AND branch = master
31
+
32
+ env :
33
+ global :
34
+ secure : JDQKgB1laaenzmEGI9gduwK/iS0030qsl62njJg3jib0R8wxBi2OeetEdoGl9m4NFsqqnp0OO7nm4rzGfuwjL1A38flSlXOTxhjm/hvo3vmnqVu5lDcdk9+IRkafnfd3Dyd86tLxRVETOqZwCLmdNkB2fmQII8du5IIqbJuUGp8DrG7kVMf3NBr9rjkZRfByQrgG4s1NXuT61VvpWMPJAOhcrImuHBheVJDEV0U3n6Xavd7Wo+pAHrHU8exvYTZ1IzZMbHc6K0iC/NpCHcH9+9DAeLDk/q1aDNqbTExnQevOHZzNqgHC2qFOlN4jfy/TLYLpLXtUismneBBqVSK3iZso3Vqy2BRXWgouI+Tt+08ffocy9XPwEzSwkgPgDlFVUikPOy5imwjpDb13RMIyMY4CKlSOdQx2rH2kPkZ0MJJPcki3KGuGl3qRvqyblMn+lZvjAu6WVLZfo7EtcxsQ0ZZxbAbGoUVl27FHg+UvIfC0I3wEcZIp7oED47Q8s0MdCijD3AwkRPvx/iyp3J0A42su7kkOooFcmUItEIqegQJ4Aki1FBv2i5vHmBobClktytZceLsKvzCeLjMpL9HcUVfUaJDKRwtUYIozpYeBnac+E6J1s6glcqLrXIHWez8N6SzokBa6SPqdtODdzzk5OJupByub6CYWsRXvxIQ7/wI=
Original file line number Diff line number Diff line change @@ -66,6 +66,24 @@ n-docs-diff: ## number of docs/ files changed since branch from master
66
66
n-other-diff : # # number of files outside docs/ changed since branch from master
67
67
@git diff --name-only master...HEAD -- ' :!docs/' | wc -l | awk ' {print $$1}'
68
68
69
+ tx-en : # # rebuild en locale strings and push to master
70
+ git config --global user.email
" [email protected] "
71
+ git config --global user.name " Travis CI"
72
+
73
+ git checkout master
74
+
75
+ pushd docs
76
+ make clean gettext
77
+ sphinx-intl build -p _build/gettext -l en
78
+ popd
79
+
80
+ git add docs/locale/en
81
+ git commit -m "Update en source strings for $$TRAVIS_COMMIT"
82
+
83
+ git remote add origin-tx https://$${GH_TOKEN}@github.com/jupyter/docker-stacks.git
84
+ git push -u origin-tx master
85
+
86
+
69
87
test/% : # # run tests against a stack
70
88
@TEST_IMAGE=" $( OWNER) /$( notdir $@ ) " pytest test
71
89
You can’t perform that action at this time.
0 commit comments