Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
59d38882
Commit
59d38882
authored
Apr 20, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #423 from dagar/travis-docker
Switch travis-ci to docker infrastructure
parents
488f878d
d280b420
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
14 deletions
+40
-14
.travis.yml
.travis.yml
+38
-12
CMakeLists.txt
CMakeLists.txt
+2
-2
No files found.
.travis.yml
View file @
59d38882
language
:
cpp
compiler
:
-
clang
# - gcc
-
gcc
# use travis-ci docker based infrastructure
sudo
:
false
cache
:
apt
:
true
directories
:
-
$HOME/.ccache
addons
:
apt
:
sources
:
-
kubuntu-backports
-
llvm-toolchain-precise-3.5
-
ubuntu-toolchain-r-test
packages
:
-
autoconf
-
ccache
-
clang-3.5
-
cmake
-
g++-4.8
-
libgmp3-dev
-
liblzma-dev
-
libncurses5-dev
-
libreadline-dev
-
libsqlite3-dev
-
libtool
-
ninja-build
-
python-dev
-
texlive-extra-utils
before_install
:
-
if [ "$CC" = "clang" ]; then export CC="clang-3.5" CXX="clang++-3.5"; fi
-
if [ "$CC" = "gcc" ]; then export CC="gcc-4.8" CXX="g++-4.8"; fi
install
:
-
sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
-
sudo add-apt-repository --yes ppa:kubuntu-ppa/backports
-
sudo apt-get -qq update
-
sudo apt-get install -yqq git cmake ninja-build libsqlite3-dev libncurses5-dev liblzma-dev libreadline-dev libgmp3-dev autoconf libtool python-dev texlive-extra-utils
-
if [ "$CXX" = "clang++" ]; then sudo apt-get install -qq clang-3.4 libstdc++-4.8-dev; fi
-
if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
-
if [ "$CXX" = "g++" ]; then export CC="gcc-4.8" CXX="g++-4.8"; fi
-
git clone git://github.com/llvm-mirror/llvm.git ~/pyston_deps/llvm-trunk
-
git clone git://github.com/llvm-mirror/clang.git ~/pyston_deps/llvm-trunk/tools/clang
-
git config --global user.email "you@example.com"
-
git config --global user.name "Your Name"
-
mkdir ~/pyston-build && cd ~/pyston-build
-
make -C $TRAVIS_BUILD_DIR llvm_up
-
cmake -GNinja $TRAVIS_BUILD_DIR
-
cmake -GNinja
-DTEST_THREADS=4
$TRAVIS_BUILD_DIR
-
ninja libunwind ext_cpython
script
:
-
ninja -j4 check-pyston
-
ccache -z
-
ninja -j4 pyston
-
ccache -s
-
ninja check-pyston
os
:
-
linux
...
...
@@ -41,4 +68,3 @@ notifications:
-
https://webhooks.gitter.im/e/7256425a36658faa8b9b
on_success
:
change
# options: [always|never|change] default: always
on_failure
:
always
# options: [always|never|change] default: always
on_start
:
false
# default: false
CMakeLists.txt
View file @
59d38882
...
...
@@ -193,7 +193,7 @@ add_custom_target(astcompare COMMAND ${CMAKE_SOURCE_DIR}/tools/astprint_test.sh
# test
enable_testing
()
set
(
TEST_THREADS 1
)
set
(
TEST_THREADS 1
CACHE STRING
"number of pyston test threads"
)
add_test
(
NAME lint COMMAND
${
PYTHON_EXE
}
${
CMAKE_SOURCE_DIR
}
/tools/lint.py WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/src
)
add_test
(
NAME check-format COMMAND
${
CMAKE_SOURCE_DIR
}
/tools/check_format.sh
${
LLVM_TOOLS_BINARY_DIR
}
/clang-format WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
/src
)
...
...
@@ -204,7 +204,7 @@ add_test(NAME pyston_defaults COMMAND ${PYTHON_EXE} ${CMAKE_SOURCE_DIR}/tools/te
add_test
(
NAME pyston_defaults_cpython_tests COMMAND
${
PYTHON_EXE
}
${
CMAKE_SOURCE_DIR
}
/tools/tester.py -R ./pyston -j
${
TEST_THREADS
}
-a=-S -a=-I -k --exit-code-only --skip-failing
${
CMAKE_SOURCE_DIR
}
/test/cpython
)
add_test
(
NAME pyston_defaults_integration_tests COMMAND
${
PYTHON_EXE
}
${
CMAKE_SOURCE_DIR
}
/tools/tester.py -R ./pyston -j
${
TEST_THREADS
}
-a=-S -k --exit-code-only --skip-failing -t60
${
CMAKE_SOURCE_DIR
}
/test/integration
)
add_test
(
NAME pyston_max_compilation_tier COMMAND
${
PYTHON_EXE
}
${
CMAKE_SOURCE_DIR
}
/tools/tester.py -R ./pyston -j
${
TEST_THREADS
}
-a=-O -a=-S -k
${
CMAKE_SOURCE_DIR
}
/test/tests
)
add_test
(
NAME pyston_
experimental_pypa_parser COMMAND
${
PYTHON_EXE
}
${
CMAKE_SOURCE_DIR
}
/tools/tester.py -a=-x -R ./pyston -j
${
TEST_THREADS
}
-a=-n -a=-S -k
${
CMAKE_SOURCE_DIR
}
/test/tests
)
add_test
(
NAME pyston_
old_parser COMMAND
${
PYTHON_EXE
}
${
CMAKE_SOURCE_DIR
}
/tools/tester.py -a=-x -R ./pyston -j1
-a=-n -a=-S -k
${
CMAKE_SOURCE_DIR
}
/test/tests
)
# format
file
(
GLOB_RECURSE FORMAT_FILES
${
CMAKE_SOURCE_DIR
}
/src/*.h
${
CMAKE_SOURCE_DIR
}
/src/*.cpp
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment