.gitlab-ci.yml 353 Bytes
Newer Older
Nicholas J Anderson's avatar
Nicholas J Anderson committed
1 2 3 4
image: node:6.5.0

build:
  stage: build
5
  variables:
6
    API_GET_FACILITIES: "https://api.srct.gmu.edu/whatsopen/v2/facilities/"
Nicholas J Anderson's avatar
Nicholas J Anderson committed
7
  script:
8
  - npm install -g yarn
9
  - >
10
    sed "s|^const API_GET_FACILITIES .*|const API_GET_FACILITIES = '$API_GET_FACILITIES';|" src/actions/api.js
11
  - yarn install
12
  - npm run build
Nicholas J Anderson's avatar
Nicholas J Anderson committed
13 14 15 16
  artifacts:
    paths:
    - build