Commit Graph

317 Commits

Author SHA1 Message Date
Aleksander Gajewski
07c30f424e Add non-interactive mode to cpt
Signed-off-by: Vassil Vassilev <v.g.vassilev@gmail.com>
2019-04-11 07:44:36 +02:00
lizhangwen
314018e6db Fix OSX where cmake version is '3.14.0-rc4' 2019-04-10 20:59:24 +02:00
Axel Naumann
c33c5fb033 cling cpt travis fold: misspelled "end". 2018-06-14 10:14:12 +02:00
Axel Naumann
fa5aa3b2cc cling cpt: make sure TRAVIS_BUILD_DIR is found if set. 2018-06-14 09:44:07 +02:00
Axel Naumann
4f1d3d7d22 cling travis: move cpt log fold into cpt.py. 2018-06-13 12:14:13 +02:00
Nathan Daly
f2bcf29b1c Allow cpt.py to handle double-digit version numbers
Before this commit, cpt.py attempted `"3.11.1" < "3.4.3"`, but this
incorrectly returns `True`. This commit adds a function that splits the
string into version identifiers and checks them all individually.
2018-05-24 11:29:51 +02:00
Vassil Vassilev
e8659b29fc Typo. 2017-06-23 11:59:06 +02:00
Vassil Vassilev
35306f3f37 Simplify artifact selection procedure for distribution of binaries. 2017-06-23 09:59:27 +02:00
Vassil Vassilev
acc63c943c Add back the nightly cron sync job. 2017-06-23 09:29:23 +02:00
Frederich Munch
4e324c1599 CPT: Add runSingleTest method to invoke a single test on CI for better messaging. 2017-06-14 11:29:05 +02:00
Frederich Munch
96f86e79a9 CPT: Consolidate path joining to global variable LLVM_OBJ_ROOT. 2017-06-14 11:29:05 +02:00
Vassil Vassilev
359fa4132d Forward to more-up-to-date repository 2017-06-08 15:44:37 +02:00
Axel Naumann
795adc43e1 Point to authoritative repos; fixes cling builds with cpt. 2017-04-28 18:59:24 +02:00
Santiago Castro
1b831f04f6 Fix broken Markdown headings
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2017-04-17 20:29:34 +02:00
Vassil Vassilev
07065b3fff Teach cpt how to handle --create-dev-env Release option. 2017-04-06 19:59:23 +02:00
Frederich Munch
f1def4fefd Appveyor: Build with Ninja on Windows. 2017-03-09 08:29:28 +01:00
Frederich Munch
9d2f1b4bde CPT: Test installed version of CMake is less than 3.6.2 before downloading another. 2017-02-21 16:34:19 +01:00
Frederich Munch
e437621fd4 CPT: Use Appveyor’s clone for building. Try to use Appveyor’s caching for build directory. 2017-02-21 16:34:19 +01:00
Vassil Vassilev
5431895caa Download the nsis compiler only when we pack cling. 2016-09-17 13:14:53 +02:00
Vassil Vassilev
95f07ec272 Cling standalone cmake builds on Windows require cmake 3.6.2.
We need to export symbols from cling's executable which was not possible until
the accepted in cmake patch by Bertrand.
2016-09-17 12:38:03 +02:00
Roman Zulak
5c8feeeb11 CPT: Fix optional argument being used as string. 2016-09-16 10:27:58 +02:00
Bertrand Bellenot
63514775af Fix problem of tar file creation on Windows (slash vs backslash issue) 2016-08-26 09:44:15 +02:00
Bertrand Bellenot
52839d827f Revert last change 2016-08-25 12:14:21 +02:00
Bertrand Bellenot
ba7c310d93 Try to fix the "WindowsError: [Error 2] The system cannot find the file specified" 2016-08-24 17:44:20 +02:00
Roman Zulak
dda75d5636 CPT: Add 'compiler' argument.
Explicitly passing the compiler from Travis or Appveyor allows it to be printed in the log more apparently.
Can further be extended to mark dependencies when building packages, or even copy C++ headers into install.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-21 10:29:25 +02:00
Roman Zulak
6da7148d77 CPT: Add Build class and initial support for libc++ on Windows.
Build class can handle differences between Windows and Unix CMake.
libc++ on Windows is thoroughly untested.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-21 10:29:25 +02:00
Roman Zulak
d28809327d CPT: Add --current_dev:branch[es] flag to build specific branches.
This makes it easier for contributors to use cling's Travis config while
testing changes they would like to submit.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-21 10:29:25 +02:00
Roman Zulak
5f90efb317 CPT: Add ability to build libc++ with cling.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-21 10:29:25 +02:00
Roman Zulak
7703d89956 CPT: Add --with-cmake-flags to pass explicit flags to CMake.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-21 10:29:25 +02:00
Roman Zulak
2fd045e85f CPT: Disable fancy box printing on OS X, it's breaking Travis now.
Perhaps the file encoding has changed?

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-21 10:29:25 +02:00
Roman Zulak
f3e49bca33 CPT: Run cling showing include paths after build on Travis.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-19 13:44:09 +02:00
Roman Zulak
f7983e7751 Travis: Move logic into local functions.
Run ccache and build from the same block to control the result code.
Set CLING_BUILD_TIMEOUT in timeout. (+1 squashed commit)
Add ability to view / export CCACHE_LOGFILE.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-19 13:44:09 +02:00
Roman Zulak
abbd7814d5 CPT: Only limit cpus if building on Travis.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-19 13:44:09 +02:00
Roman Zulak
a7276f0df0 CPT: Fix Problems with exceptions
Failure in an exec_subprocess call will trigger cleanup,
but cleanup calls exec_subprocess, resulting in recursion.

