-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (35 loc) · 1.73 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
sudo: false
compiler: gcc
addons: &gcc9
apt:
sources: ['ubuntu-toolchain-r-test', 'hvr-ghc', 'george-edison55-precise-backports' ] # ge-55 : CMake
packages: ['g++-9', 'gcc-9', 'expat', 'libgmp-dev', 'libpopt-dev', 'libboost-dev', 'flex', 'bison', 'libnuma-dev', 'liblzma-dev', 'dejagnu', 'libhwloc-dev', 'cmake', 'cmake-data']
# add 'asciidoc', 'xmlto', 'doxygen' for doc generation
# add 'ghc-7.10.3', 'ghc-7.10.3-dyn', 'happy-1.19.5', for SCOOP
before_script:
- cd ${TRAVIS_BUILD_DIR}
- export GCCVER='9'
- export CXX=g++-${GCCVER}
- export CC=gcc-${GCCVER}
- export AR=gcc-ar-${GCCVER}
- export RANLIB=gcc-ranlib-${GCCVER}
- export NM=gcc-nm-${GCCVER}
# build spot
script :
- ./tag.sh
- wget --progress=dot:mega https://yanntm.github.io/Spot-BinaryBuilds/spot_linux.tar.gz
- tar xzf spot_linux.tar.gz
# This line to patch moved .la and .pc files that configure paths for linking in LTSmin/pkgconfig
- export TARGET=$(pwd) ; cd usr/local/lib/pkgconfig/ ; for i in *.pc ; do cat $i | sed "s#=.*/usr/local#=$TARGET/usr/local#g" > tmp ; \mv tmp $i ; done ; cd ..; for i in *.la ; do cat $i | sed "s#='.*/usr/local#='$TARGET/usr/local#g" > tmp ; \mv tmp $i ; done ; cd ../../..
- ./build_ltsmin.sh
- ls -lah website/
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
local_dir: website/
upload-dir: build/$TRAVIS_BUILD_NUMBER
on:
branch: master
after_deploy:
- curl -s -X POST -H "Content-Type:application/json" -H "Accept:application/json" -H "Travis-API-Version:3" -H "Authorization:token $APITOKEN" -d '{"request":{"message":"Triggered by LTSmin build.","branch":"master"}}' https://api.travis-ci.org/repo/yanntm%2FITS-Tools-pnmcc/requests