.gitlab-ci.yml 1.76 KB
Newer Older
Marco Govoni's avatar
Marco Govoni committed
1
2
3
4
5
variables:
 GIT_STRATEGY: none

stages:
 - build
6
 - doc
Marco Govoni's avatar
Marco Govoni committed
7

8
westpy_build:
Marco Govoni's avatar
Marco Govoni committed
9
10
11
12
13
 tags: [rcc,docker,node-01]
 stage: build
 image: ubuntu:latest
 before_script:
   - apt-get update > /dev/null
Marco Govoni's avatar
Marco Govoni committed
14
   - apt-get install -qq git >/dev/null
Marco Govoni's avatar
Marco Govoni committed
15
   - apt-get install -qq build-essential wget python-pip python-dev > /dev/null
Marco Govoni's avatar
Marco Govoni committed
16
17
18
19
 script:
   - git clone -b $CI_COMMIT_REF_NAME $CI_REPOSITORY_URL westpy
   - cd westpy
   - git describe
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
   - make
   
   
westpy_doc_build:
 tags: [rcc,docker,node-01]
 stage: doc
 image: debian:7
 before_script:
   - apt-get update > /dev/null
   - apt-get install -qq build-essential > /dev/null
   - apt-get install -qq apt-utils > /dev/null
   - apt-get install -qq wget git > /dev/null
   - apt-get -qq install vim > /dev/null 
   - apt-get -qq install zlib1g-dev > /dev/null
   - apt-get -qq install libssl-dev > /dev/null
   - export TZ="US/Central"
   - rm -f /etc/localtime
   - cp  /usr/share/zoneinfo/$TZ  /etc/localtime
   - apt-get install -qq texlive-latex-base > /dev/null
   - apt-get install -qq latex2html > /dev/null
   - apt-get install -qq pandoc > /dev/null
   - cd /opt
   - export PY_VERSION="3.5.4"
   - wget https://www.python.org/ftp/python/$PY_VERSION/Python-$PY_VERSION.tgz
   - tar -xzvf Python-$PY_VERSION.tgz
   - cd Python-$PY_VERSION 
   - export PY_DIR="/opt/python"
   - ./configure --prefix $PY_DIR
   - make 
   - make install
   - ln -s $PY_DIR/bin/python3.5 $PY_DIR/bin/python
   - export PATH=$PY_DIR/bin:$PATH
   - wget https://bootstrap.pypa.io/get-pip.py
   - python get-pip.py
   - which python
   - which pip 
   - pip install nbsphinx
   - pip install sphinx_rtd_theme
   - pip install ipython
 script:
   - git clone -b $CI_COMMIT_REF_NAME $CI_REPOSITORY_URL westpy
   - cd westpy
   - git describe
   - cd doc
   - make html
   - ls _build/html