forked from NOAA-ORR-ERD/PyGnome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_github.sh
executable file
·49 lines (33 loc) · 981 Bytes
/
test_github.sh
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
#!/bin/sh
# simple script to test the gitHub versions
# maybe this can be adapted to a CI script
#
# This creates a new conda eenvironemnt, pulls the
# code from gitHub, and builds and runs GNOME and the oils library and tests.
#
# Then it builds the docs for gh-pages
#
# This should be run outside of the source dir
# but I put it in the repo so we can keep track of it.
CONDA_ENV_NAME="test_gnome_github"
## create a conda environment:
# clear out the old one if it's there:
conda remove -y -n $CONDA_ENV_NAME --all
# create a new one
conda create -y -n $CONDA_ENV_NAME python=2
# and activate it
source activate $CONDA_ENV_NAME
# clone the repo:
git clone https://github.com/NOAA-ORR-ERD/PyGnome.git
# install the requirements
cd PyGnome
conda install -y --file conda_requirements.txt
# install the code
cd ./py_gnome
python setup.py install
# test pygnome!
pytest --runslow
# build the docs -- why not?
# cd documentation
# ./build_gh_pages.sh
# And done!