-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |