Skip to content

Commit

Permalink
Add using dockerfiles based on the LTS and BRANCH env vars
Browse files Browse the repository at this point in the history
This makes it simpler in the future to have branches that have dependencies that are different from master, rather than having a single image with all necessary dependencies installed, which may at some point end up not being possible to do.
  • Loading branch information
Pentarctagon authored and jyrkive committed Mar 30, 2018
1 parent 0bbdd1d commit 5a7f651
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Expand Up @@ -12,22 +12,22 @@ cache:
matrix:
include:
- compiler: clang
env: TOOL=scons CXXSTD=11 NLS=true
env: TOOL=scons CXXSTD=11 NLS=true LTS=1604 BRANCH=master

- compiler: gcc
env: TOOL=scons CXXSTD=14 NLS=false
env: TOOL=scons CXXSTD=14 NLS=false LTS=1604 BRANCH=master

- compiler: gcc
env: TOOL=scons CXXSTD=11 NLS=false OPT=-O0
env: TOOL=scons CXXSTD=11 NLS=false LTS=1604 BRANCH=master OPT=-O0

- compiler: gcc
env: TOOL=cmake CXXSTD=11 NLS=false
env: TOOL=cmake CXXSTD=11 NLS=false LTS=1604 BRANCH=master

- compiler: clang
env: TOOL=scons CXXSTD=11 NLS=false OPT=-O0
env: TOOL=scons CXXSTD=11 NLS=false LTS=1604 BRANCH=master OPT=-O0

- compiler: clang
env: TOOL=cmake CXXSTD=11 NLS=false
env: TOOL=cmake CXXSTD=11 NLS=false LTS=1604 BRANCH=master

- os: osx
compiler: clang
Expand Down
File renamed without changes.
@@ -1,4 +1,4 @@
FROM wesnoth/wesnoth:16.04
FROM wesnoth/wesnoth:1604-master

COPY ./ /home/wesnoth-travis/

Expand Down
2 changes: 1 addition & 1 deletion utils/travis/steps/install.sh
Expand Up @@ -30,5 +30,5 @@ if [ "$TRAVIS_OS_NAME" = "osx" ]; then
export LDFLAGS="-L/usr/local/opt/openssl/lib $LDFLAGS"
fi
else
docker build -t wesnoth-repo:16.04 -f docker/Dockerfile-travis .
docker build -t wesnoth-repo:"$LTS"-"$BRANCH" -f docker/Dockerfile-travis-"$LTS"-"$BRANCH" .
fi
2 changes: 1 addition & 1 deletion utils/travis/steps/script.sh
Expand Up @@ -31,7 +31,7 @@ if [ "$TRAVIS_OS_NAME" = "osx" ]; then
fi
else
docker run -v "$HOME"/build-cache:/home/wesnoth-travis/build \
-v "$HOME"/.ccache:/root/.ccache wesnoth-repo:16.04 \
-v "$HOME"/.ccache:/root/.ccache wesnoth-repo:"$LTS"-"$BRANCH" \
bash -c './utils/travis/docker_run.sh "$@"' \
bash "$NLS" "$TOOL" "$CC" "$CXX" "$CXXSTD" "$EXTRA_FLAGS_RELEASE" "$WML_TESTS" "$WML_TEST_TIME" "$PLAY_TEST" "$MP_TEST" "$BOOST_TEST" "$LTO"
fi

0 comments on commit 5a7f651

Please sign in to comment.