This repository has been archived by the owner on Mar 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
56 lines (49 loc) · 2.26 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
language: c
sudo: false
os:
- linux
cache:
directories:
- $TRAVIS_BUILD_DIR/*/
- $HOME/.elan
before_install:
- wget -nc https://launchpad.net/ubuntu/+source/dpkg/1.17.5ubuntu5.8/+build/14426995/+files/dpkg_1.17.5ubuntu5.8_amd64.deb
- wget -nc http://launchpadlibrarian.net/353523729/libc6_2.23-0ubuntu10_amd64.deb
- wget -nc http://launchpadlibrarian.net/388656986/gcc-7-base_7.3.0-27ubuntu1~18.04_amd64.deb
- wget -nc http://launchpadlibrarian.net/388657037/libgcc-7-dev_7.3.0-27ubuntu1~18.04_amd64.deb
- wget -nc http://launchpadlibrarian.net/388610965/libstdc++6_8.2.0-1ubuntu2~18.04_amd64.deb
- wget -nc http://launchpadlibrarian.net/388657059/libstdc++-7-dev_7.3.0-27ubuntu1~18.04_amd64.deb
- sudo dpkg --force-all -i dpkg_1.17.5ubuntu5.8_amd64.deb
- sudo dpkg --force-breaks -i libc6_2.23-0ubuntu10_amd64.deb
- sudo dpkg -i gcc-7-base_7.3.0-27ubuntu1~18.04_amd64.deb
- sudo dpkg --force-all -i libgcc-7-dev_7.3.0-27ubuntu1~18.04_amd64.deb
- sudo dpkg --force-all -i libstdc++6_8.2.0-1ubuntu2~18.04_amd64.deb libstdc++-7-dev_7.3.0-27ubuntu1~18.04_amd64.deb
install:
- |
if [ ! -d "$HOME/.elan/toolchains/" ]; then
curl https://raw.githubusercontent.com/Kha/elan/master/elan-init.sh -sSf | sh -s -- --default-toolchain none -y
fi
- source ~/.elan/env
- mkdir $HOME/scripts || echo ""
- export PATH="$HOME/scripts:$PATH"
- cp travis_long.sh $HOME/scripts/travis_long
- chmod +x $HOME/scripts/travis_long
- (git status | grep -e "Changes not staged for commit:"); RESULT=$?
- if [ $RESULT -eq 0 ]; then git checkout -f HEAD ; fi
- rm `git status | grep "\.lean" | sed "s/\.lean/.olean/"` || true
- rm `git status | grep "\.lean"` || true
- rm mathlib.txt || true
jobs:
include:
- stage: Pre-build-1
script:
- travis_long "timeout 2400 leanpkg test" | awk 'BEGIN{e=0;c=-1}c&&--c;/error/{if (!e) {c=30;e=1}};{if (!c) {exit 1}}'
- stage: Pre-build-2
script:
- travis_long "timeout 2400 leanpkg test" | awk 'BEGIN{e=0;c=-1}c&&--c;/error/{if (!e) {c=30;e=1}};{if (!c) {exit 1}}'
- stage: Test
script:
- leanpkg test
notifications:
webhooks:
- https://leanprover.zulipchat.com/api/v1/external/travis?stream=travis&topic=build-status&api_key=SwF1QzwUWol76dCxsYgwHbI6giN3cxGn