File tree Expand file tree Collapse file tree 7 files changed +55
-34
lines changed Expand file tree Collapse file tree 7 files changed +55
-34
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ matrix:
11
11
install :
12
12
- docker pull $DOCKER_IMAGE
13
13
script :
14
+ - export TRAVIS_TAG_DSS_PYTHON=$TRAVIS_TAG
15
+ - export TRAVIS_TAG=
14
16
- cd ..
15
17
- mkdir artifacts
16
18
- mkdir artifacts/linux-64
@@ -26,6 +28,8 @@ matrix:
26
28
- name : " osx_x64"
27
29
os : osx
28
30
script :
31
+ - export TRAVIS_TAG_DSS_PYTHON=$TRAVIS_TAG
32
+ - export TRAVIS_TAG=
29
33
- git clone --branch 0.10.1 https://github.com/dss-extensions/electricdss-src ../electricdss-src
30
34
- git clone --branch 0.10.1 https://github.com/dss-extensions/dss_capi ../dss_capi
31
35
- bash ci/build_osx.sh
Original file line number Diff line number Diff line change @@ -14,35 +14,6 @@ environment:
14
14
- CONDA_SUBDIR : win-64
15
15
16
16
build_script :
17
- - cmd : >-
18
- rd /s /q c:\cygwin
19
-
20
- git clone --branch 0.10.1 https://github.com/dss-extensions/electricdss-src ../electricdss-src
21
-
22
- git clone --branch 0.10.1 https://github.com/dss-extensions/dss_capi ../dss_capi
23
-
24
- set originalpath=%path%
25
-
26
- IF "%CONDA_SUBDIR%"=="win-32" SET MINICONDA_DIR=c:\miniconda3
27
-
28
- IF "%CONDA_SUBDIR%"=="win-64" SET MINICONDA_DIR=c:\miniconda3-x64
29
-
30
- set path=c:\cygwin64\bin;c:\cygwin64\usr\bin;c:\FPC\3.0.4\bin\i386-win32;c:\Program Files (x86)\Microsoft Visual Studio 14.0\vc\bin;%MINICONDA_DIR%;%MINICONDA_DIR%\scripts;%originalpath%
31
-
32
- c:\cygwin64\bin\bash ci/build_windows.sh
33
-
34
- set path=c:\FPC\3.0.4\bin\i386-win32;c:\Program Files (x86)\Microsoft Visual Studio 14.0\vc\bin;%MINICONDA_DIR%;%MINICONDA_DIR%\scripts;%originalpath%
35
-
36
- %MINICONDA_DIR%\scripts\activate %MINICONDA_DIR%
37
-
38
- conda config --set always_yes yes
39
-
40
- IF DEFINED APPVEYOR_REPO_TAG_NAME conda-build --quiet --no-test --output-folder "c:\projects\artifacts" conda
41
-
42
- set path=c:\cygwin64\bin;c:\cygwin64\usr\bin;c:\FPC\3.0.4\bin\i386-win32;c:\Program Files (x86)\Microsoft Visual Studio 14.0\vc\bin;%MINICONDA_DIR%;%MINICONDA_DIR%\scripts;%originalpath%
43
-
44
- c:\cygwin64\bin\bash ci/upload_windows.sh
45
-
46
- dir ..\artifacts\*.whl ..\artifacts\*.tar.bz2 /s
17
+ - cmd : call ci\build_appveyor.bat
47
18
48
19
test : off
Original file line number Diff line number Diff line change
1
+ SETLOCAL ENABLEEXTENSIONS
2
+
3
+ ren c:\cygwin cygwin.disabled
4
+
5
+ IF DEFINED APPVEYOR_REPO_TAG_NAME set APPVEYOR_REPO_TAG_NAME_DSS_PYTHON = %APPVEYOR_REPO_TAG_NAME%
6
+ set DSS_PYTHON_BUILD_TAG = 0
7
+ IF DEFINED APPVEYOR_REPO_TAG_NAME set DSS_PYTHON_BUILD_TAG = 1
8
+
9
+ set APPVEYOR_REPO_TAG_NAME =
10
+ setx DSS_PYTHON_BUILD_TAG %DSS_PYTHON_BUILD_TAG%
11
+
12
+ git clone --branch 0.10.1 https://github.com/dss-extensions/electricdss-src ../electricdss-src
13
+
14
+ git clone --branch 0.10.1 https://github.com/dss-extensions/dss_capi ../dss_capi
15
+
16
+ set originalpath = %path%
17
+
18
+ IF " %CONDA_SUBDIR% " == " win-32" SET MINICONDA_DIR = c:\miniconda3
19
+
20
+ IF " %CONDA_SUBDIR% " == " win-64" SET MINICONDA_DIR = c:\miniconda3-x64
21
+
22
+ set path = c:\cygwin64\bin;c:\cygwin64\usr\bin;c:\FPC\3.0.4\bin\i386-win32;c:\Program Files (x86)\Microsoft Visual Studio 14.0\vc\bin;%MINICONDA_DIR% ;%MINICONDA_DIR% \scripts;%originalpath%
23
+
24
+ c:\cygwin64\bin\bash ci/build_windows.sh
25
+
26
+ echo POST c:\cygwin64\bin\bash ci/build_windows.sh
27
+
28
+ set path = c:\FPC\3.0.4\bin\i386-win32;c:\Program Files (x86)\Microsoft Visual Studio 14.0\vc\bin;%MINICONDA_DIR% ;%MINICONDA_DIR% \scripts;%originalpath%
29
+
30
+ call %MINICONDA_DIR% \scripts\activate %MINICONDA_DIR%
31
+
32
+ echo POST ACTIVATE
33
+
34
+ echo DSS_PYTHON_BUILD_TAG=%DSS_PYTHON_BUILD_TAG%
35
+
36
+ IF " %DSS_PYTHON_BUILD_TAG% " == " 1" conda-build --quiet --no-test --output-folder " c:\projects\artifacts" conda
37
+
38
+ echo CONDA-BUILD CALLED
39
+
40
+ set path = c:\cygwin64\bin;c:\cygwin64\usr\bin;c:\FPC\3.0.4\bin\i386-win32;c:\Program Files (x86)\Microsoft Visual Studio 14.0\vc\bin;%MINICONDA_DIR% ;%MINICONDA_DIR% \scripts;%originalpath%
41
+
42
+ c:\cygwin64\bin\bash ci/upload_windows.sh
43
+
44
+ dir ..\artifacts\*.whl ..\artifacts\*.tar.bz2 /s
Original file line number Diff line number Diff line change 1
- if [ -n " $TRAVIS_TAG " ]; then # only run conda-build on tags, takes too long
1
+ if [ -n " $TRAVIS_TAG_DSS_PYTHON " ]; then # only run conda-build on tags, takes too long
2
2
# Install Miniconda
3
3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh -q
4
4
bash miniconda.sh -b -p $HOME /miniconda
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ for PYVERSION in 2.7 3.4 3.5 3.6 3.7; do
50
50
done
51
51
52
52
# Build conda packages
53
- if [ -n " $TRAVIS_TAG " ]; then # only run conda-build on tags, takes too long
53
+ if [ -n " $TRAVIS_TAG_DSS_PYTHON " ]; then # only run conda-build on tags, takes too long
54
54
conda-build --quiet --no-test --output-folder " $ARTIFACTS_FOLDER " conda
55
55
fi
56
56
64
64
# git checkout conda/meta.yaml
65
65
66
66
# Upload artifacts to anaconda.org
67
- if [ -n " $TRAVIS_TAG " ]; then
67
+ if [ -n " $TRAVIS_TAG_DSS_PYTHON " ]; then
68
68
if [ -n " $ANACONDA_API_TOKEN " ]; then
69
69
find ../artifacts -name " *.whl" -or -name " *.tar.bz2" | xargs -I {} anaconda upload --no-progress -l main -u pmeira {}
70
70
fi
Original file line number Diff line number Diff line change 1
1
set -e -x
2
2
3
+ APPVEYOR_REPO_TAG_NAME=
4
+
3
5
WGET=wget
4
6
ln -s /cygdrive/c /c
5
7
Original file line number Diff line number Diff line change 1
- if [ -n " $APPVEYOR_REPO_TAG_NAME " ]; then
1
+ if [ " $DSS_PYTHON_BUILD_TAG " == " 1 " ]; then
2
2
if [ -n " $ANACONDA_API_TOKEN " ]; then
3
3
echo Upload artifacts to anaconda.org...
4
4
find ../artifacts -name " *.whl" -or -name " *.tar.bz2" | xargs -I {} anaconda upload --no-progress -l main -u pmeira {}
You can’t perform that action at this time.
0 commit comments