-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
69 lines (65 loc) · 2.17 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
57
58
59
60
61
62
63
64
65
66
67
68
69
language: ruby
rvm: system
sudo: required
services: docker
os: linux
matrix:
include:
- env: OSX=10.11
os: osx
osx_image: osx10.11
rvm: system
- env: OSX=10.10
os: osx
osx_image: xcode7
rvm: system
- env: OSX=10.9
os: osx
osx_image: beta-xcode6.2
rvm: system
allow_failures:
- os: linux
before_install:
- if [ -f ".git/shallow" ]; then travis_retry git fetch --unshallow; fi
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
sudo chown -R $USER $(brew --repo);
brew untap caskroom/cask;
brew tap homebrew/science;
brew update;
mkdir -p $(brew --repo)/Library/Taps/optimizers;
ln -s $PWD $(brew --repo)/Library/Taps/optimizers/homebrew-fenics;
cd $(brew --repo)/Library/Taps/optimizers/homebrew-fenics;
brew tap --repair;
export TRAVIS_BUILD_DIR="$(brew --repo)/Library/Taps/optimizers/homebrew-fenics";
brew install slepc;
sudo -H easy_install pip;
sudo -H pip install ply;
export PETSC_DIR="$(brew --repo)/opt/petsc/real";
export SLEPC_DIR="$(brew --repo)/opt/slepc/real";
sudo -H -E pip install mpi4py petsc4py slepc4py;
travis_wait brew install boost --without-single --with-mpi;
brew install dolfin --without-trilinos --without-vtk --without-hdf5;
brew test dolfin;
fi
- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then
docker pull sjackman/linuxbrew-standalone;
docker run
-v $(pwd):/home/linuxbrew/homebrew-fenics
sjackman/linuxbrew-standalone
/bin/sh -c 'brew untap caskroom/cask && brew update && mkdir -p $(brew --repo)/Library/Taps/optimizers && cp -rf ~/homebrew-fenics $(brew --repo)/Library/Taps/optimizers/homebrew-fenics && brew tap repair';
docker commit $(docker ps -l -q) linuxbrew;
fi
- env | grep TRAVIS | tee /tmp/travis.env
script:
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
brew test-bot --tap=optimizers/fenics;
else
docker run
-w /home/linuxbrew/.linuxbrew/Library/Taps/optimizers/homebrew-fenics
--env-file /tmp/travis.env
-t
linuxbrew
brew test-bot --tap=optimizers/fenics;
fi
notifications:
email: never