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:
1111 install :
1212 - docker pull $DOCKER_IMAGE
1313 script :
14+ - export TRAVIS_TAG_DSS_PYTHON=$TRAVIS_TAG
15+ - export TRAVIS_TAG=
1416 - cd ..
1517 - mkdir artifacts
1618 - mkdir artifacts/linux-64
@@ -26,6 +28,8 @@ matrix:
2628 - name : " osx_x64"
2729 os : osx
2830 script :
31+ - export TRAVIS_TAG_DSS_PYTHON=$TRAVIS_TAG
32+ - export TRAVIS_TAG=
2933 - git clone --branch 0.10.1 https://github.com/dss-extensions/electricdss-src ../electricdss-src
3034 - git clone --branch 0.10.1 https://github.com/dss-extensions/dss_capi ../dss_capi
3135 - bash ci/build_osx.sh
Original file line number Diff line number Diff line change @@ -14,35 +14,6 @@ environment:
1414 - CONDA_SUBDIR : win-64
1515
1616build_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
4718
4819test : 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
22 # Install Miniconda
33 wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh -q
44 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
5050done
5151
5252# 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
5454 conda-build --quiet --no-test --output-folder " $ARTIFACTS_FOLDER " conda
5555fi
5656
6464# git checkout conda/meta.yaml
6565
6666# Upload artifacts to anaconda.org
67- if [ -n " $TRAVIS_TAG " ]; then
67+ if [ -n " $TRAVIS_TAG_DSS_PYTHON " ]; then
6868 if [ -n " $ANACONDA_API_TOKEN " ]; then
6969 find ../artifacts -name " *.whl" -or -name " *.tar.bz2" | xargs -I {} anaconda upload --no-progress -l main -u pmeira {}
7070 fi
Original file line number Diff line number Diff line change 11set -e -x
22
3+ APPVEYOR_REPO_TAG_NAME=
4+
35WGET=wget
46ln -s /cygdrive/c /c
57
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
22 if [ -n " $ANACONDA_API_TOKEN " ]; then
33 echo Upload artifacts to anaconda.org...
44 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