.gitlab-ci.yml 663 Bytes
Newer Older
David Haynes's avatar
David Haynes committed
1
image: node:7.6.0
David Haynes's avatar
David Haynes committed
2
3
4

build_css:
    before_script:
5
        - npm install
6
        - npm install -g grunt-cli
7
        - npm install -g bower
8
        - apt-get update
9
10
        - apt-get install ruby -y
        - gem install sass
David Haynes's avatar
David Haynes committed
11
        - bower install --allow-root
David Haynes's avatar
David Haynes committed
12
        - sass --version
David Haynes's avatar
David Haynes committed
13
    script:
David Haynes's avatar
David Haynes committed
14
        - grunt build
15
16
    artifacts:
        paths:
David Haynes's avatar
David Haynes committed
17
            - masonstrap/masonstrap.min.css
David Haynes's avatar
David Haynes committed
18

19
20
21
22
23
24
25
26
27
28
29
30
pages:
    stage: deploy
    script:
    - mkdir .public
    - cp index.html .public
    - cp -r bower_components/bootstrap/dist/js .public
    - cp -r masonstrap .public
    - cp -r assets .public
    - mv .public public
    artifacts:
        paths:
        - public