2018-03-03 06:16:01 +08:00
|
|
|
version: 0.2
|
|
|
|
|
|
|
|
phases:
|
|
|
|
install:
|
|
|
|
commands:
|
2018-03-05 16:22:06 +08:00
|
|
|
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main" > /etc/apt/sources.list.d/01-toolchain
|
2018-03-03 06:16:01 +08:00
|
|
|
- apt-get update -y
|
2018-03-04 02:04:40 +08:00
|
|
|
- apt-get install -y g++-5 flex bison make git libwww-perl patch ccache
|
2018-03-03 07:38:12 +08:00
|
|
|
- apt-get install -y openjdk-7-jdk
|
2018-03-03 06:56:44 +08:00
|
|
|
- update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 1
|
2018-03-03 07:22:19 +08:00
|
|
|
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 1
|
2018-03-03 06:16:01 +08:00
|
|
|
build:
|
|
|
|
commands:
|
|
|
|
- echo Build started on `date`
|
|
|
|
- (cd src ; make minisat2-download)
|
2018-03-04 02:04:40 +08:00
|
|
|
- (cd src ; make CXX="ccache g++" -j2)
|
2018-03-04 20:23:11 +08:00
|
|
|
- (cd regression ; make test)
|
2018-03-03 06:16:01 +08:00
|
|
|
post_build:
|
|
|
|
commands:
|
|
|
|
- echo Build completed on `date`
|
|
|
|
artifacts:
|
|
|
|
files:
|
2018-03-04 02:03:01 +08:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- '/root/.ccache/**/*'
|