Possible uninitialized variable in exec_subprocess_check_output.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-19 13:44:09 +02:00
Roman Zulak
eb624b555e CPT: Fix DLLVM_HOST_TRIPLE for Travis on OS X.
CMake thinks that the default output on OS X should be 32 bit.
Not sure if this is related to ccache or the env/virtualization they run.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-19 13:44:09 +02:00
Frederich Munch
3e65a6fee0 CPT: Fix git log hanging.
git log can hang waiting for stdin unless --no-pager argument is given.

Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-15 11:54:05 +02:00
Frederich Munch
6e13c66259 When building on Travis, use clone that Travis has already done. Saves some time, and necessary for pull-requests.
Signed-off-by: Vassil Vassilev <vvasilev@cern.ch>
2016-08-13 19:44:21 +02:00
Vassil Vassilev
6e23bb5f1e Optionally, don't cleanup after build, helps debugging.
Debug file dumps should be done outside cpt.
2016-08-12 15:14:10 +02:00
Vassil Vassilev
ec1a6fec18 Typo. 2016-08-12 09:44:16 +02:00
Vassil Vassilev
c5b99ae797 Make the json findable when we only download and call cpt.py. 2016-08-11 12:30:28 +02:00
Vassil Vassilev
d18e9ecdba We shouldn't force using libcxx. 2016-08-10 19:06:40 +02:00
Vassil Vassilev
d48e229db4 Only import pip if needed.
It requires installing a package on the system.
2016-08-10 19:06:40 +02:00
Vassil Vassilev
5877f3acb2 Revert "Disable llvm's terminal support."
We need this for colored diagnostics.
2016-08-09 12:29:32 +02:00
Vassil Vassilev
0f5ab9641f Disable llvm's terminal support.
We have our own terminal library. Not linking against libs like tinfo and ncurses
makes our binaries more platform independent.
2016-08-09 12:29:32 +02:00
Vassil Vassilev
fa7e1b69bd Use the tag which is currently building. Keep the assert. 2016-08-07 23:48:58 +02:00
Vassil Vassilev
819708255e Tag can start with letter other than v. 2016-08-07 23:28:45 +02:00
Anirudha Bose
29341720f9 CPT: Use assets from locally cloned cling 2016-08-05 18:14:07 +02:00
Anirudha Bose
97a92f7d5f CPT: Use dmgbuild to generate DMG files 2016-08-05 18:14:07 +02:00
Anirudha Bose
4dfb99bb45 CPT: OSX fixes and better filtering of dist files
The Cling build system can use CPT, instead of directly
reading tools/packaging/dist-files.mk
2016-08-05 18:14:07 +02:00
Vassil Vassilev
6da56fb4e9 Rely on clang on osx. GCC is long gone. 2016-08-05 18:14:07 +02:00
Vassil Vassilev
c36e71769d Fix cmake invocation on osx. 2016-08-05 15:26:37 +02:00
Vassil Vassilev
7d5cbc070e Build only host target on windows. Simplify. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
c49e3c3111 Print a new line. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
165852930b Run the tests in a platform-independent way. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
396bc54c6f Do not build clang as a target. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
e28d6d0b99 The unzipped subfolder is dependent on the platform. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
3e5abd7067 We need latest cmake to run cling's testsuite. Simplify. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
efdd4833c9 Use recent visual studio. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
8fd09ba0cf Adjust url. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
3b57a0a378 Find latest nsis binary. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
4839f298c6 Sourceforge redirects to https. 2016-08-05 11:23:41 +02:00
Vassil Vassilev
ad0d4d9b0d Build only target cling. Simplify. 2016-08-03 23:14:16 +02:00
Vassil Vassilev
4c824f89aa Make cpt debug friendly if --debug-on-error is passed.
Do not cleanup the workspace and dump a cmake log files.
2016-08-03 14:29:26 +02:00
Anirudha Bose
320ba93dd2 Update CPT for latest LLVM
* Drop support for configure, in favor of CMake.
   Latest LLVM makes cmake mandatory
 * Improvements to wget
 * Travis CI fixes
