This repository has been archived by the owner on Jan 31, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge july-23-patch and release 2.6.0
- Fixed a bug when finding COM ports - Project folders no longer have to be empty when creating a new project - Template files correctly no longer know anything about their depot - New PROS installers
- Loading branch information
Showing
24 changed files
with
256 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,6 @@ build/ | |
dist/ | ||
|
||
pros_cli.egg-info/ | ||
|
||
out/ | ||
*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,89 +1,36 @@ | ||
stage('Build') { | ||
def build_ver = '2.4.2' | ||
parallel unix: { | ||
node('linux') { | ||
def venv = new edu.purdue.pros.venv() | ||
stage('Clean') { | ||
sh 'git init' | ||
sh 'git clean -d -x -f' | ||
} | ||
stage('Dependencies') { | ||
tool 'python3' | ||
if(isUnix()) { | ||
sh 'sudo apt-get install -y python3-pip' | ||
} | ||
venv.create_virtualenv() | ||
venv.run 'pip3 install wheel twine' | ||
} | ||
stage('Clone') { | ||
parallel ( | ||
"linux64": { | ||
node("lin64") { | ||
checkout scm | ||
sh 'git describe --tags > version' | ||
build_ver = readFile 'version' | ||
build_ver = build_ver.replaceAll("\\s","") | ||
println "Building CLI at version ${build_ver}" | ||
} | ||
stage('Build') { | ||
venv.run 'python setup.py bdist_wheel' | ||
dir('dist') { | ||
archiveArtifacts artifacts: 'pros_cli-*-none-any.whl', fingerprint: true | ||
} | ||
} | ||
} | ||
}, windows64: { | ||
node('win&&x64') { | ||
def venv = new edu.purdue.pros.venv() | ||
stage('Clean') { | ||
bat "${tool name: 'Default', type: 'git'} init" | ||
bat "${tool name: 'Default', type: 'git'} clean -d -x -f" | ||
sh './scripts/install_build_dependencies.sh' | ||
sh 'vex -mr jenkins ./scripts/build.sh' | ||
archiveArtifacts artifacts: 'out/*', onlyIfSuccessful: true | ||
} | ||
stage('Dependenices') { | ||
tool 'MSBuild' | ||
venv.create_virtualenv() | ||
dir('cx_Freeze') { | ||
checkout changelog: false, poll: false, scm: [$class: 'MercurialSCM', credentialsId: '', installation: 'Mercurial', source: 'https://bitbucket.org/anthony_tuininga/cx_freeze'] | ||
venv.run 'pip3 install .' | ||
} | ||
} | ||
stage('Clone') { | ||
}, | ||
"linux86": { | ||
node("lin86") { | ||
checkout scm | ||
bat 'git describe --tags > version' | ||
build_ver = readFile 'version' | ||
build_ver = build_ver.replaceAll("\\s","") | ||
bat 'git describe --tags --abbrev=0 > inst_version' | ||
inst_ver = readFile 'inst_version' | ||
inst_ver = inst_ver.replaceAll("\\s","") | ||
sh './scripts/install_build_dependencies.sh' | ||
sh 'vex -mr jenkins ./scripts/build.sh' | ||
archiveArtifacts artifacts: 'out/*', onlyIfSuccessful: true | ||
} | ||
stage('Build') { | ||
venv.run 'pip3 install --upgrade -r requirements.txt' | ||
venv.run 'python build.py build_exe' | ||
archiveArtifacts artifacts: 'pros_cli-*-win*.zip', fingerprint: true | ||
}, | ||
"windows64": { | ||
node("win64") { | ||
checkout scm | ||
bat 'powershell -file .\\scripts\\install_build_dependencies.ps1' | ||
bat '.\\scripts\\build.bat' | ||
archiveArtifacts artifacts: 'out/*', onlyIfSuccessful: true | ||
} | ||
} | ||
} | ||
stage('Windows Installers') { | ||
node('win&&advinst') { | ||
ws { | ||
git credentialsId: 'phabricator-sigbot-ssh-key', poll: false, url: 'ssh://git@phabricator.purduesigbots.com/diffusion/WININSTALLER/pros-windows-installers.git' | ||
bat 'if exist .\\exe.win del /s /q .\\exe.win' | ||
bat 'if exist .\\exe.win rmdir /s /q .\\exe.win' | ||
bat 'mkdir .\\exe.win' | ||
for(file in unarchive(mapping: ['**pros_cli-*-win-32bit.zip': '.'])) { | ||
file.unzip(file.getParent().child('exe.win')) | ||
} | ||
def advinst = "\"${tool 'Advanced Installer'}\\AdvancedInstaller.com\"" | ||
bat """ | ||
${advinst} /edit pros-windows.aip /SetVersion ${inst_ver} | ||
${advinst} /edit pros-windows.aip /ResetSync APPDIR\\cli -clearcontent | ||
${advinst} /edit pros-windows.aip /NewSync APPDIR\\cli exe.win -existingfiles delete | ||
${advinst} /build pros-windows.aip | ||
""" | ||
bat """ | ||
${advinst} /edit pros-updates.aip /NewUpdate output\\pros-win.exe -name "PROS${inst_ver}" -display_name "PROS ${build_ver}" -url "${env.BUILD_URL}artifact/output/pros-win.exe" | ||
${advinst} /build pros-updates.aip | ||
""" | ||
archiveArtifacts artifacts: 'output/*', fingerprint: true | ||
}, | ||
"windows86": { | ||
node("win86") { | ||
checkout scm | ||
bat 'powershell -file .\\scripts\\install_build_dependencies.ps1' | ||
bat '.\\scripts\\build.bat' | ||
archiveArtifacts artifacts: 'out/*', onlyIfSuccessful: true | ||
} | ||
} | ||
} | ||
} | ||
doDeploy() | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.6.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
@echo off | ||
|
||
set root=%~dp0.. | ||
|
||
set python=python | ||
echo Testing python executable version | ||
python -c "import sys; exit(0 if sys.version_info > (3,5) else 1)" | ||
if errorlevel 1 set python=python3 | ||
|
||
echo Installing wheel and cx_Freeze | ||
git clone --branch 5.0.2 https://github.com/anthony-tuininga/cx_Freeze.git | ||
pip3 install --upgrade cx_Freeze\. | ||
pip3 install --upgrade wheel | ||
|
||
echo Updating version | ||
%python% %root%\version.py | ||
|
||
echo Installing pros-cli requirements | ||
pip3 install --upgrade -r %root%\requirements.txt | ||
|
||
echo Building Wheel | ||
%python% %root%\setup.py bdist_wheel | ||
|
||
echo Building Binary | ||
%python% %root%\build.py build_exe | ||
|
||
echo Moving artifacts to .\out | ||
if not exist %root%\out mkdir %root%\out | ||
del /Q %root%\out\*.* | ||
copy %root%\dist\pros_cli*.whl %root%\out\ | ||
copy %root%\pros_cli*.zip %root%\out\ | ||
|
||
cd out | ||
%python% %root%\version.py | ||
cd .. | ||
|
Oops, something went wrong.