Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
fukaoi committed Mar 7, 2020
1 parent caf0bb8 commit 6d5d999
Showing 1 changed file with 12 additions and 38 deletions.
50 changes: 12 additions & 38 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,17 @@
# language: crystal
# dist: bionic
language: crystal

# before_install:
# - sudo apt update -y
# - sudo apt clean
# - wget -O glibc.deb http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6_2.30-0ubuntu3_amd64.deb && sudo dpkg -i glibc.deb && sudo dpkg --configure -a && sudo apt install -f
before_install:
- sudo apt remove --auto-remove mysql-server-5.7
- sudo apt remove --auto-remove locales locales-all
- sudo apt -qq install software-properties-common -y
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt -qq update -y
- sudo apt -qq upgrade -y
- wget -O glibc.deb http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6_2.30-0ubuntu3_amd64.deb && sudo dpkg -B -i --force-conflicts glibc.deb


# script:
# - crystal tool format --check
# - bin/ameba
# - make
# - crystal spec -v
language: generic
dist: bionic

branches:
only:
- master
- develop

before_script:
- CRYSTAL_VERSION=0.33.0
- echo CRYSTAL_VERSION=${CRYSTAL_VERSION}

script:
- wget -q https://github.com/crystal-lang/crystal/releases/download/${CRYSTAL_VERSION}/crystal-${CRYSTAL_VERSION}-1-linux-x86_64.tar.gz
- tar xf crystal-${CRYSTAL_VERSION}-1-linux-x86_64.tar.gz
- sudo cp crystal-${CRYSTAL_VERSION}-1/bin/crystal /usr/local/bin/
- sudo cp crystal-${CRYSTAL_VERSION}-1/bin/shards /usr/local/bin/
- sudo mv crystal-${CRYSTAL_VERSION}-1 /usr/local/lib/crystal
- sudo apt-get -qq update && sudo apt-get -qq install -y libssl-dev libxml2-dev libyaml-dev libgmp-dev libreadline-dev libevent-dev
- export CRYSTAL_PATH="/usr/local/lib/crystal/share/crystal/src:lib" && shards update
- export CRYSTAL_PATH="/usr/local/lib/crystal/share/crystal/src:lib" && crystal tool format spec src --check
- sudo apt upgrade -y
- wget -O glibc.deb http://archive.ubuntu.com/ubuntu/pool/main/g/glibc/libc6_2.30-0ubuntu3_amd64.deb && sudo dpkg -i glibc.deb && sudo dpkg --configure -a && sudo apt install -f
- crystal tool format --check
- bin/ameba
- make
- crystal spec

cache:
directories:
- .shards
- crystal spec -v

0 comments on commit 6d5d999

Please sign in to comment.