File tree Expand file tree Collapse file tree 3 files changed +78
-2
lines changed Expand file tree Collapse file tree 3 files changed +78
-2
lines changed Original file line number Diff line number Diff line change @@ -16,16 +16,20 @@ addons:
16
16
- libmpc-dev
17
17
- binutils-dev
18
18
- g++-4.7
19
+
19
20
env :
21
+ global :
22
+ - secure : " jkvObuYjs4oT0bbUzLOtKLPkD2AVt/c4ZOS2qNkStC8dwtLpcYd4tLn1S07PCMYzCLL/DGvp6J8IKmzhQV7a/Yl/wVySTNBFnPecjku8Spf1UqdJbrJa8Ln/nxnajFyc2Q7QnKj8s4sguN1GRY7Jdylp9l7XgebjGwVrpKXIR+JqiSAhxkEyMmWklzu80m+BOTep0xTY/E9fFMCznQFM96jTSjq9vFxCAzToOpP3EFQyBjhDkPNQvaI3KYcBabe5DQs0wMvLEboxDEGYG+Y4ijp1d8JFmWZgzU1nQm++n8WG/Igz8rF6Asy7fHeE2/sexQf0LEqtTFtSmJFFnn6vJdn+6JOB05ARbdXc2KKzP81BCCjhPIH/KNQNMpD6p7KfXhthM0np/dxBRDlCh+6kDiuei+798YSJ63Svdr+lmg4weuxWRQh7D2lmXTcygWSW4iafCgK+D0lekg239HKcvDXPx352obM/HAz7tUiIaiOvHNlKlVL7bbHDhKWyaduAHB9jVnAIvcDWjumwyOaIPPLQL1JsL8Tha1H5uUPYWYjfNjjqk57pXq1YPUFoyiylViqX1eTWypwkXFKFJCWb6IhuW32OKEYACXJLZm7zui/qvIKiNn7PNGBxtrW/rvpvVAM94yQNhlmjxiu4/V74D0/9Oh90cPGFtoocbj5MT98="
23
+
20
24
# # All these variables are sent into the bin/test_travis.sh script. See this
21
25
# # script to know how they are used. Most of them are just passed to cmake,
22
26
# # so if they are not set, cmake will use a default value. For the rest, the
23
27
# # bin/test_travis.sh script usually checks for either "yes" or "no" in an if
24
28
# # statement, so if the variable is not set, the other if branch will get
25
29
# # executed.
26
-
30
+ matrix :
27
31
# # Out of tree builds (default):
28
- - BUILD_TYPE="Debug" WITH_BFD="yes" PYTHON_VERSION="2.7"
32
+ - BUILD_TYPE="Debug" WITH_BFD="yes" PYTHON_VERSION="2.7" TRIGGER_FEEDSTOCK="yes"
29
33
30
34
# # In-tree builds (we just check a few configurations to make sure they work):
31
35
# Debug build with Python 2.7:
@@ -115,3 +119,12 @@ script:
115
119
116
120
notifications :
117
121
email : false
122
+
123
+ deploy :
124
+ provider : pypi
125
+ user : isuruf
126
+ password :
127
+ secure : " HsVXENZjVg05Mce5Ts6iG292Ch03YHETto/512Nu1R8xeRWeerMZpumBE2X0WPrDBuV/zLMlf/jc8rN6EX9GEGaBxTPwFq5tNRTFjShUcmSxWLWPVgF7fYm1+pPjkzODOTIHPkJB00nw22DUuF2kg/gCm7uZeaGNsBELNpKPJyRv9ShxOLqOxK+WR5QQw+xMmmq+ugsc1/kjnxuczcUs/dXyYfFrw9nrKD8qUPeyEsaea1jUxDIVLBtaxnwbmhtw+GPE5tH+5Q/Y8mA7epw5Znj47W+WxfF/sdtBt31m9KNmMcISYpvUHpcju/gTUAeRBU0Ln04teR6iMHUcQJerM0T61uZCNCoYQv1A9oVKA3NO1Gb6in8BqoR+wZB2po+g8U3x+nKGxJrFNekm9zAhs7yQEYnP6C9ekUpe+73qi6I6fzMB71sMJa6SegYL99z+UW6zjhIesf6nX43U+954pN7FsrIzkdTHW67YrBfKr8PEZ0VPxJzokWTPkYO5Qkvjp1TNyFBsV2DS5qpMMYHYxNDbxj5elYZxPt+bvRbtmMdS4p2ze5DVWEQbwW+jZydBoccH6uAhjXkFRil9/5LAJmwfIYcBrF6RkZu1VhSSIULhtOqtA7psSSBSprqyhPsvs8l13PUs92SogXCrYFfHgNR6J8UM3iiP0yooeV6Z+gw="
128
+ on :
129
+ condition : $TRIGGER_FEEDSTOCK = yes
130
+ tags : true
Original file line number Diff line number Diff line change 20
20
if [[ " ${WITH_SAGE} " == " yes" ]]; then
21
21
sage -t $PYTHON_SOURCE_DIR /symengine/tests/test_sage.py
22
22
fi
23
+
24
+ if [[ " ${TRIGGER_FEEDSTOCK} " == " yes" ]]; then
25
+ cd $PYTHON_SOURCE_DIR
26
+ ./bin/trigger_feedstock.sh
27
+ fi
28
+
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -x
4
+
5
+ if [[ " ${TRIGGER_FEEDSTOCK} " != " yes" ]]; then
6
+ exit 0;
7
+ fi
8
+ if [[ " ${TRAVIS_PULL_REQUEST} " != " false" ]]; then
9
+ echo " Testing a pull request, feedstock is not triggered." ;
10
+ exit 0;
11
+ fi
12
+ if [[ " ${GH_TOKEN} " == " " ]]; then
13
+ echo " Testing a fork, feedstock is not triggered." ;
14
+ exit 0;
15
+ fi
16
+
17
+
18
+ cd $PYTHON_SOURCE_DIR ;
19
+ git clean -dfx;
20
+ export ver=` git describe --tags`
21
+ if [[ $ver == " v" * ]]
22
+ then
23
+ ver=${ver: 1} ;
24
+ fi
25
+
26
+ export symengine_ver=` cat symengine_version.txt`
27
+ if [[ $symengine_ver == " v" * ]]
28
+ then
29
+ symengine_ver=${symengine_ver: 1} ;
30
+ fi
31
+
32
+ export commit=` git rev-parse HEAD`
33
+
34
+ git config --global user.name " Isuru Fernando"
35
+ git config --global user.email " isuruf@gmail.com"
36
+
37
+ set +x
38
+ git clone " https://${GH_TOKEN} @github.com/symengine/python-symengine-feedstock.git" feedstock -q
39
+ set -x
40
+
41
+ cd feedstock
42
+ if [[ " ${TRAVIS_TAG} " != " " ]]; then
43
+ git checkout tagged
44
+ else
45
+ echo " Testing merge. Not triggering feedstock"
46
+ exit 0
47
+ # git checkout dev
48
+ fi
49
+
50
+ sed -ie ' 1,2d' recipe/meta.yaml
51
+ sed -i ' 1s/^/{% set version = "' ${ver} ' " %}\n/' recipe/meta.yaml
52
+ sed -i ' 1s/^/{% set commit = "' ${commit} ' " %}\n/' recipe/meta.yaml
53
+ sed -i ' s/^ - symengine [0-9].*/ - symengine ' ${symengine_ver} ' /' recipe/meta.yaml
54
+ git add recipe/meta.yaml
55
+ git commit -m " Update symengine version to ${ver} "
56
+ git push -q
57
+
You can’t perform that action at this time.
0 commit comments