27
27
if : contains( matrix.os, 'ubuntu')
28
28
run : |
29
29
sudo apt-get install graphviz
30
- sudo -H pip install FoBiS.py && FoBiS.py --version
31
- sudo -H pip install ford==5.0.6 && ford --version
32
- sudo -H pip install --upgrade markdown==2.6.9
30
+ sudo -H pip install numpy
31
+ sudo -H pip install ford && ford --version
33
32
sudo -H pip install matplotlib
34
33
35
34
- name : Install GFortran Linux
@@ -42,27 +41,17 @@ jobs:
42
41
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-${GCC_V} \
43
42
--slave /usr/bingcov gcov /usr/bin/gcov-${GCC_V}
44
43
45
- - name : Build and compile
46
- run : |
47
- FoBiS.py build -compiler gnu -cflags "-c -O2 -std=f2008" -dbld ./lib/ -s ./src/ -dmod ./ -dobj ./ -t pyplot_module.f90 -o libpyplot.a -mklib static -colors
48
- FoBiS.py build -compiler gnu -cflags "-c -O2 -std=f2008" -dbld ./bin/ -s ./src/tests/ -dmod ./ -dobj ./ -colors -libs ./lib/libpyplot.a --include ./lib/
49
-
50
- - name : catch build fail
51
- run : cmake --build build --verbose --parallel 1
52
- if : failure()
44
+ - name : Compile
45
+ run : gfortran -O2 ./src/pyplot_module.f90 ./src/tests/test.f90 -o ./bin/test
53
46
54
- - name : test
47
+ - name : Run test
55
48
run : ./bin/test
56
49
57
- - name : Install project
58
- run : |
59
- git config --global user.name "TRAVIS-CI-for-$(git --no-pager show -s --format='%cn' $TRAVIS_COMMIT)"
60
- git config --global user.email "$(git --no-pager show -s --format='%ce' $TRAVIS_COMMIT)"
61
- git clone -q --branch=gh-pages "https://${GH_TOKEN}@github.com/$TRAVIS_REPO_SLUG" gh-pages >/dev/null 2>&1
62
- rm -rf gh-pages/*
63
- ford ./pyplot-fortran.md
64
- cp -rf ./doc/* gh-pages/
65
- cd gh-pages/
66
- git add -f --all * || true
67
- git commit -m "Travis CI autocommit from Travis job $TRAVIS_JOB_NUMBER for tag $TRAVIS_TAG $TRAVIS_COMMIT" || true
68
- git push -fq origin gh-pages > /dev/null 2>&1 || true
50
+ - name : Build documentation
51
+ run : ford ./pyplot-fortran.md
52
+
53
+ - name : Deploy Documentation
54
+
55
+ with :
56
+ branch : gh-pages # The branch the action should deploy to.
57
+ folder : doc # The folder the action should deploy.
0 commit comments