-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
46 lines (42 loc) · 1.1 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
language: rust
sudo: required
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
fast_finish: true
cache: cargo
before_install:
- echo "Installing GSL..."
- sudo apt-get install -y libgsl0-dev
- echo "Done Installing GSL"
- echo "Installing Cuba..."
- pushd /tmp
- wget http://www.feynarts.de/cuba/Cuba-4.2.tar.gz
- tar xf Cuba-4.2.tar.gz
- rm Cuba-4.2.tar.gz
- cd Cuba-4.2
- CFLAGS="-O3 -ffast-math -fomit-frame-pointer -march=native -fPIC" ./configure
- sudo make lib
- sudo make install
- cd /usr/local/lib
- mkdir /tmp/foo
- sudo mv libcuba.a /tmp/foo
- cd /tmp/foo
- sudo ar xv libcuba.a
- sudo gcc -shared *.o -o libcuba.so
- sudo rm -f *.o
- sudo mv libcuba.so /usr/local/lib
- sudo rm -rf /tmp/Cuba-4.2
- sudo rm -rf /tmp/foo
- file /usr/local/lib/libcuba.so
- sudo chmod 555 /usr/local/lib/libcuba.so
- popd
- echo "Done Installing Cuba"
- export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
notifications:
email:
- jacksonhodonnell@gmail.com