generated from devcontainers/feature-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
34 lines (26 loc) · 1.21 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copy all features to the test devcontainer
copy-src:
cp -r src/ test_devcontainer/.devcontainer
# Build the test devcontainer
# Before running this, copy the test_devcontainer/.devcontainer/devcontainer.example.json and remove the example.
# Then modify the new devcontainer.json to target your desired feature
build: copy-src
devcontainer build --workspace-folder test_devcontainer/ --log-level trace --no-cache
# Start up the test devcontainer
up: build
devcontainer up --workspace-folder test_devcontainer/ --log-level debug
# Exec into the test devcontainer
exec: clean-up up
docker exec -it dev-container-feature-test /bin/bash
# Remove previously started containers
clean-up:
- docker rm -f -v $$(docker ps -aq)
- docker rmi -f $$(docker images -q)
# Run all tests
tests: tests-default tests-scenarios
tests-scenarios:
devcontainer features test --features bash-profile -i ubuntu:latest --skip-scenarios .
devcontainer features test --features devcontainers-cli -i ubuntu:bionic --skip-scenarios .
tests-default:
devcontainer features test --features bash-profile -i ubuntu:latest --skip-autogenerated .
devcontainer features test --features devcontainers-cli -i ubuntu:bionic --skip-autogenerated .