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

stages:
jhskone's avatar
jhskone committed
5
 - 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
 tags: [rcc,docker,node-01]
 stage: build
 image: ubuntu:latest
 before_script:
jhskone's avatar
jhskone committed
13
   - echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
Marco Govoni's avatar
Marco Govoni committed
14
   - apt-get update > /dev/null
jhskone's avatar
jhskone committed
15
   - apt-get install -qq dialog apt-utils -y > /dev/null
16
17
   - apt-get install -qq build-essential > /dev/null
   - apt-get install -qq apt-utils > /dev/null
jhskone's avatar
jhskone committed
18
   - apt-get install -qq pkg-config > /dev/null
jhskone's avatar
jhskone committed
19
   - apt-get install -qq libpng-dev > /dev/null
jhskone's avatar
jhskone committed
20
   - apt-get install -qq pandoc > /dev/null
jhskone's avatar
jhskone committed
21
   - apt-get install -qq libfreetype6-dev > /dev/null
Marco Govoni's avatar
Marco Govoni committed
22
   - apt-get install -qq git >/dev/null
23
   - apt-get install -qq wget git > /dev/null
jhskone's avatar
jhskone committed
24
25
   - apt-get -qq install zlib1g-dev > /dev/null
   - apt-get -qq install libssl-dev > /dev/null
26
   - cd /opt
jhskone's avatar
jhskone committed
27
   - export PY_VERSION="3.5.6"
jhskone's avatar
jhskone committed
28
   - wget https://www.python.org/ftp/python/$PY_VERSION/Python-$PY_VERSION.tgz
29
   - tar -xzf Python-$PY_VERSION.tgz
30
31
32
33
34
35
36
   - 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
jhskone's avatar
jhskone committed
37
   - wget https://bootstrap.pypa.io/get-pip.py
jhskone's avatar
jhskone committed
38
39
40
41
   - python get-pip.py
   - which python
   - which pip
   - pip freeze 
jhskone's avatar
jhskone committed
42
43
44
45
46
   - export LANGUAGE=en_US.UTF-8
   - export LC_ALL=en_US.UTF-8
   - export LANG=en_US.UTF-8
   - export LC_TYPE=en_US.UTF-8
   - echo $LC_ALL
Marco Govoni's avatar
Marco Govoni committed
47
48
 script:
   - git clone -b $CI_COMMIT_REF_NAME $CI_REPOSITORY_URL westpy
jhskone's avatar
jhskone committed
49
   - export LC_ALL=en_US.UTF-8
Marco Govoni's avatar
Marco Govoni committed
50
51
   - cd westpy
   - git describe
52
53
54
55
56
57
58
59
   - make
   
   
westpy_doc_build:
 tags: [rcc,docker,node-01]
 stage: doc
 image: debian:7
 before_script:
60
   - echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
   - 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"
jhskone's avatar
jhskone committed
76
   - wget https://www.python.org/ftp/python/$PY_VERSION/Python-$PY_VERSION.tgz
77
   - tar -xzf Python-$PY_VERSION.tgz
78
79
80
81
82
83
84
   - 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
jhskone's avatar
jhskone committed
85
   - wget https://bootstrap.pypa.io/get-pip.py
86
87
88
   - python get-pip.py
   - which python
   - which pip 
89
90
91
92
93
94
95
96
97
   - 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
jhskone's avatar
jhskone committed
98
   - ls _build/html