forked from PythonOptimizers/NLP.py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
50 lines (44 loc) · 1.44 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
language: objective-c # force osx for now.
os:
- osx
# # - linux
notifications:
email: never
before_install:
- brew update
- brew tap homebrew/science
- brew uninstall -f --ignore-dependencies adol-c boost cppad asl metis
- brew install adol-c
- brew install boost-python
- brew install cppad --with-adol-c
- brew install asl
- brew install metis
- wget http://ampl.com/demo/ampl.macosx64.tgz -O /tmp/ampl.macosx64.tgz
- tar -xvf /tmp/ampl.macosx64.tgz
- export PATH=$PATH:$PWD/ampl.macosx64
- pip install -q virtualenv
- virtualenv ~/.venv
- source ~/.venv/bin/activate
- pip install -q numpy
- pip install -v numpy scipy
- pip install -q git+https://github.com/optimizers/pysparse.git
- pip install -q git+https://github.com/PythonOptimizers/pykrylov.git@develop
- pip install -q algopy
- pip install -q git+https://github.com/b45ch1/pycppad.git
- cd $HOME && git clone https://github.com/b45ch1/pyadolc.git
- cd pyadolc && { echo '\n' | python setup.py install; } && cd $TRAVIS_BUILD_DIR
- pip install -q pytest
- pip install -q coveralls
install:
- echo "[ASL]" > site.cfg
- echo "asl_dir = $(brew --prefix asl)" >> site.cfg
- python setup.py install
script:
- nlp_lbfgs.py examples/rosenbr.nl
- nlp_trunk.py examples/rosenbr.nl
- nlp_dercheck.py examples/rosenbr.nl
- nlp_tron.py examples/rosenbr.nl
- coverage run --source nlp setup.py test
- coverage report
after_success:
- coveralls