File tree Expand file tree Collapse file tree 3 files changed +69
-2
lines changed Expand file tree Collapse file tree 3 files changed +69
-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 : " b+fS4EkSfk+z+6Gk114TmbEA4O3okYq2GgK7sRc2B1zxx0wjCLKQqtwZRawlGbDocO94zpaCEVugMChAd4hqsEQio02YKSvQH2RWq03FYl4Uqs287p/UDW5sZzhwM0D5fhWgdncNfVExdRbbdAFbGjHlZIYnEgr8bcHU7WsbnBbpESsB3dslFFjLG9VzX2Bm1jcDNpZTHzveU1XxMecIJ1JQjBhJoXmZiySgancqkQeGitOqq/e0yKyc8clLCyynVRtgHfR5IPaBYqnG0j2jULtjj8xAjX7TZTU6oI7RJ6SD09tj+6LpmSq6EDEdkIaDuT6r++Yx6yCBuEl6h+n94dIcRPMAIyNW7FtW4/AtCk4JCkC1RlB+omcpDg2uZL9lwMRaYsBvY6eaIAIdCwWU7VC+ixBaOCxllIDjQTby9iO++EOHNzX6A8mUaYVT8Vh5vkRzAhc6VTJgk0TfzaViwRYvib7qD4dIovKp4byhHS/fGImN3jGU3ZQO9fb6S/DdPeXj+PlCdme3yK+0M+faLsb8tBeJHZaQqiyB2onZOJ5cSl/sqSU+DXXCtN30uj+Vpceedv71NZx2cKYw4c64dzbdNlYd/RDk1JyaKK1drtyMXcPsEV26egbsM+jrzVR9NjdlX6eqB6GISrlgOkGkaYfdBJH/9Pzv5oRmoIER2b8="
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:
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
" [email protected] "
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