# BaS_gcc build script for Travis CI
# This will automatically be run on every push to GitHub
# Build History: https://travis-ci.org/firebee-org/BaS_gcc/builds/

language: c
os: linux
dist: xenial
sudo: required

addons:
    apt:
        sources:
            - sourceline: 'ppa:vriviere/ppa'
        packages:
            - cross-mint-essential
            - dos2unix
            - lftp
            - hatari
            - aranym
            - mtools

before_install:
  - git --version
  - make --version
  - ld --version
  - gcc --version
  - m68k-atari-mint-ld --version
  - m68k-atari-mint-gcc --version
  - tar --version
  - unix2dos --version
  - lftp --version

script:
  # Build binaries
  - export VERSION=$(date -u +%Y%m%d-%H%M%S)-$(git rev-parse --short $TRAVIS_COMMIT)
  - make clean
  - make all

deploy:
  skip_cleanup: true
  provider: script
  script: .travis/deploy.sh
  on:
    repo: firebee-org/BaS_gcc
    branch: master
