Skip to content

Commit

Permalink
Add Container environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nokotan committed Jan 6, 2021
1 parent 7257c2c commit 676c78e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ services:
node_js:
- '12'

env:
- CONTAINER="emscripten/emsdk:2.0.4"

jobs:
include:
- stage: 'Update Version'
Expand All @@ -21,9 +24,9 @@ jobs:

- stage: 'Build'
before_install:
- docker pull emscripten/emsdk:2.0.4
- docker pull ${CONTAINER}
script:
- docker run --name dxlib --volume ${TRAVIS_BUILD_DIR}:/src emscripten/emsdk:2.0.4 bash Build.sh
- docker run --name dxlib --volume ${TRAVIS_BUILD_DIR}:/src ${CONTAINER} bash Build.sh
- mkdir dest
- mkdir dest/lib
- cp build/libDxLib.a dest/lib/
Expand Down

0 comments on commit 676c78e

Please sign in to comment.