From 04b9db848efc54ce3928a45c5d7f57c8a96fba08 Mon Sep 17 00:00:00 2001 From: Podkopaev Anton Date: Fri, 2 Mar 2018 09:12:00 +0300 Subject: [PATCH 1/5] Switched to Docker for builds. --- .travis.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index cc18965d4..c2d96e63e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,8 @@ language: c -sudo: required -install: wget https://raw.githubusercontent.com/anlun/ocaml-ci-scripts/patch-1/.travis-opam.sh -script: bash -ex .travis-opam.sh -env: - - FORK_USER=anlun FORK_BRANCH=patch-1 OCAML_VERSION=4.06 -os: - - linux \ No newline at end of file +services: + - docker +before_install: + - docker pull anlun/compiler-workout-ci + - docker run -d -it --name compiler-workout-ci -e "TRAVIS_COMMIT=$TRAVIS_PULL_REQUEST_BRANCH" anlun/compiler-workout-ci +script: + docker exec -it compiler-workout-ci sh test.sh \ No newline at end of file From 71ceb0db67cde5aea9af99a808ecb1df6245c909 Mon Sep 17 00:00:00 2001 From: Podkopaev Anton Date: Fri, 2 Mar 2018 09:52:07 +0300 Subject: [PATCH 2/5] Build trigger From 8394424016fc10310e92023e7768e8058d71ef8c Mon Sep 17 00:00:00 2001 From: Podkopaev Anton Date: Fri, 2 Mar 2018 09:58:18 +0300 Subject: [PATCH 3/5] Fixed environment variables passed to Docker. --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index c2d96e63e..f69bbb852 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,6 @@ services: - docker before_install: - docker pull anlun/compiler-workout-ci - - docker run -d -it --name compiler-workout-ci -e "TRAVIS_COMMIT=$TRAVIS_PULL_REQUEST_BRANCH" anlun/compiler-workout-ci + - docker run -d -it --name compiler-workout-ci -e "TRAVIS_COMMIT=$TRAVIS_COMMIT" -e "TRAVIS_REPO_SLUG=$TRAVIS_REPO_SLUG" anlun/compiler-workout-ci script: - docker exec -it compiler-workout-ci sh test.sh \ No newline at end of file + docker exec -it compiler-workout-ci sh test.sh From af72862f01403c1cbc49c6d333ae5a1b4c8f7708 Mon Sep 17 00:00:00 2001 From: Podkopaev Anton Date: Fri, 2 Mar 2018 10:07:17 +0300 Subject: [PATCH 4/5] Build trigger From 449831f7359b94dd9a6ff6b6470a7a9fed0b34f1 Mon Sep 17 00:00:00 2001 From: Sergey Sokolov Date: Tue, 6 Mar 2018 17:41:06 +0300 Subject: [PATCH 5/5] Replace git-checkout with volume mounting from Travis sandbox --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f69bbb852..7a1427e3f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,6 @@ services: - docker before_install: - docker pull anlun/compiler-workout-ci - - docker run -d -it --name compiler-workout-ci -e "TRAVIS_COMMIT=$TRAVIS_COMMIT" -e "TRAVIS_REPO_SLUG=$TRAVIS_REPO_SLUG" anlun/compiler-workout-ci + - docker run -d -it --name compiler-workout-ci -v $(pwd):/usr/share/compiler-workout anlun/compiler-workout-ci script: docker exec -it compiler-workout-ci sh test.sh