image: ubuntu:14.04
before_script:
  - apt-get update -y
  - apt-get -y install gcc-mingw-w64 python cmake libxi-dev g++ libgl1-mesa-dev libglu1-mesa-dev zip git golang
  - mkdir -p /data/gopath
  - GOPATH=/data/gopath go get github.com/c4milo/github-release

stages:
  - build

build:
  stage: build
  script:
    - cd linux_out
    - ./build
    - cd ../x86_64-w64-mingw32_out
    - ./build
    - cd ..
    - mkdir -p out/bin/Linux
    - cp $(find linux_out/install -type f) out/bin/Linux/
    - mkdir -p out/bin/Windows
    - cp $(find x86_64-w64-mingw32_out/install -type f) out/bin/Windows/
    - cd out
    - zip get_image.zip $(find . -type f)
    - GOPATH=/data/gopath PATH=/data/gopath/bin:$PATH GITHUB_TOKEN=$GITHUB_RELEASES_API_KEY github-release paulthomson/get-image v-${CI_BUILD_REF} ${CI_BUILD_REF} $(echo -e "Automated build.\n$(git log --graph -n 3 --abbrev-commit --pretty='format:%h - %s <%an>')")



image: ubuntu:14.04
before_script:
  - apt-get update -y
  - apt-get -y install gcc-mingw-w64 python cmake libxi-dev g++ libgl1-mesa-dev libglu1-mesa-dev zip git golang
  - mkdir -p /data/gopath
  - GOPATH=/data/gopath go get github.com/c4milo/github-release

stages:
  - build

build:
  stage: build
  script:
    - cd linux_out
    - ./build
    - cd ../x86_64-w64-mingw32_out
    - ./build
    - cd ..
    - mkdir -p out/bin/Linux
    - cp $(find linux_out/install -type f) out/bin/Linux/
    - mkdir -p out/bin/Windows
    - cp $(find x86_64-w64-mingw32_out/install -type f) out/bin/Windows/
    - cd out
    - zip get_image.zip $(find . -type f)
    - GOPATH=/data/gopath PATH=/data/gopath/bin:$PATH GITHUB_TOKEN=$GITHUB_RELEASES_API_KEY github-release paulthomson/get-image v-${CI_BUILD_REF} ${CI_BUILD_REF} "$(echo -e "Automated build.\n$(git log --graph -n 3 --abbrev-commit --pretty='format:%h - %s <%an>')")" get_image.zip



Fix message and files uploaded.
Ci: Fix message and files uploaded.