2016-07-19 20:44:11 +02:00
Anirudha Bose
1cec9757e9 CPT: Use GitHub API to fetch repo tags 2016-07-06 14:44:09 +02:00
Anirudha Bose
7245fc55e5 CPT: LLVM revision must correspond to checked out tag 2016-07-06 14:44:09 +02:00
Anirudha Bose
1184631657 CPT: Limit parallel builds to 4 cores 2016-07-06 14:44:09 +02:00
Anirudha Bose
3c651f3048 CPT: Better SSL detection 2016-07-06 14:44:09 +02:00
Anirudha Bose
2f01f7dbee CPT: Fix subprocess communication in Python 3 2016-07-06 14:44:09 +02:00
Anirudha Bose
9f18c590da Refactor and reformat code in CPT 2016-07-06 14:44:09 +02:00
Anirudha Bose
6bef401e59 Use modern syntax of "except" for dual compatibility with Python 2 and 3 2016-07-06 14:44:09 +02:00
Anirudha Bose
c63d7d1920 New method to get sources of LLVM and Clang
- prefer new method if the repos are hosted in Github
- fix an IndexError bug in home-grown wget()
2016-07-06 14:44:09 +02:00
Anirudha Bose
ee1a3d8c73 Change the default URLs of repositories
Repos hosted in GitHub have the advantage of a rich API.
The variables where this change will be reflected are:
LLVM_GIT_URL, WITH_LLVM_URL
CLANG_GIT_URL, CLANG_GIT_URL
CLING_GIT_URL, CLING_GIT_URL
2016-07-06 14:44:09 +02:00
CristinaCristescu
1d46fe88d8 Remove runtime namespace from NullDerefException and rename RuntimeException.h to Exception.h.
(cherry picked from commit 234da8bfedce8661c2b8bc50f72632c240c4dfd8)
2015-12-15 20:24:16 +01:00
Maxim Ivanov
8b00d8b7a4 Fix a sneaky typo
💄
2014-11-06 12:13:29 +01:00
Anirudha Bose
365133992a Need to encode Debian changelog to UTF-8 2014-10-05 21:56:08 +02:00
Anirudha Bose
3b8577fc5f Auto-detect Clang version. Remove hard-coded Clang version in dist-files.mk 2014-10-04 11:47:04 +02:00
Anirudha Bose
09c43b9300 Fix #51: Handle subprocess.CalledProcessError 2014-10-02 20:08:02 +02:00
Anirudha Bose
34023274e2 Remove Python 3 warning in --check-requirements 2014-10-02 10:09:36 +02:00
Anirudha Bose
2e10af4cee Use UTF-8 standard to decode bytes object to str 2014-10-02 10:09:36 +02:00
Anirudha Bose
f86229f459 Make wget functionality compatible with Python 3 2014-10-02 10:09:35 +02:00
Anirudha Bose
19430a0367 Convert bytes object to str for Python 3 2014-10-02 10:09:35 +02:00
Philippe Canal
d0c5e588c5 Revert "Remove trailing spaces" in interpreter/cling/tools/packaging/dist-files.mk
This partially reverts commit a6bc8d715a79f578e5fe0cf18e46af92ff507fd7.
2014-10-02 02:42:07 +02:00
Vassil Vassilev
6101769c89 Use the correct extension. 2014-10-01 18:39:07 +02:00
Robert Xiao
504cd078e5 Make Python scripts Python3-compatible 2014-10-01 18:39:05 +02:00
Vassil Vassilev
ddbe9dda2c Remove empty spaces. 2014-09-28 17:02:06 +02:00
Robert Xiao
e2c78ae27e Use check_call and check_output for subprocess 2014-09-28 17:02:06 +02:00
Robert Xiao
1b99067bb0 Fix LLVMRevision source URL in cpt.py
LLVMRevision is being retrieved from an old URL, which contains the wrong LLVM revision. Update it to point at the current cling repository.
2014-09-25 19:56:07 +02:00
Anirudha Bose
b9f5ccf55c Implement #29: Add support for --create-dev-env 2014-08-19 10:18:06 +02:00
Anirudha Bose
aa4a20c3ab Add support for --current-dev=pkg and --last-stable=pkg 2014-08-19 10:18:06 +02:00
Anirudha Bose
27356beda1 Update CPT documentation for RPM and DMG bundles 2014-08-19 10:18:06 +02:00
Anirudha Bose
f182d64afc Use cling-patches branch instead of ROOT-patches in CPT 2014-08-19 10:18:06 +02:00
Anirudha Bose
2fb5acd8a8 Update CPT usage in README.md 2014-08-19 10:18:05 +02:00
Anirudha Bose
3dd0272e5c Resolve #36: Handle output of 'where' command correctly 2014-08-14 14:56:32 +02:00
Anirudha Bose
3128048499 Accept relative paths in --with-workdir switch 2014-08-14 14:56:32 +02:00
Anirudha Bose
5beb95df13 Use the downloaded CMake binaries in Windows 2014-08-14 14:56:32 +02:00
Anirudha Bose
35bcce30a1 Close #39: Implement --no-test switch to skip the test suite 2014-08-14 14:56:32 +02:00
Anirudha Bose
9f6fa01970 Add --dmg-tag to argument parser configuration 2014-08-14 14:56:32 +02:00
Anirudha Bose
7e4d5ba261 Close #38: Implement switches --dmg-tag and --last-stable=dmg 2014-08-14 14:56:32 +02:00
Anirudha Bose
572e50a566 Remove temporary DMG and staging directories 2014-08-14 14:56:32 +02:00