-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (43 loc) · 1.2 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
language: r
r_packages:
- lattice
# - mrgsolve # cannot be installed in this way
#node_js: # this part works only when language: node_js
# - '10'
cache:
npm: true
R: true
os:
- linux
branches:
only:
- master
- dev
before_install:
- npm -v
- node -v
- Rscript --version
install:
# - npm install -g git+https://${GL_TOKEN}@gitlab.insysbio.com/metelkin/qs3p-js.git#v0.4
- npm i -g heta-compiler
- heta -v
script:
- heta build
- R -e "install.packages('mrgsolve');"
- Rscript ./R/run-mrgsolve.R
after_success:
- echo "Sending the files to gh-pages branch..."
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- git clone -b gh-pages --single-branch https://github.com/insysbio/faah-inhibitor tmp
- cd tmp
- rm -rf *
- cp -rf ../dist/* ./
- cp -rf ../static/* ./
- tar -zcf julia.tar.gz -C julia .
- tar -zcf matlab.tar.gz -C matlab .
- tar -zcf mrg.tar.gz -C mrg .
- tar -zcf simbio.tar.gz -C simbio .
- git add --all
- git commit --allow-empty -m "Travis build $TRAVIS_BUILD_NUMBER"
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then git push https://${GH_TOKEN}@github.com/insysbio/faah-inhibitor HEAD:gh-pages; fi