Skip to content
This repository was archived by the owner on Jun 27, 2018. It is now read-only.

Commit 4d9f710

Browse files
committed
Swap out playpen for docker
1 parent 9f28605 commit 4d9f710

File tree

15 files changed

+282
-83
lines changed

15 files changed

+282
-83
lines changed

.travis.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
language: rust
2-
rust:
3-
- nightly
2+
sudo: required
3+
dist: trusty
4+
rust: stable
5+
services:
6+
- docker
7+
48
install:
59
- npm install jshint
10+
- pip install pygments
611
script:
712
- find static/ -iname "*.js" | xargs jshint
813
- cargo build
14+
- sh docker/build.sh
15+
- cargo test
16+
17+
notifications:
18+
email:
19+
on_success: never

Cargo.lock

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ staticfile = "0.2.0"
1616
toml = "0.1.30"
1717
unicase = "1.4.0"
1818
url = "1.1.1"
19+
wait-timeout = "0.1"
1920

2021
[dependencies.irc]
2122
default-features = false

docker/Dockerfile-beta

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM ubuntu:16.04
2+
3+
RUN apt-get update
4+
RUN apt-get install -y --no-install-recommends \
5+
gcc libc6-dev curl file ca-certificates
6+
COPY bin/compile.sh bin/evaluate.sh /usr/local/bin/
7+
COPY install.sh /tmp
8+
RUN sh /tmp/install.sh beta
9+
USER nobody
10+
11+
WORKDIR /tmp

docker/Dockerfile-nightly

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM ubuntu:16.04
2+
3+
RUN apt-get update
4+
RUN apt-get install -y --no-install-recommends \
5+
gcc libc6-dev curl file ca-certificates
6+
COPY bin/compile.sh bin/evaluate.sh /usr/local/bin/
7+
COPY install.sh /tmp
8+
RUN sh /tmp/install.sh nightly
9+
USER nobody
10+
11+
WORKDIR /tmp

docker/Dockerfile-stable

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM ubuntu:16.04
2+
3+
RUN apt-get update
4+
RUN apt-get install -y --no-install-recommends \
5+
gcc libc6-dev curl file ca-certificates
6+
COPY bin/compile.sh bin/evaluate.sh /usr/local/bin/
7+
COPY install.sh /tmp
8+
RUN sh /tmp/install.sh stable
9+
USER nobody
10+
11+
WORKDIR /tmp

bin/compile.sh renamed to docker/bin/compile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/dash
1+
#!/bin/dash
22

33
set -o errexit
44

bin/evaluate.sh renamed to docker/bin/evaluate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/dash
1+
#!/bin/dash
22

33
set -o errexit
44

docker/build.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/sh
2+
3+
for channel in stable beta nightly; do
4+
docker build \
5+
--no-cache \
6+
--force-rm \
7+
--pull \
8+
--rm \
9+
--tag rust-playpen-$channel \
10+
--file docker/Dockerfile-$channel \
11+
docker
12+
done

docker/install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
curl https://static.rust-lang.org/rustup.sh | \
4+
sh -s -- --disable-sudo --channel=$1 -y
5+
cargo install --debug rustfmt --root /usr/local

0 commit comments

Comments
 (0)